Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
Replace optimizer-special opcodes with 0xaf instead of INVALID. (#5680)
Browse files Browse the repository at this point in the history
Replace optimizer-special opcodes with 0xaf instead of INVALID.
  • Loading branch information
gumb0 authored Jul 17, 2019
2 parents 0247ed2 + 3f0b92c commit a236742
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libaleth-interpreter/VMOpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void VM::optimize()
)
{
TRACE_OP(1, pc, op);
m_code[pc] = (byte)Instruction::INVALID;
m_code[pc] = (byte)Instruction::UNDEFINED;
}

if (op == Instruction::JUMPDEST)
Expand Down
1 change: 1 addition & 0 deletions libevm/Instruction.h
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ enum class Instruction : uint8_t
PUSHC = 0xac, ///< push value from constant pool
JUMPC, ///< alter the program counter - pre-verified
JUMPCI, ///< conditionally alter the program counter - pre-verified
UNDEFINED, ///< Replaces PUSHC/JUMPC/JUMPCI in the original code

JUMPTO = 0xb0, ///< alter the program counter to a jumpdest
JUMPIF, ///< conditionally alter the program counter
Expand Down

0 comments on commit a236742

Please sign in to comment.