mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
evmjit: Remove snapshot arg
This commit is contained in:
parent
216dcd1353
commit
1cf355cdc9
1 changed files with 2 additions and 2 deletions
|
|
@ -442,7 +442,7 @@ func getRevision(env *EVM) C.enum_evm_revision {
|
||||||
return C.EVM_FRONTIER
|
return C.EVM_FRONTIER
|
||||||
}
|
}
|
||||||
|
|
||||||
func (evm *EVMJIT) Run(snapshot int, contract *Contract, input []byte) (ret []byte, err error) {
|
func (evm *EVMJIT) Run(contract *Contract, input []byte) (ret []byte, err error) {
|
||||||
evm.env.depth++
|
evm.env.depth++
|
||||||
defer func() { evm.env.depth-- }()
|
defer func() { evm.env.depth-- }()
|
||||||
|
|
||||||
|
|
@ -480,7 +480,7 @@ func (evm *EVMJIT) Run(snapshot int, contract *Contract, input []byte) (ret []by
|
||||||
|
|
||||||
// fmt.Printf("EVMJIT pre Run (gas %d %d mode: %d, env: %d) %x %x\n", contract.Gas, gas, rev, wrapper.index, codeHash, contract.Address())
|
// fmt.Printf("EVMJIT pre Run (gas %d %d mode: %d, env: %d) %x %x\n", contract.Gas, gas, rev, wrapper.index, codeHash, contract.Address())
|
||||||
|
|
||||||
r := C.evm_execute(evm.jit, &wrapper.c, rev, &msg, codePtr, codeSize)
|
r := C.evm_execute(evm.jit, &wrapper.c, rev, nil, codePtr, codeSize)
|
||||||
|
|
||||||
unpinCtx(wrapper.index)
|
unpinCtx(wrapper.index)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue