mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
Jit can handle call stack up to 1024
This commit is contained in:
parent
45fb3f5625
commit
dc4bc0e9bf
2 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue