Report parent of stitched trace.
Thanks to Nick Zavaritsky.
This commit is contained in:
@@ -446,6 +446,12 @@ static void trace_start(jit_State *J)
|
||||
if (J->parent) {
|
||||
setintV(L->top++, J->parent);
|
||||
setintV(L->top++, J->exitno);
|
||||
} else {
|
||||
BCOp op = bc_op(*J->pc);
|
||||
if (op == BC_CALLM || op == BC_CALL || op == BC_ITERC) {
|
||||
setintV(L->top++, J->exitno); /* Parent of stitched trace. */
|
||||
setintV(L->top++, -1);
|
||||
}
|
||||
}
|
||||
);
|
||||
lj_record_setup(J);
|
||||
|
||||
Reference in New Issue
Block a user