mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
core/vm: move vm_jit.go to evmjit.go
This commit is contained in:
parent
284c0138fb
commit
2b5f3f2042
1 changed files with 17 additions and 16 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright 2015 The go-ethereum Authors
|
||||
// Copyright 2017 The go-ethereum Authors
|
||||
// This file is part of the go-ethereum library.
|
||||
//
|
||||
// The go-ethereum library is free software: you can redistribute it and/or modify
|
||||
|
|
@ -280,15 +280,15 @@ func update(ctxIdx uintptr, key int32, pArg1 unsafe.Pointer, pArg2 unsafe.Pointe
|
|||
|
||||
//export call
|
||||
func call(
|
||||
pCtx unsafe.Pointer,
|
||||
kind int32,
|
||||
gas int64,
|
||||
pAddr unsafe.Pointer,
|
||||
pValue unsafe.Pointer,
|
||||
pInput unsafe.Pointer,
|
||||
inputSize C.size_t,
|
||||
pOutput unsafe.Pointer,
|
||||
outputSize C.size_t) int64 {
|
||||
pCtx unsafe.Pointer,
|
||||
kind int32,
|
||||
gas int64,
|
||||
pAddr unsafe.Pointer,
|
||||
pValue unsafe.Pointer,
|
||||
pInput unsafe.Pointer,
|
||||
inputSize C.size_t,
|
||||
pOutput unsafe.Pointer,
|
||||
outputSize C.size_t) int64 {
|
||||
|
||||
ctx := getCtx(uintptr(pCtx))
|
||||
address := *(*[20]byte)(pAddr)
|
||||
|
|
@ -426,3 +426,4 @@ func (evm *EVMJIT) Run(contract *Contract, input []byte) (ret []byte, err error)
|
|||
C.evm_release_result(&r)
|
||||
return output, err
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue