Official Go implementation of the Ethereum protocol
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
go-ethereum/vm/vm_jit.go

31 lines
668 B

package vm
import "math/big"
type JitVm struct {
env Environment
backup *DebugVm
}
func NewJitVm(env Environment) *JitVm {
backupVm := NewDebugVm(env)
return &JitVm{env: env, backup: backupVm}
}
func (self *JitVm) Run(me, caller ContextRef, code []byte, value, gas, price *big.Int, callData []byte) (ret []byte, err error) {
return self.backup.Run(me, caller, code, value, gas, price, callData)
}
func (self *JitVm) Printf(format string, v ...interface{}) VirtualMachine {
return self.backup.Printf(format, v)
}
func (self *JitVm) Endl() VirtualMachine {
return self.backup.Endl()
}
func (self *JitVm) Env() Environment {
return self.env
}
//go is nice