diff options
author | obscuren <geffobscura@gmail.com> | 2014-11-01 08:18:03 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-11-01 08:18:03 +0800 |
commit | 141d3caabbfbebbbecac455462a40b6056aa3821 (patch) | |
tree | 367b81236d56c9ec21d9d2e0e8b29e261a668f11 /vm/vm_debug.go | |
parent | 5af4ff985dc43b648bdc96394a3bd96d9658ae0a (diff) | |
download | go-tangerine-141d3caabbfbebbbecac455462a40b6056aa3821.tar.gz go-tangerine-141d3caabbfbebbbecac455462a40b6056aa3821.tar.zst go-tangerine-141d3caabbfbebbbecac455462a40b6056aa3821.zip |
Re-org op codes
Diffstat (limited to 'vm/vm_debug.go')
-rw-r--r-- | vm/vm_debug.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vm/vm_debug.go b/vm/vm_debug.go index 0942636d6..0abfa098d 100644 --- a/vm/vm_debug.go +++ b/vm/vm_debug.go @@ -142,7 +142,7 @@ func (self *DebugVm) RunClosure(closure *Closure) (ret []byte, err error) { // Stack Check, memory resize & gas phase switch op { // Stack checks only - case NOT, CALLDATALOAD, POP, JUMP, BNOT: // 1 + case ISZERO, CALLDATALOAD, POP, JUMP, NOT: // 1 require(1) case ADD, SUB, DIV, SDIV, MOD, SMOD, EXP, LT, GT, SLT, SGT, EQ, AND, OR, XOR, BYTE: // 2 require(2) @@ -392,7 +392,7 @@ func (self *DebugVm) RunClosure(closure *Closure) (ret []byte, err error) { self.Printf(" = %v", base) stack.Push(base) - case BNOT: + case NOT: base.Sub(Pow256, stack.Pop()).Sub(base, ethutil.Big1) // Not needed @@ -449,7 +449,7 @@ func (self *DebugVm) RunClosure(closure *Closure) (ret []byte, err error) { } else { stack.Push(ethutil.BigFalse) } - case NOT: + case ISZERO: x := stack.Pop() if x.Cmp(ethutil.BigFalse) > 0 { stack.Push(ethutil.BigFalse) |