Jit can handle call stack up to 1024

This commit is contained in:
Paweł Bylica 2014-12-15 12:19:49 +01:00
parent 45fb3f5625
commit dc4bc0e9bf
2 changed files with 3 additions and 2 deletions

View file

@ -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) 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); auto value = llvm2eth(*_value);
if (_env->balance(_env->myAddress) >= value) if (_env->balance(_env->myAddress) >= value)

View file

@ -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) ExecBundle& Cache::registerExec(Cache::Key _key, ExecBundle&& _exec)
{ {