aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-08-11 06:27:30 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-08-12 00:43:22 +0800
commit9cacec70f9af77aaf9bf7f48b90f16ebc6d36298 (patch)
treebdea8f53f8058294dc7f0659c317e553b5d4c65b /core/vm
parent32395ddb891f3a32bc1295296a0887ed9479eeb0 (diff)
downloadgo-tangerine-9cacec70f9af77aaf9bf7f48b90f16ebc6d36298.tar.gz
go-tangerine-9cacec70f9af77aaf9bf7f48b90f16ebc6d36298.tar.zst
go-tangerine-9cacec70f9af77aaf9bf7f48b90f16ebc6d36298.zip
cmd/evm, core/vm, tests: changed DisableVm to EnableVm
Diffstat (limited to 'core/vm')
-rw-r--r--core/vm/jit_test.go2
-rw-r--r--core/vm/settings.go6
-rw-r--r--core/vm/vm.go2
3 files changed, 5 insertions, 5 deletions
diff --git a/core/vm/jit_test.go b/core/vm/jit_test.go
index 5b3feea99..b9e2c6999 100644
--- a/core/vm/jit_test.go
+++ b/core/vm/jit_test.go
@@ -46,7 +46,7 @@ func runVmBench(test vmBench, b *testing.B) {
}
env := NewEnv()
- DisableJit = test.nojit
+ EnableJit = !test.nojit
ForceJit = test.forcejit
b.ResetTimer()
diff --git a/core/vm/settings.go b/core/vm/settings.go
index 0cd931b6a..f9296f6c8 100644
--- a/core/vm/settings.go
+++ b/core/vm/settings.go
@@ -17,9 +17,9 @@
package vm
var (
- DisableJit bool = true // Disable the JIT VM
- ForceJit bool // Force the JIT, skip byte VM
- MaxProgSize int // Max cache size for JIT Programs
+ EnableJit bool // Enables the JIT VM
+ ForceJit bool // Force the JIT, skip byte VM
+ MaxProgSize int // Max cache size for JIT Programs
)
const defaultJitMaxCache int = 64
diff --git a/core/vm/vm.go b/core/vm/vm.go
index c292b45d1..da764004a 100644
--- a/core/vm/vm.go
+++ b/core/vm/vm.go
@@ -64,7 +64,7 @@ func (self *Vm) Run(context *Context, input []byte) (ret []byte, err error) {
codehash = crypto.Sha3Hash(context.Code) // codehash is used when doing jump dest caching
program *Program
)
- if !DisableJit {
+ if EnableJit {
// Fetch program status.
// * If ready run using JIT
// * If unknown, compile in a seperate goroutine