|
@ -13,7 +13,7 @@ bytesConstRef JitVM::go(ExtVMFace& _ext, OnOpFunc const&, uint64_t) |
|
|
{ |
|
|
{ |
|
|
using namespace jit; |
|
|
using namespace jit; |
|
|
|
|
|
|
|
|
RuntimeData data = {}; |
|
|
RuntimeData data{{},nullptr,nullptr}; |
|
|
|
|
|
|
|
|
#define set(INDEX, VALUE) data.elems[INDEX] = eth2llvm(VALUE) |
|
|
#define set(INDEX, VALUE) data.elems[INDEX] = eth2llvm(VALUE) |
|
|
set(RuntimeData::Gas, m_gas); |
|
|
set(RuntimeData::Gas, m_gas); |
|
@ -64,5 +64,9 @@ namespace |
|
|
{ |
|
|
{ |
|
|
// MSVS linker ignores export symbols in Env.cpp if nothing point at least one of them
|
|
|
// MSVS linker ignores export symbols in Env.cpp if nothing point at least one of them
|
|
|
extern "C" void env_sload(); |
|
|
extern "C" void env_sload(); |
|
|
void linkerWorkaround() { env_sload(); } |
|
|
void linkerWorkaround() |
|
|
|
|
|
{ |
|
|
|
|
|
env_sload(); |
|
|
|
|
|
(void)linkerWorkaround; // suppress unused function warning from GCC
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|