aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaweł Bylica <pawel.bylica@imapp.pl>2014-12-01 17:29:59 +0800
committerPaweł Bylica <pawel.bylica@imapp.pl>2014-12-01 17:29:59 +0800
commitfc0a83967c63f04adf102de1420ff2c306670f99 (patch)
tree44e9b722d5a618c2e8ccbc417371823e11b77395
parent475ce376eba748775c92eff15adf9d81d02225e1 (diff)
parentb78dc045f626aa510872b3789abd3bef3e4ae86e (diff)
downloaddexon-solidity-fc0a83967c63f04adf102de1420ff2c306670f99.tar.gz
dexon-solidity-fc0a83967c63f04adf102de1420ff2c306670f99.tar.zst
dexon-solidity-fc0a83967c63f04adf102de1420ff2c306670f99.zip
Merge branch 'develop-evmcc' into pr-jit
-rw-r--r--createRandomTest.cpp3
-rw-r--r--vm.cpp10
2 files changed, 9 insertions, 4 deletions
diff --git a/createRandomTest.cpp b/createRandomTest.cpp
index f22e5c0a..87bb1384 100644
--- a/createRandomTest.cpp
+++ b/createRandomTest.cpp
@@ -31,6 +31,7 @@
#include <json_spirit/json_spirit_writer_template.h>
#include <libdevcore/CommonIO.h>
#include <libdevcore/CommonData.h>
+#include <libethereum/VMFactory.h>
#include <libevmcore/Instruction.h>
#include <libevm/VM.h>
#include "vm.h"
@@ -128,7 +129,7 @@ void doMyTests(json_spirit::mValue& v)
assert(o.count("exec") > 0);
- auto vmObj = eth::VMFace::create(eth::VMFace::Interpreter);
+ auto vmObj = eth::VMFactory::create(eth::VMFactory::Interpreter);
auto& vm = *vmObj;
test::FakeExtVM fev;
fev.importEnv(o["env"].get_obj());
diff --git a/vm.cpp b/vm.cpp
index b34dc182..ce0fe080 100644
--- a/vm.cpp
+++ b/vm.cpp
@@ -22,6 +22,7 @@
#include <chrono>
#include <boost/filesystem.hpp>
+#include <libethereum/VMFactory.h>
#include "vm.h"
using namespace std;
using namespace json_spirit;
@@ -322,8 +323,11 @@ void doVMTests(json_spirit::mValue& v, bool _fillin)
auto useJit = false;
for (auto i = 0; i < argc && !useJit; ++i)
useJit |= std::string(argv[i]) == "--jit";
- auto vmKind = useJit ? VMFace::JIT : VMFace::Interpreter;
-
+#if ETH_EVMJIT
+ auto vmKind = useJit ? VMFactory::JIT : VMFactory::Interpreter;
+#else
+ auto vmKind == VMFactory::Interpreter;
+#endif
dev::test::FakeExtVM fev;
fev.importEnv(o["env"].get_obj());
@@ -339,7 +343,7 @@ void doVMTests(json_spirit::mValue& v, bool _fillin)
fev.code = fev.thisTxCode;
}
- auto vm = VMFace::create(vmKind, fev.gas);
+ auto vm = VMFactory::create(vmKind, fev.gas);
bytes output;
auto startTime = std::chrono::high_resolution_clock::now();