From c5bd32b0ad1a3d0fd20a3d1014cc8a97d889dc28 Mon Sep 17 00:00:00 2001 From: obscuren Date: Tue, 14 Oct 2014 11:48:52 +0200 Subject: Refactored VM to two separate VMs; std & debug Standard VM should be about 10x faster than the debug VM. Some error checking has been removed, all of the log statements and therefor quite some unnecessary if-statements. --- ethvm/virtual_machine.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 ethvm/virtual_machine.go (limited to 'ethvm/virtual_machine.go') diff --git a/ethvm/virtual_machine.go b/ethvm/virtual_machine.go new file mode 100644 index 000000000..6dd837049 --- /dev/null +++ b/ethvm/virtual_machine.go @@ -0,0 +1,7 @@ +package ethvm + +type VirtualMachine interface { + Env() Environment + RunClosure(*Closure) ([]byte, error) + Depth() int +} -- cgit v1.2.3