Browse Source

made _ext a mandatory arg of Runtime::run()

cl-refactor
artur-zawlocki 10 years ago
parent
commit
89e6d2f3e6
  1. 2
      evmcc/evmcc.cpp
  2. 2
      libevmjit/ExecutionEngine.h
  3. 2
      libevmjit/VM.cpp

2
evmcc/evmcc.cpp

@ -172,7 +172,7 @@ int main(int argc, char** argv)
{
auto engine = eth::jit::ExecutionEngine();
u256 gas = initialGas;
auto result = engine.run(std::move(module), gas, options.count("show-logs") > 0);
auto result = engine.run(std::move(module), gas, options.count("show-logs") > 0, nullptr);
return result;
}
}

2
libevmjit/ExecutionEngine.h

@ -18,7 +18,7 @@ class ExecutionEngine
public:
ExecutionEngine();
int run(std::unique_ptr<llvm::Module> module, u256& _gas, bool _outputLogs, ExtVMFace* _ext = nullptr);
int run(std::unique_ptr<llvm::Module> module, u256& _gas, bool _outputLogs, ExtVMFace* _ext);
bytes returnData;
};

2
libevmjit/VM.cpp

@ -20,7 +20,7 @@ bytesConstRef VM::go(ExtVMFace& _ext, OnOpFunc const&, uint64_t)
auto module = Compiler(defaultOptions).compile(_ext.code);
ExecutionEngine engine;
auto exitCode = engine.run(std::move(module), m_gas, &_ext);
auto exitCode = engine.run(std::move(module), m_gas, false, &_ext);
switch (static_cast<ReturnCode>(exitCode))
{

Loading…
Cancel
Save