Merge pull request #13283 from ethereum/yulDebugger

Yul Debugger
This commit is contained in:
Daniel
2022-11-01 14:04:56 +01:00
committed by GitHub
18 changed files with 692 additions and 36 deletions
+15
View File
@@ -188,6 +188,21 @@ enum class Instruction: uint8_t
SELFDESTRUCT = 0xff ///< halt execution and register account for later deletion
};
/// @returns true if the instruction is of the CALL opcode family
constexpr bool isCallInstruction(Instruction _inst) noexcept
{
switch (_inst)
{
case Instruction::CALL:
case Instruction::CALLCODE:
case Instruction::DELEGATECALL:
case Instruction::STATICCALL:
return true;
default:
return false;
}
}
/// @returns true if the instruction is a PUSH
inline bool isPushInstruction(Instruction _inst)
{