MCPcopy Create free account
hub / github.com/ReadyTalk/avian / checkStack

Function checkStack

src/interpret.cpp:391–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389};
390
391inline void checkStack(Thread* t, GcMethod* method)
392{
393 if (UNLIKELY(t->sp + method->parameterFootprint()
394 + method->code()->maxLocals() + FrameFootprint
395 + method->code()->maxStack() > stackSizeInWords(t) / 2)) {
396 throwNew(t, GcStackOverflowError::Type);
397 }
398}
399
400void pushResult(Thread* t, unsigned returnCode, uint64_t result, bool indirect)
401{

Callers 2

interpret3Function · 0.85
invokeFunction · 0.85

Calls 2

stackSizeInWordsFunction · 0.85
throwNewFunction · 0.70

Tested by

no test coverage detected