From dc4bc0e9bf43475d2fb993e5af7d82d6d4ba9a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Mon, 15 Dec 2014 12:19:49 +0100 Subject: [PATCH] Jit can handle call stack up to 1024 --- libevmjit-cpp/Env.cpp | 2 +- libevmjit/Cache.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libevmjit-cpp/Env.cpp b/libevmjit-cpp/Env.cpp index 1a2442791..2ea26fb4a 100644 --- a/libevmjit-cpp/Env.cpp +++ b/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) diff --git a/libevmjit/Cache.cpp b/libevmjit/Cache.cpp index 663c0d820..115322fef 100644 --- a/libevmjit/Cache.cpp +++ b/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) {