aboutsummaryrefslogtreecommitdiffstats
path: root/vm/types.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-05 01:18:57 +0800
committerobscuren <geffobscura@gmail.com>2014-11-05 01:18:57 +0800
commit1b1fa049fa483b3996d3582ad247638045657282 (patch)
tree3a43f6baa5e990410c60df46fcfe5cbcb2e7c894 /vm/types.go
parent8cfbf1836d68c49242703e3f59e4d0a06754c02b (diff)
downloadgo-tangerine-1b1fa049fa483b3996d3582ad247638045657282.tar
go-tangerine-1b1fa049fa483b3996d3582ad247638045657282.tar.gz
go-tangerine-1b1fa049fa483b3996d3582ad247638045657282.tar.bz2
go-tangerine-1b1fa049fa483b3996d3582ad247638045657282.tar.lz
go-tangerine-1b1fa049fa483b3996d3582ad247638045657282.tar.xz
go-tangerine-1b1fa049fa483b3996d3582ad247638045657282.tar.zst
go-tangerine-1b1fa049fa483b3996d3582ad247638045657282.zip
Fixed VM and added static analysis for EVM jumps
Diffstat (limited to 'vm/types.go')
-rw-r--r--vm/types.go33
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",