From e664945e0bc26b5c6c3860a1d63913d56833c173 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Mon, 15 Feb 2010 22:26:33 +0100 Subject: Change record vmevent parameters. Dump function id on FUNC*. --- src/lj_trace.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/lj_trace.c b/src/lj_trace.c index 7b366d54..8cbbf0f3 100644 --- a/src/lj_trace.c +++ b/src/lj_trace.c @@ -475,18 +475,12 @@ static TValue *trace_state(lua_State *L, lua_CFunction dummy, void *ud) case LJ_TRACE_RECORD: setvmstate(J2G(J), RECORD); - if (J->pt) - lj_vmevent_send(L, RECORD, - setintV(L->top++, J->curtrace); - setfuncV(L, L->top++, J->fn); - setintV(L->top++, proto_bcpos(J->pt, J->pc)); - setintV(L->top++, J->framedepth); - if (bcmode_mm(bc_op(*J->pc)) == MM_call) { - cTValue *o = &L->base[bc_a(*J->pc)]; - if (bc_op(*J->pc) == BC_ITERC) o -= 3; - copyTV(L, L->top++, o); - } - ); + lj_vmevent_send(L, RECORD, + setintV(L->top++, J->curtrace); + setfuncV(L, L->top++, J->fn); + setintV(L->top++, J->pt ? (int32_t)proto_bcpos(J->pt, J->pc) : -1); + setintV(L->top++, J->framedepth); + ); lj_record_ins(J); break; -- cgit v1.2.3-55-g6feb