Added (disabled) Jit validation

This commit is contained in:
obscuren
2015-02-01 15:30:29 +01:00
parent d52878c744
commit 8ccde784f9
5 changed files with 43 additions and 4 deletions

View File

@ -18,6 +18,18 @@ const (
MaxVmTy
)
func NewVm(env Environment) VirtualMachine {
switch env.VmType() {
case JitVmTy:
return NewJitVm(env)
default:
vmlogger.Infoln("unsupported vm type %d", env.VmType())
fallthrough
case StdVmTy:
return New(env)
}
}
var (
GasStep = big.NewInt(1)
GasSha = big.NewInt(10)