aboutsummaryrefslogtreecommitdiffstats
path: root/vm/execution.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-03 20:50:51 +0800
committerobscuren <geffobscura@gmail.com>2014-12-03 20:50:51 +0800
commit6095edac5843aa18e389ef2deaa49fe05b7fcfb9 (patch)
tree851b5616b2024248b6b9790199ef289e04725cbb /vm/execution.go
parent64f35ba8d1f31d6821a0a1bf946c71396a996f30 (diff)
parent3d9a4e7084c33cb28a2265c0dd232a0ea3871c92 (diff)
downloadgo-tangerine-6095edac5843aa18e389ef2deaa49fe05b7fcfb9.tar
go-tangerine-6095edac5843aa18e389ef2deaa49fe05b7fcfb9.tar.gz
go-tangerine-6095edac5843aa18e389ef2deaa49fe05b7fcfb9.tar.bz2
go-tangerine-6095edac5843aa18e389ef2deaa49fe05b7fcfb9.tar.lz
go-tangerine-6095edac5843aa18e389ef2deaa49fe05b7fcfb9.tar.xz
go-tangerine-6095edac5843aa18e389ef2deaa49fe05b7fcfb9.tar.zst
go-tangerine-6095edac5843aa18e389ef2deaa49fe05b7fcfb9.zip
merge
Diffstat (limited to 'vm/execution.go')
-rw-r--r--vm/execution.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/vm/execution.go b/vm/execution.go
index f8a772a1d..4df77729e 100644
--- a/vm/execution.go
+++ b/vm/execution.go
@@ -26,7 +26,7 @@ func (self *Execution) Addr() []byte {
func (self *Execution) Exec(codeAddr []byte, caller ClosureRef) ([]byte, error) {
// Retrieve the executing code
- code := self.vm.Env().State().GetCode(codeAddr)
+ code := self.vm.Env().GetCode(codeAddr)
return self.exec(code, codeAddr, caller)
}
@@ -34,13 +34,11 @@ func (self *Execution) Exec(codeAddr []byte, caller ClosureRef) ([]byte, error)
func (self *Execution) exec(code, caddr []byte, caller ClosureRef) (ret []byte, err error) {
env := self.vm.Env()
- vmlogger.Debugf("pre state %x\n", env.State().Root())
snapshot := env.State().Copy()
defer func() {
if IsDepthErr(err) || IsOOGErr(err) {
env.State().Set(snapshot)
}
- vmlogger.Debugf("post state %x\n", env.State().Root())
}()
msg := env.State().Manifest().AddMessage(&state.Message{