|
|
@ -117,6 +117,8 @@ const ( |
|
|
|
MSIZE OpCode = 0x59 |
|
|
|
MSIZE OpCode = 0x59 |
|
|
|
GAS OpCode = 0x5a |
|
|
|
GAS OpCode = 0x5a |
|
|
|
JUMPDEST OpCode = 0x5b |
|
|
|
JUMPDEST OpCode = 0x5b |
|
|
|
|
|
|
|
TLOAD OpCode = 0x5c |
|
|
|
|
|
|
|
TSTORE OpCode = 0x5d |
|
|
|
PUSH0 OpCode = 0x5f |
|
|
|
PUSH0 OpCode = 0x5f |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
@ -205,12 +207,6 @@ const ( |
|
|
|
LOG4 |
|
|
|
LOG4 |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
// 0xb0 range.
|
|
|
|
|
|
|
|
const ( |
|
|
|
|
|
|
|
TLOAD OpCode = 0xb3 |
|
|
|
|
|
|
|
TSTORE OpCode = 0xb4 |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 0xf0 range - closures.
|
|
|
|
// 0xf0 range - closures.
|
|
|
|
const ( |
|
|
|
const ( |
|
|
|
CREATE OpCode = 0xf0 |
|
|
|
CREATE OpCode = 0xf0 |
|
|
@ -304,6 +300,8 @@ var opCodeToString = map[OpCode]string{ |
|
|
|
MSIZE: "MSIZE", |
|
|
|
MSIZE: "MSIZE", |
|
|
|
GAS: "GAS", |
|
|
|
GAS: "GAS", |
|
|
|
JUMPDEST: "JUMPDEST", |
|
|
|
JUMPDEST: "JUMPDEST", |
|
|
|
|
|
|
|
TLOAD: "TLOAD", |
|
|
|
|
|
|
|
TSTORE: "TSTORE", |
|
|
|
PUSH0: "PUSH0", |
|
|
|
PUSH0: "PUSH0", |
|
|
|
|
|
|
|
|
|
|
|
// 0x60 range - pushes.
|
|
|
|
// 0x60 range - pushes.
|
|
|
@ -383,10 +381,6 @@ var opCodeToString = map[OpCode]string{ |
|
|
|
LOG3: "LOG3", |
|
|
|
LOG3: "LOG3", |
|
|
|
LOG4: "LOG4", |
|
|
|
LOG4: "LOG4", |
|
|
|
|
|
|
|
|
|
|
|
// 0xb0 range.
|
|
|
|
|
|
|
|
TLOAD: "TLOAD", |
|
|
|
|
|
|
|
TSTORE: "TSTORE", |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 0xf0 range - closures.
|
|
|
|
// 0xf0 range - closures.
|
|
|
|
CREATE: "CREATE", |
|
|
|
CREATE: "CREATE", |
|
|
|
CALL: "CALL", |
|
|
|
CALL: "CALL", |
|
|
@ -477,6 +471,8 @@ var stringToOp = map[string]OpCode{ |
|
|
|
"MSIZE": MSIZE, |
|
|
|
"MSIZE": MSIZE, |
|
|
|
"GAS": GAS, |
|
|
|
"GAS": GAS, |
|
|
|
"JUMPDEST": JUMPDEST, |
|
|
|
"JUMPDEST": JUMPDEST, |
|
|
|
|
|
|
|
"TLOAD": TLOAD, |
|
|
|
|
|
|
|
"TSTORE": TSTORE, |
|
|
|
"PUSH0": PUSH0, |
|
|
|
"PUSH0": PUSH0, |
|
|
|
"PUSH1": PUSH1, |
|
|
|
"PUSH1": PUSH1, |
|
|
|
"PUSH2": PUSH2, |
|
|
|
"PUSH2": PUSH2, |
|
|
@ -547,8 +543,6 @@ var stringToOp = map[string]OpCode{ |
|
|
|
"LOG2": LOG2, |
|
|
|
"LOG2": LOG2, |
|
|
|
"LOG3": LOG3, |
|
|
|
"LOG3": LOG3, |
|
|
|
"LOG4": LOG4, |
|
|
|
"LOG4": LOG4, |
|
|
|
"TLOAD": TLOAD, |
|
|
|
|
|
|
|
"TSTORE": TSTORE, |
|
|
|
|
|
|
|
"CREATE": CREATE, |
|
|
|
"CREATE": CREATE, |
|
|
|
"CREATE2": CREATE2, |
|
|
|
"CREATE2": CREATE2, |
|
|
|
"CALL": CALL, |
|
|
|
"CALL": CALL, |
|
|
|