aboutsummaryrefslogtreecommitdiffstats
path: root/vm.cpp
diff options
context:
space:
mode:
authorArtur Zawłocki <artur.zawlocki@imapp.pl>2014-11-28 07:37:24 +0800
committerArtur Zawłocki <artur.zawlocki@imapp.pl>2014-11-28 07:37:24 +0800
commitb78dc045f626aa510872b3789abd3bef3e4ae86e (patch)
tree44e9b722d5a618c2e8ccbc417371823e11b77395 /vm.cpp
parenta5d0496ea497f272929a959af19c8e810895080c (diff)
downloaddexon-solidity-b78dc045f626aa510872b3789abd3bef3e4ae86e.tar.gz
dexon-solidity-b78dc045f626aa510872b3789abd3bef3e4ae86e.tar.zst
dexon-solidity-b78dc045f626aa510872b3789abd3bef3e4ae86e.zip
resolved circular dependency between libevm and libevmjit
Diffstat (limited to 'vm.cpp')
-rw-r--r--vm.cpp10
1 files changed, 7 insertions, 3 deletions
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();