diff options
author | obscuren <geffobscura@gmail.com> | 2014-11-05 01:18:57 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-11-05 01:18:57 +0800 |
commit | 1b1fa049fa483b3996d3582ad247638045657282 (patch) | |
tree | 3a43f6baa5e990410c60df46fcfe5cbcb2e7c894 /vm/types.go | |
parent | 8cfbf1836d68c49242703e3f59e4d0a06754c02b (diff) | |
download | dexon-1b1fa049fa483b3996d3582ad247638045657282.tar.gz dexon-1b1fa049fa483b3996d3582ad247638045657282.tar.zst dexon-1b1fa049fa483b3996d3582ad247638045657282.zip |
Fixed VM and added static analysis for EVM jumps
Diffstat (limited to 'vm/types.go')
-rw-r--r-- | vm/types.go | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/vm/types.go b/vm/types.go index 580c517d6..7dd167e0c 100644 --- a/vm/types.go +++ b/vm/types.go @@ -173,22 +173,23 @@ const ( // Since the opcodes aren't all in order we can't use a regular slice var opCodeToString = map[OpCode]string{ // 0x0 range - arithmetic ops - STOP: "STOP", - ADD: "ADD", - MUL: "MUL", - SUB: "SUB", - DIV: "DIV", - SDIV: "SDIV", - MOD: "MOD", - SMOD: "SMOD", - EXP: "EXP", - NOT: "NOT", - LT: "LT", - GT: "GT", - SLT: "SLT", - SGT: "SGT", - EQ: "EQ", - ISZERO: "ISZERO", + STOP: "STOP", + ADD: "ADD", + MUL: "MUL", + SUB: "SUB", + DIV: "DIV", + SDIV: "SDIV", + MOD: "MOD", + SMOD: "SMOD", + EXP: "EXP", + NOT: "NOT", + LT: "LT", + GT: "GT", + SLT: "SLT", + SGT: "SGT", + EQ: "EQ", + ISZERO: "ISZERO", + SIGNEXTEND: "SIGNEXTEND", // 0x10 range - bit ops AND: "AND", |