| 389 | }; |
| 390 | |
| 391 | inline 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 | |
| 400 | void pushResult(Thread* t, unsigned returnCode, uint64_t result, bool indirect) |
| 401 | { |
no test coverage detected