go-ethereum/core/vm
Martin Holst Swende 36b78abe61
core/vm: instruction tests (#16327)
This PR makes it easy to generate and execute testcases for VM arithmetic operations. By enabling and running the testcase TestWriteExpectedValues, a set of json files are created which contain input and output for each arith operation.
The test TestJsonTestcases executes all of those tests.

While meaningless as is, this PR makes it less risky to make changes (optimizations) to the vm operations, since there will be a larger body of testcases.
2019-04-04 11:19:38 +02:00
..
runtime all: clean up and proerly abstract database access 2019-03-06 13:35:03 +02:00
testdata core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
analysis.go core/vm: faster create/create2 (#17806) 2018-10-04 18:15:37 +03:00
analysis_test.go core/vm: faster create/create2 (#17806) 2018-10-04 18:15:37 +03:00
common.go core/vm: 64 bit memory and gas calculations (#19210) 2019-03-12 11:40:05 +02:00
contract.go core/vm: faster create/create2 (#17806) 2018-10-04 18:15:37 +03:00
contracts.go core/vm: fix typo in cryptographic hash function name (#17285) 2018-07-31 13:27:51 +03:00
contracts_test.go all: update license information (#16089) 2018-02-14 13:49:11 +01:00
doc.go core/vm: remove JIT VM codes (#16362) 2018-03-26 13:48:04 +03:00
errors.go core/vm: support for multiple interpreters (#17093) 2018-07-25 08:56:39 -04:00
evm.go core/vm: update annotation (#19050) 2019-02-18 12:14:49 +01:00
gas.go core/vm: 64 bit memory and gas calculations (#19210) 2019-03-12 11:40:05 +02:00
gas_table.go core/vm: polish gas PR, fix tests, make table driven 2019-04-01 17:10:42 +03:00
gas_table_test.go core/vm: polish gas PR, fix tests, make table driven 2019-04-01 17:10:42 +03:00
gen_structlog.go core/vm: adds refund as part of the json standard trace (#17910) 2018-10-23 16:28:18 +02:00
instructions.go core/vm: 64 bit memory and gas calculations (#19210) 2019-03-12 11:40:05 +02:00
instructions_test.go core/vm: instruction tests (#16327) 2019-04-04 11:19:38 +02:00
int_pool_verifier.go all: update license information 2017-04-14 10:29:00 +02:00
int_pool_verifier_empty.go all: update license information 2017-04-14 10:29:00 +02:00
interface.go core/state: simplify proof methods (#17965) 2018-10-23 21:51:41 +02:00
interpreter.go core: prefetch next block state concurrently 2019-04-01 11:06:15 +03:00
intpool.go core/vm: reuse bigint pools across transactions (#17070) 2018-07-03 13:06:42 +03:00
intpool_test.go core/vm: reuse bigint pools across transactions (#17070) 2018-07-03 13:06:42 +03:00
jump_table.go core/vm: 64 bit memory and gas calculations (#19210) 2019-03-12 11:40:05 +02:00
logger.go core/vm: adds refund as part of the json standard trace (#17910) 2018-10-23 16:28:18 +02:00
logger_json.go core, cmd/puppeth: implement constantinople fix, disable EIP-1283 (#18486) 2019-01-24 11:36:30 +01:00
logger_test.go core/vm, eth/tracers: use pointer receiver for GetRefund (#18018) 2018-11-08 13:07:15 +01:00
memory.go all: fix various comment typos (#17748) 2018-09-25 12:26:35 +02:00
memory_table.go core/vm: 64 bit memory and gas calculations (#19210) 2019-03-12 11:40:05 +02:00
opcodes.go core/vm, params: implement EXTCODEHASH opcode (#17202) 2018-07-24 18:06:40 +03:00
stack.go core/vm: clear linter warnings (#17057) 2018-06-26 15:56:25 +03:00
stack_table.go core/vm: 64 bit memory and gas calculations (#19210) 2019-03-12 11:40:05 +02:00