aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vm_jit.go
blob: 1cb9652af2842b0d5dfd0ec9739eef2c7d0c76c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package vm

import "math/big"

type JitVm struct {
    env    Environment
    backup *Vm
}

func NewJitVm(env Environment) *JitVm {
    backupVm := NewVm(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