@@ -911,14 +911,9 @@ static ir_ref jit_IP32(zend_jit_ctx *jit)
911
911
return ir_RLOAD_U32(ZREG_IP);
912
912
}
913
913
914
- static void jit_LOAD_IP(zend_jit_ctx *jit, ir_ref ref)
915
- {
916
- jit_STORE_IP(jit, ref);
917
- }
918
-
919
914
static void jit_LOAD_IP_ADDR(zend_jit_ctx *jit, const zend_op *target)
920
915
{
921
- jit_LOAD_IP (jit, ir_CONST_ADDR(target));
916
+ jit_STORE_IP (jit, ir_CONST_ADDR(target));
922
917
}
923
918
924
919
static void zend_jit_track_last_valid_opline(zend_jit_ctx *jit)
@@ -2203,7 +2198,7 @@ static int zend_jit_leave_throw_stub(zend_jit_ctx *jit)
2203
2198
ir_MERGE_WITH_EMPTY_TRUE(if_set);
2204
2199
2205
2200
// JIT: opline = EG(exception_op);
2206
- jit_LOAD_IP (jit, jit_EG(exception_op));
2201
+ jit_STORE_IP (jit, jit_EG(exception_op));
2207
2202
2208
2203
if (GCC_GLOBAL_REGS) {
2209
2204
ir_STORE(jit_EX(opline), jit_IP(jit));
@@ -4163,7 +4158,7 @@ static int zend_jit_handler(zend_jit_ctx *jit, const zend_op *opline, int may_th
4163
4158
ir_CALL(IR_VOID, ir_CONST_FUNC(handler));
4164
4159
} else {
4165
4160
ir_ref ip = ir_CALL_2(IR_ADDR, ir_CONST_FC_FUNC(handler), jit_FP(jit), jit_IP(jit));
4166
- jit_LOAD_IP (jit, ip);
4161
+ jit_STORE_IP (jit, ip);
4167
4162
}
4168
4163
if (may_throw) {
4169
4164
zend_jit_check_exception(jit);
@@ -10266,7 +10261,7 @@ static int zend_jit_do_fcall(zend_jit_ctx *jit, const zend_op *opline, const zen
10266
10261
if (num_args) {
10267
10262
ip = ir_ADD_OFFSET(ip, num_args * sizeof(zend_op));
10268
10263
}
10269
- jit_LOAD_IP (jit, ip);
10264
+ jit_STORE_IP (jit, ip);
10270
10265
}
10271
10266
10272
10267
if (!trace && op_array == &func->op_array && call_num_args >= op_array->required_num_args) {
@@ -10288,7 +10283,7 @@ static int zend_jit_do_fcall(zend_jit_ctx *jit, const zend_op *opline, const zen
10288
10283
}
10289
10284
ip = ir_LOAD_A(ir_ADD_OFFSET(func_ref, offsetof(zend_op_array, opcodes)));
10290
10285
}
10291
- jit_LOAD_IP (jit, ip);
10286
+ jit_STORE_IP (jit, ip);
10292
10287
helper = ir_CONST_FC_FUNC(zend_jit_copy_extra_args_helper);
10293
10288
} else {
10294
10289
helper = ir_CONST_FC_FUNC(zend_jit_copy_extra_args_helper_no_skip_recv);
@@ -10312,7 +10307,7 @@ static int zend_jit_do_fcall(zend_jit_ctx *jit, const zend_op *opline, const zen
10312
10307
}
10313
10308
ip = ir_LOAD_A(ir_ADD_OFFSET(func_ref, offsetof(zend_op_array, opcodes)));
10314
10309
}
10315
- jit_LOAD_IP (jit, ip);
10310
+ jit_STORE_IP (jit, ip);
10316
10311
10317
10312
// JIT: num_args = EX_NUM_ARGS();
10318
10313
ir_ref num_args, first_extra_arg;
@@ -11088,7 +11083,7 @@ static int zend_jit_leave_func(zend_jit_ctx *jit,
11088
11083
ir_GUARD(jit_IP(jit), jit_STUB_ADDR(jit, jit_stub_trace_halt));
11089
11084
} else {
11090
11085
ir_GUARD(ir_NE(ref, ir_CONST_ADDR(ZEND_VM_RETURN_VAL)), jit_STUB_ADDR(jit, jit_stub_trace_halt));
11091
- jit_LOAD_IP (jit, ref);
11086
+ jit_STORE_IP (jit, ref);
11092
11087
}
11093
11088
}
11094
11089
@@ -17063,9 +17058,9 @@ static int zend_jit_trace_handler(zend_jit_ctx *jit, const zend_op_array *op_arr
17063
17058
opline->opcode == ZEND_DO_FCALL ||
17064
17059
opline->opcode == ZEND_GENERATOR_CREATE) {
17065
17060
17066
- jit_LOAD_IP (jit, ir_AND_A(ref, ir_CONST_ADDR(~ZEND_VM_ENTER_BIT)));
17061
+ jit_STORE_IP (jit, ir_AND_A(ref, ir_CONST_ADDR(~ZEND_VM_ENTER_BIT)));
17067
17062
} else {
17068
- jit_LOAD_IP (jit, ref);
17063
+ jit_STORE_IP (jit, ref);
17069
17064
}
17070
17065
}
17071
17066
if (may_throw
0 commit comments