|
|
@ -312,6 +312,7 @@ func (vm *Vm) RunClosure(closure *Closure, hook DebugHook) []byte { |
|
|
|
stack.Push(val) |
|
|
|
stack.Push(val) |
|
|
|
|
|
|
|
|
|
|
|
pc.Add(pc, big.NewInt(31)) |
|
|
|
pc.Add(pc, big.NewInt(31)) |
|
|
|
|
|
|
|
step++ |
|
|
|
case oPUSH20: |
|
|
|
case oPUSH20: |
|
|
|
pc.Add(pc, ethutil.Big1) |
|
|
|
pc.Add(pc, ethutil.Big1) |
|
|
|
data := closure.Gets(pc, big.NewInt(20)) |
|
|
|
data := closure.Gets(pc, big.NewInt(20)) |
|
|
@ -321,7 +322,7 @@ func (vm *Vm) RunClosure(closure *Closure, hook DebugHook) []byte { |
|
|
|
stack.Push(val) |
|
|
|
stack.Push(val) |
|
|
|
|
|
|
|
|
|
|
|
pc.Add(pc, big.NewInt(19)) |
|
|
|
pc.Add(pc, big.NewInt(19)) |
|
|
|
|
|
|
|
step++ |
|
|
|
case oPOP: |
|
|
|
case oPOP: |
|
|
|
stack.Pop() |
|
|
|
stack.Pop() |
|
|
|
case oDUP: |
|
|
|
case oDUP: |
|
|
@ -410,7 +411,7 @@ func (vm *Vm) RunClosure(closure *Closure, hook DebugHook) []byte { |
|
|
|
pc.Add(pc, ethutil.Big1) |
|
|
|
pc.Add(pc, ethutil.Big1) |
|
|
|
|
|
|
|
|
|
|
|
if hook != nil { |
|
|
|
if hook != nil { |
|
|
|
hook(op, mem, stack) |
|
|
|
hook(step-1, op, mem, stack) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|