|
@@ -431,8 +431,12 @@ ASMFunction LJ_FASTCALL lj_dispatch_call(lua_State *L, const BCIns *pc)
|
|
|
goto out;
|
|
|
} else if (J->state != LJ_TRACE_IDLE &&
|
|
|
!(g->hookmask & (HOOK_GC|HOOK_VMEVENT))) {
|
|
|
+#ifdef LUA_USE_ASSERT
|
|
|
+ ptrdiff_t delta = L->top - L->base;
|
|
|
+#endif
|
|
|
/* Record the FUNC* bytecodes, too. */
|
|
|
lj_trace_ins(J, pc-1); /* The interpreter bytecode PC is offset by 1. */
|
|
|
+ lua_assert(L->top - L->base == delta);
|
|
|
}
|
|
|
#endif
|
|
|
if ((g->hookmask & LUA_MASKCALL)) {
|