Browse Source

Jit can handle call stack up to 1024

cl-refactor
Paweł Bylica 10 years ago
parent
commit
dc4bc0e9bf
  1. 2
      libevmjit-cpp/Env.cpp
  2. 3
      libevmjit/Cache.cpp

2
libevmjit-cpp/Env.cpp

@ -67,7 +67,7 @@ extern "C"
EXPORT bool env_call(ExtVMFace* _env, i256* io_gas, h256* _receiveAddress, i256* _value, byte* _inBeg, uint64_t _inSize, byte* _outBeg, uint64_t _outSize, h256* _codeAddress)
{
assert(_env->depth < 32); // TODO: Handle call depth
assert(_env->depth < 1024); // TODO: Handle call depth
auto value = llvm2eth(*_value);
if (_env->balance(_env->myAddress) >= value)

3
libevmjit/Cache.cpp

@ -20,7 +20,8 @@ namespace
}
}
#define LOG(...) std::cerr << "CACHE "
//#define LOG(...) std::cerr << "CACHE "
#define LOG(...) std::ostream(nullptr)
ExecBundle& Cache::registerExec(Cache::Key _key, ExecBundle&& _exec)
{

Loading…
Cancel
Save