mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-13 01:30:30 +00:00
Report parent for stitched traces in trace start vmevent
This commit is contained in:
parent
716f2daef8
commit
c2644d4c2e
@ -446,6 +446,13 @@ static void trace_start(jit_State *J)
|
|||||||
if (J->parent) {
|
if (J->parent) {
|
||||||
setintV(L->top++, J->parent);
|
setintV(L->top++, J->parent);
|
||||||
setintV(L->top++, J->exitno);
|
setintV(L->top++, J->exitno);
|
||||||
|
} else {
|
||||||
|
BCOp op = bc_op(*J->pc);
|
||||||
|
if (op == BC_CALLM || op == BC_CALL || op == BC_ITERC) {
|
||||||
|
/* stitching, parent stored as exitno */
|
||||||
|
setintV(L->top++, J->exitno);
|
||||||
|
setintV(L->top++, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
lj_record_setup(J);
|
lj_record_setup(J);
|
||||||
|
Loading…
Reference in New Issue
Block a user