Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ext/opcache/jit/zend_jit_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1167,6 +1167,9 @@ static const zend_op *zend_jit_trace_find_init_fcall_op(zend_jit_trace_rec *p, c
const zend_op *opline = NULL;
int call_level = 0;

/* Scan trace buffer forward to find the first recorded opline after
* the sequence of ZEND_JIT_TRACE_INIT_CALL, and keep track of the
* call level. */
p++;
while (1) {
if (p->op == ZEND_JIT_TRACE_VM) {
Expand All @@ -1178,8 +1181,9 @@ static const zend_op *zend_jit_trace_find_init_fcall_op(zend_jit_trace_rec *p, c
} else {
return NULL;
}
p--;
p++;
}
/* Scan oplines backward to find the init fcall op */
if (opline) {
while (opline > op_array->opcodes) {
opline--;
Expand Down
Loading