@@ -2612,6 +2612,7 @@ static void zend_jit_trace_setup_ret_counter(const zend_op *opline, size_t offse
2612
2612
zend_op * next_opline = (zend_op * )(opline + 1 );
2613
2613
2614
2614
if (JIT_G (hot_return ) && !ZEND_OP_TRACE_INFO (next_opline , offset )-> trace_flags ) {
2615
+ ZEND_ASSERT (zend_jit_ret_trace_counter_handler != NULL );
2615
2616
if (!ZEND_OP_TRACE_INFO (next_opline , offset )-> counter ) {
2616
2617
ZEND_OP_TRACE_INFO (next_opline , offset )-> counter =
2617
2618
& zend_jit_hot_counters [ZEND_JIT_COUNTER_NUM ];
@@ -5693,9 +5694,6 @@ static int zend_jit_setup_hot_trace_counters(zend_op_array *op_array)
5693
5694
zend_jit_op_array_trace_extension * jit_extension ;
5694
5695
uint32_t i ;
5695
5696
5696
- ZEND_ASSERT (zend_jit_func_trace_counter_handler != NULL );
5697
- ZEND_ASSERT (zend_jit_ret_trace_counter_handler != NULL );
5698
- ZEND_ASSERT (zend_jit_loop_trace_counter_handler != NULL );
5699
5697
ZEND_ASSERT (sizeof (zend_op_trace_info ) == sizeof (zend_op ));
5700
5698
5701
5699
jit_extension = (zend_jit_op_array_trace_extension * )zend_shared_alloc (sizeof (zend_jit_op_array_trace_extension ) + (op_array -> last - 1 ) * sizeof (zend_op_trace_info ));
@@ -5716,6 +5714,8 @@ static int zend_jit_setup_hot_trace_counters(zend_op_array *op_array)
5716
5714
if (JIT_G (hot_loop )) {
5717
5715
zend_cfg cfg ;
5718
5716
5717
+ ZEND_ASSERT (zend_jit_loop_trace_counter_handler != NULL );
5718
+
5719
5719
if (zend_jit_build_cfg (op_array , & cfg ) != SUCCESS ) {
5720
5720
return FAILURE ;
5721
5721
}
@@ -5741,6 +5741,7 @@ static int zend_jit_setup_hot_trace_counters(zend_op_array *op_array)
5741
5741
}
5742
5742
5743
5743
if (JIT_G (hot_func )) {
5744
+ ZEND_ASSERT (zend_jit_func_trace_counter_handler != NULL );
5744
5745
opline = op_array -> opcodes ;
5745
5746
if (!(op_array -> fn_flags & ZEND_ACC_HAS_TYPE_HINTS )) {
5746
5747
while (opline -> opcode == ZEND_RECV || opline -> opcode == ZEND_RECV_INIT ) {
0 commit comments