| 356 | VMFrame *AllocFrame(VMScriptFunction *func); |
| 357 | VMFrame *PopFrame(); |
| 358 | VMFrame *TopFrame() |
| 359 | { |
| 360 | assert(Blocks != NULL && Blocks->LastFrame != NULL); |
| 361 | return Blocks->LastFrame; |
| 362 | } |
| 363 | static int OffsetLastFrame() { return (int)(ptrdiff_t)offsetof(BlockHeader, LastFrame); } |
| 364 | private: |
| 365 | enum { BLOCK_SIZE = 4096 }; // Default block size |