diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-04-21 04:36:53 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-06-14 22:00:39 +0800 |
commit | bec30051c57098bef482c9be2537bda46b7571ee (patch) | |
tree | 4c7e7aaf26048b268c0e4f4d3caeadda9d9b6ec9 /libevmasm/Instruction.cpp | |
parent | 1ae0e082b316adfc1a048928e5c535559d3780b3 (diff) | |
download | dexon-solidity-bec30051c57098bef482c9be2537bda46b7571ee.tar.gz dexon-solidity-bec30051c57098bef482c9be2537bda46b7571ee.tar.zst dexon-solidity-bec30051c57098bef482c9be2537bda46b7571ee.zip |
Introduce CREATE2 in the assembler
Diffstat (limited to 'libevmasm/Instruction.cpp')
-rw-r--r-- | libevmasm/Instruction.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libevmasm/Instruction.cpp b/libevmasm/Instruction.cpp index af7e9ff9..d58a47a0 100644 --- a/libevmasm/Instruction.cpp +++ b/libevmasm/Instruction.cpp @@ -161,6 +161,7 @@ const std::map<std::string, Instruction> dev::solidity::c_instructions = { "CALLCODE", Instruction::CALLCODE }, { "RETURN", Instruction::RETURN }, { "DELEGATECALL", Instruction::DELEGATECALL }, + { "CREATE2", Instruction::CREATE2 }, { "REVERT", Instruction::REVERT }, { "INVALID", Instruction::INVALID }, { "SELFDESTRUCT", Instruction::SELFDESTRUCT } @@ -299,7 +300,8 @@ static const std::map<Instruction, InstructionInfo> c_instructionInfo = { Instruction::CALLCODE, { "CALLCODE", 0, 7, 1, true, Tier::Special } }, { Instruction::RETURN, { "RETURN", 0, 2, 0, true, Tier::Zero } }, { Instruction::DELEGATECALL, { "DELEGATECALL", 0, 6, 1, true, Tier::Special } }, - { Instruction::REVERT, { "REVERT", 0, 2, 0, true, Tier::Zero } }, + { Instruction::CREATE2, { "CREATE2", 0, 4, 1, true, Tier::Special } }, + { Instruction::REVERT, { "REVERT", 0, 2, 0, true, Tier::Zero } }, { Instruction::INVALID, { "INVALID", 0, 0, 0, true, Tier::Zero } }, { Instruction::SELFDESTRUCT, { "SELFDESTRUCT", 0, 1, 0, true, Tier::Special } } }; |