@@ -1276,7 +1276,7 @@ static zend_ssa *zend_jit_trace_build_tssa(zend_jit_trace_rec *trace_buffer, uin
1276
1276
uint32_t info ;
1277
1277
1278
1278
if (opline -> op1_type == IS_CONST ) {
1279
- info = zend_jit_trace_type_to_info ( Z_TYPE_P ( RT_CONSTANT (opline , opline -> op1 ) ));
1279
+ info = _const_op_type ( RT_CONSTANT (opline , opline -> op1 ));
1280
1280
} else {
1281
1281
ZEND_ASSERT (ssa_ops [idx ].op1_use >= 0 );
1282
1282
info = ssa_var_info [ssa_ops [idx ].op1_use ].type & ~MAY_BE_GUARD ;
@@ -1314,7 +1314,7 @@ static zend_ssa *zend_jit_trace_build_tssa(zend_jit_trace_rec *trace_buffer, uin
1314
1314
if (opline -> op1_type == IS_UNUSED ) {
1315
1315
return_value_info .type = MAY_BE_NULL ;
1316
1316
} else if (opline -> op1_type == IS_CONST ) {
1317
- return_value_info .type = zend_jit_trace_type_to_info ( Z_TYPE_P ( RT_CONSTANT (opline , opline -> op1 ) ));
1317
+ return_value_info .type = _const_op_type ( RT_CONSTANT (opline , opline -> op1 ));
1318
1318
} else {
1319
1319
ZEND_ASSERT (ssa_ops [idx ].op1_use >= 0 );
1320
1320
return_value_info = ssa_var_info [ssa_ops [idx ].op1_use ];
@@ -1351,7 +1351,7 @@ static zend_ssa *zend_jit_trace_build_tssa(zend_jit_trace_rec *trace_buffer, uin
1351
1351
if (opline -> opcode == ZEND_RECV_INIT
1352
1352
&& !(op_array -> fn_flags & ZEND_ACC_HAS_TYPE_HINTS )) {
1353
1353
/* RECV_INIT always copy the constant */
1354
- ssa_var_info [ssa_ops [idx ].result_def ].type = zend_jit_trace_type_to_info ( Z_TYPE_P ( RT_CONSTANT (opline , opline -> op2 ) ));
1354
+ ssa_var_info [ssa_ops [idx ].result_def ].type = _const_op_type ( RT_CONSTANT (opline , opline -> op2 ));
1355
1355
} else {
1356
1356
if (zend_update_type_info (op_array , tssa , script , (zend_op * )opline , ssa_ops + idx , ssa_opcodes , optimization_level ) == FAILURE ) {
1357
1357
// TODO:
@@ -1405,7 +1405,7 @@ static zend_ssa *zend_jit_trace_build_tssa(zend_jit_trace_rec *trace_buffer, uin
1405
1405
if (opline -> opcode == ZEND_RECV_INIT
1406
1406
&& !(op_array -> fn_flags & ZEND_ACC_HAS_TYPE_HINTS )) {
1407
1407
/* RECV_INIT always copy the constant */
1408
- ssa_var_info [ssa_ops [idx ].result_def ].type = zend_jit_trace_type_to_info ( Z_TYPE_P ( RT_CONSTANT (opline , opline -> op2 ) ));
1408
+ ssa_var_info [ssa_ops [idx ].result_def ].type = _const_op_type ( RT_CONSTANT (opline , opline -> op2 ));
1409
1409
} else {
1410
1410
if (zend_update_type_info (op_array , tssa , script , (zend_op * )opline , ssa_ops + idx , ssa_opcodes , optimization_level ) == FAILURE ) {
1411
1411
// TODO:
0 commit comments