diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-08-14 02:49:01 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-08-14 02:49:01 +0800 |
commit | 73c4e6005c3e47342a4631955ca6fd2782925886 (patch) | |
tree | 58c881d0cc7d954e7b0e30275c5e6da40dd3e42c /tests/vm_test_util.go | |
parent | a89cfe92ccdea31891bd7ea0869dac968c04202f (diff) | |
parent | 9cacec70f9af77aaf9bf7f48b90f16ebc6d36298 (diff) | |
download | dexon-73c4e6005c3e47342a4631955ca6fd2782925886.tar.gz dexon-73c4e6005c3e47342a4631955ca6fd2782925886.tar.zst dexon-73c4e6005c3e47342a4631955ca6fd2782925886.zip |
Merge pull request #1638 from obscuren/jit-fixes
core/vm: fixed jit error & added inline docs
Diffstat (limited to 'tests/vm_test_util.go')
-rw-r--r-- | tests/vm_test_util.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/vm_test_util.go b/tests/vm_test_util.go index b29dcd20f..71a4f5e33 100644 --- a/tests/vm_test_util.go +++ b/tests/vm_test_util.go @@ -52,7 +52,7 @@ func RunVmTestWithReader(r io.Reader, skipTests []string) error { type bconf struct { name string precomp bool - nojit bool + jit bool } func BenchVmTest(p string, conf bconf, b *testing.B) error { @@ -67,8 +67,8 @@ func BenchVmTest(p string, conf bconf, b *testing.B) error { return fmt.Errorf("test not found: %s", conf.name) } - pNoJit := vm.DisableJit - vm.DisableJit = conf.nojit + pJit := vm.EnableJit + vm.EnableJit = conf.jit pForceJit := vm.ForceJit vm.ForceJit = conf.precomp @@ -99,7 +99,7 @@ func BenchVmTest(p string, conf bconf, b *testing.B) error { benchVmTest(test, env, b) } - vm.DisableJit = pNoJit + vm.EnableJit = pJit vm.ForceJit = pForceJit return nil |