plugeth/core/vm
Jeffrey Wilcke bbc4ea4ae8 core/vm: improved EVM run loop & instruction calling (#3378)
The run loop, which previously contained custom opcode executes have been
removed and has been simplified to a few checks.

Each operation consists of 4 elements: execution function, gas cost function,
stack validation function and memory size function. The execution function
implements the operation's runtime behaviour, the gas cost function implements
the operation gas costs function and greatly depends on the memory and stack,
the stack validation function validates the stack and makes sure that enough
items can be popped off and pushed on and the memory size function calculates
the memory required for the operation and returns it.

This commit also allows the EVM to go unmetered. This is helpful for offline
operations such as contract calls.
2017-01-05 11:52:10 +01:00
..
runtime core/vm: improved EVM run loop & instruction calling (#3378) 2017-01-05 11:52:10 +01:00
analysis.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
asm.go all: fix go vet warnings 2016-04-15 11:17:27 +02:00
common.go core: Added EVM configuration options 2016-03-23 23:02:42 +01:00
contract.go core, core/vm: implemented a generic environment (#3348) 2016-12-06 02:16:03 +01:00
contracts.go core/vm: improved EVM run loop & instruction calling (#3378) 2017-01-05 11:52:10 +01:00
disasm.go all: fix license headers one more time 2015-07-23 18:35:11 +02:00
doc.go all: update license information 2016-04-15 09:48:05 +02:00
environment.go core/vm: improved EVM run loop & instruction calling (#3378) 2017-01-05 11:52:10 +01:00
errors.go core/vm: improved EVM run loop & instruction calling (#3378) 2017-01-05 11:52:10 +01:00
gas_table.go core/vm: improved EVM run loop & instruction calling (#3378) 2017-01-05 11:52:10 +01:00
gas.go core, core/vm: added gas price variance table 2016-10-14 18:09:17 +02:00
instructions.go core/vm: improved EVM run loop & instruction calling (#3378) 2017-01-05 11:52:10 +01:00
interface.go core/vm: improved EVM run loop & instruction calling (#3378) 2017-01-05 11:52:10 +01:00
jump_table.go core/vm: improved EVM run loop & instruction calling (#3378) 2017-01-05 11:52:10 +01:00
log_test.go core, core/vm, eth/filters: move Removed field into vm.Log 2016-12-05 10:57:11 +01:00
log.go core, core/vm, eth/filters: move Removed field into vm.Log 2016-12-05 10:57:11 +01:00
logger_test.go core/vm: improved EVM run loop & instruction calling (#3378) 2017-01-05 11:52:10 +01:00
logger.go core/vm: improved EVM run loop & instruction calling (#3378) 2017-01-05 11:52:10 +01:00
memory_table.go core/vm: improved EVM run loop & instruction calling (#3378) 2017-01-05 11:52:10 +01:00
memory.go cmd/geth, cmd/utils, core, rpc: renamed to blockchain 2015-10-04 01:13:56 +02:00
noop.go core, core/vm: implemented a generic environment (#3348) 2016-12-06 02:16:03 +01:00
opcodes.go core/vm: fix GASPRICE string (resolves #2553) 2016-10-19 15:55:34 +11:00
stack_table.go core/vm: improved EVM run loop & instruction calling (#3378) 2017-01-05 11:52:10 +01:00
stack.go core/vm: improved EVM run loop & instruction calling (#3378) 2017-01-05 11:52:10 +01:00
virtual_machine.go core: Added EVM configuration options 2016-03-23 23:02:42 +01:00
vm_jit_fake.go core, core/vm: implemented a generic environment (#3348) 2016-12-06 02:16:03 +01:00
vm_jit.go core/vm: improved EVM run loop & instruction calling (#3378) 2017-01-05 11:52:10 +01:00
vm.go core/vm: improved EVM run loop & instruction calling (#3378) 2017-01-05 11:52:10 +01:00