Skip to content

Commit

Permalink
evmjit: Comment out some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Dec 12, 2017
1 parent 5fc5f53 commit cfddfcf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/vm/evmjit.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func account_exists(pCtx unsafe.Pointer, pAddr unsafe.Pointer) C.int {
} else if env.StateDB.Exist(addr) {
exist = 1
}
fmt.Printf("EXISTS? %x : %v\n", addr, exist)
// fmt.Printf("EXISTS? %x : %v\n", addr, exist)
return exist
}

Expand All @@ -222,7 +222,7 @@ func get_storage(pResult *C.struct_evm_uint256be, pCtx unsafe.Pointer, pAddr uns
arg := *(*[32]byte)(unsafe.Pointer(pArg))
val := env.StateDB.GetState(addr, arg)
copy(result, val[:])
fmt.Printf("SLOAD %x: %x\n", addr, val)
// fmt.Printf("SLOAD %x: %x\n", addr, val)
}

//export set_storage
Expand All @@ -239,7 +239,7 @@ func set_storage(pCtx unsafe.Pointer, pAddr unsafe.Pointer, pArg1 unsafe.Pointer
if !common.EmptyHash(oldVal) && common.EmptyHash(newVal) {
env.StateDB.AddRefund(params.SstoreRefundGas)
}
fmt.Printf("EVMJIT STORE %x: %x := %x\n", addr, key, newVal)
// fmt.Printf("EVMJIT STORE %x: %x := %x\n", addr, key, newVal)
}

//export get_balance
Expand Down Expand Up @@ -468,7 +468,7 @@ func (evm *EVMJIT) Run(contract *Contract, input []byte) (ret []byte, err error)
codeHash := crypto.Keccak256Hash(code)
msg.code_hash = HashToEvmc(codeHash)

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)

Expand All @@ -488,7 +488,7 @@ func (evm *EVMJIT) Run(contract *Contract, input []byte) (ret []byte, err error)
}

if r.release != nil {
fmt.Printf("Releasing result with %p\n", r.release)
// fmt.Printf("Releasing result with %p\n", r.release)
C.evm_release_result(&r)
}

Expand Down

0 comments on commit cfddfcf

Please # to comment.