Skip to content

Commit 7135a60

Browse files
committed
Fix tracing JIT regression
1 parent 077460f commit 7135a60

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/opcache/jit/zend_jit_vm_helpers.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,11 @@ zend_jit_trace_stop ZEND_FASTCALL zend_jit_trace_execute(zend_execute_data *ex,
692692
}
693693
}
694694
op1_type |= flags;
695+
} else if (opline->op1_type == IS_UNUSED) {
696+
uint32_t op1_flags = ZEND_VM_OP1_FLAGS(zend_get_opcode_flags(opline->opcode));
697+
if ((op1_flags & ZEND_VM_OP_MASK) == ZEND_VM_OP_THIS) {
698+
ce1 = Z_OBJCE(EX(This));
699+
}
695700
}
696701
if (opline->op2_type & (IS_TMP_VAR|IS_VAR|IS_CV)
697702
&& opline->opcode != ZEND_INSTANCEOF

0 commit comments

Comments
 (0)