core/vm, tests: implemented semi-jit vm
* changed stack and removed stack ptr. Let go decide on slice reuse.
This commit is contained in:
@ -20,8 +20,25 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/ethereum/go-ethereum/core/vm"
|
||||
)
|
||||
|
||||
func init() {
|
||||
if os.Getenv("JITVM") == "true" {
|
||||
vm.ForceJit = true
|
||||
} else {
|
||||
vm.DisableJit = true
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkStateCall1024(b *testing.B) {
|
||||
fn := filepath.Join(stateTestDir, "stCallCreateCallCodeTest.json")
|
||||
if err := BenchVmTest(fn, bconf{"Call1024BalanceTooLow", true, false}, b); err != nil {
|
||||
b.Error(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestStateSystemOperations(t *testing.T) {
|
||||
fn := filepath.Join(stateTestDir, "stSystemOperationsTest.json")
|
||||
if err := RunStateTest(fn, StateSkipTests); err != nil {
|
||||
|
Reference in New Issue
Block a user