@@ -1926,7 +1926,7 @@ static void zend_jit_vm_leave(zend_jit_ctx *jit, ir_ref to_opline)
1926
1926
1927
1927
static int zend_jit_exception_handler_stub(zend_jit_ctx *jit)
1928
1928
{
1929
- if (zend_jit_vm_kind == ZEND_VM_KIND_HYBRID) {
1929
+ if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID) {
1930
1930
zend_vm_opcode_handler_func_t handler = (zend_vm_opcode_handler_func_t)zend_get_opcode_handler_func(EG(exception_op));
1931
1931
1932
1932
ir_CALL(IR_VOID, ir_CONST_FUNC(handler));
@@ -2051,7 +2051,7 @@ static int zend_jit_leave_function_handler_stub(zend_jit_ctx *jit)
2051
2051
2052
2052
ir_IF_FALSE(if_top);
2053
2053
2054
- if (zend_jit_vm_kind == ZEND_VM_KIND_HYBRID) {
2054
+ if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID) {
2055
2055
ir_CALL_1(IR_VOID, ir_CONST_FC_FUNC(zend_jit_leave_nested_func_helper), call_info);
2056
2056
jit_STORE_IP(jit,
2057
2057
ir_LOAD_A(jit_EX(opline)));
@@ -2064,7 +2064,7 @@ static int zend_jit_leave_function_handler_stub(zend_jit_ctx *jit)
2064
2064
2065
2065
ir_IF_TRUE(if_top);
2066
2066
2067
- if (zend_jit_vm_kind == ZEND_VM_KIND_HYBRID) {
2067
+ if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID) {
2068
2068
ir_CALL_1(IR_VOID, ir_CONST_FC_FUNC(zend_jit_leave_top_func_helper), call_info);
2069
2069
ir_TAILCALL(IR_VOID, ir_LOAD_A(jit_IP(jit)));
2070
2070
} else if (GCC_GLOBAL_REGS) {
@@ -2248,7 +2248,7 @@ static int zend_jit_leave_throw_stub(zend_jit_ctx *jit)
2248
2248
2249
2249
static int zend_jit_hybrid_runtime_jit_stub(zend_jit_ctx *jit)
2250
2250
{
2251
- if (zend_jit_vm_kind != ZEND_VM_KIND_HYBRID) {
2251
+ if (ZEND_VM_KIND != ZEND_VM_KIND_HYBRID) {
2252
2252
return 0;
2253
2253
}
2254
2254
@@ -2261,7 +2261,7 @@ static int zend_jit_hybrid_profile_jit_stub(zend_jit_ctx *jit)
2261
2261
{
2262
2262
ir_ref addr, func, run_time_cache, jit_extension;
2263
2263
2264
- if (zend_jit_vm_kind != ZEND_VM_KIND_HYBRID) {
2264
+ if (ZEND_VM_KIND != ZEND_VM_KIND_HYBRID) {
2265
2265
return 0;
2266
2266
}
2267
2267
@@ -2317,7 +2317,7 @@ static int _zend_jit_hybrid_hot_counter_stub(zend_jit_ctx *jit, uint32_t cost)
2317
2317
2318
2318
static int zend_jit_hybrid_func_hot_counter_stub(zend_jit_ctx *jit)
2319
2319
{
2320
- if (zend_jit_vm_kind != ZEND_VM_KIND_HYBRID || !JIT_G(hot_func)) {
2320
+ if (ZEND_VM_KIND != ZEND_VM_KIND_HYBRID || !JIT_G(hot_func)) {
2321
2321
return 0;
2322
2322
}
2323
2323
@@ -2327,7 +2327,7 @@ static int zend_jit_hybrid_func_hot_counter_stub(zend_jit_ctx *jit)
2327
2327
2328
2328
static int zend_jit_hybrid_loop_hot_counter_stub(zend_jit_ctx *jit)
2329
2329
{
2330
- if (zend_jit_vm_kind != ZEND_VM_KIND_HYBRID || !JIT_G(hot_loop)) {
2330
+ if (ZEND_VM_KIND != ZEND_VM_KIND_HYBRID || !JIT_G(hot_loop)) {
2331
2331
return 0;
2332
2332
}
2333
2333
@@ -2389,7 +2389,7 @@ static int _zend_jit_hybrid_trace_counter_stub(zend_jit_ctx *jit, uint32_t cost)
2389
2389
2390
2390
static int zend_jit_hybrid_func_trace_counter_stub(zend_jit_ctx *jit)
2391
2391
{
2392
- if (zend_jit_vm_kind != ZEND_VM_KIND_HYBRID || !JIT_G(hot_func)) {
2392
+ if (ZEND_VM_KIND != ZEND_VM_KIND_HYBRID || !JIT_G(hot_func)) {
2393
2393
return 0;
2394
2394
}
2395
2395
@@ -2399,7 +2399,7 @@ static int zend_jit_hybrid_func_trace_counter_stub(zend_jit_ctx *jit)
2399
2399
2400
2400
static int zend_jit_hybrid_ret_trace_counter_stub(zend_jit_ctx *jit)
2401
2401
{
2402
- if (zend_jit_vm_kind != ZEND_VM_KIND_HYBRID || !JIT_G(hot_return)) {
2402
+ if (ZEND_VM_KIND != ZEND_VM_KIND_HYBRID || !JIT_G(hot_return)) {
2403
2403
return 0;
2404
2404
}
2405
2405
@@ -2409,7 +2409,7 @@ static int zend_jit_hybrid_ret_trace_counter_stub(zend_jit_ctx *jit)
2409
2409
2410
2410
static int zend_jit_hybrid_loop_trace_counter_stub(zend_jit_ctx *jit)
2411
2411
{
2412
- if (zend_jit_vm_kind != ZEND_VM_KIND_HYBRID || !JIT_G(hot_loop)) {
2412
+ if (ZEND_VM_KIND != ZEND_VM_KIND_HYBRID || !JIT_G(hot_loop)) {
2413
2413
return 0;
2414
2414
}
2415
2415
@@ -2419,7 +2419,7 @@ static int zend_jit_hybrid_loop_trace_counter_stub(zend_jit_ctx *jit)
2419
2419
2420
2420
static int zend_jit_trace_halt_stub(zend_jit_ctx *jit)
2421
2421
{
2422
- if (zend_jit_vm_kind == ZEND_VM_KIND_HYBRID) {
2422
+ if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID) {
2423
2423
ir_TAILCALL(IR_VOID, ir_CONST_FC_FUNC(zend_jit_halt_op->handler));
2424
2424
} else if (GCC_GLOBAL_REGS) {
2425
2425
jit_STORE_IP(jit, IR_NULL);
@@ -2676,7 +2676,7 @@ static void zend_jit_init_ctx(zend_jit_ctx *jit, uint32_t flags)
2676
2676
jit->ctx.fixed_regset = (1<<ZREG_FP) | (1<<ZREG_IP);
2677
2677
if (!(flags & IR_FUNCTION)) {
2678
2678
jit->ctx.flags |= IR_NO_STACK_COMBINE;
2679
- if (zend_jit_vm_kind == ZEND_VM_KIND_CALL) {
2679
+ if (ZEND_VM_KIND == ZEND_VM_KIND_CALL) {
2680
2680
jit->ctx.flags |= IR_FUNCTION;
2681
2681
/* Stack must be 16 byte aligned */
2682
2682
/* TODO: select stack size ??? */
@@ -3146,7 +3146,7 @@ static void zend_jit_calc_trace_prologue_size(void)
3146
3146
void *entry;
3147
3147
size_t size;
3148
3148
3149
- zend_jit_init_ctx(jit, (zend_jit_vm_kind == ZEND_VM_KIND_CALL) ? 0 : IR_START_BR_TARGET);
3149
+ zend_jit_init_ctx(jit, (ZEND_VM_KIND == ZEND_VM_KIND_CALL) ? 0 : IR_START_BR_TARGET);
3150
3150
3151
3151
if (!GCC_GLOBAL_REGS) {
3152
3152
ir_ref execute_data_ref = ir_PARAM(IR_ADDR, "execute_data", 1);
@@ -3333,7 +3333,7 @@ static void zend_jit_setup(bool reattached)
3333
3333
#endif
3334
3334
3335
3335
#if !defined(ZEND_WIN32) && !defined(IR_TARGET_AARCH64)
3336
- if (zend_jit_vm_kind == ZEND_VM_KIND_HYBRID) {
3336
+ if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID) {
3337
3337
zend_jit_set_sp_adj_vm(); // set zend_jit_hybrid_vm_sp_adj
3338
3338
}
3339
3339
#endif
@@ -4073,7 +4073,7 @@ static int zend_jit_tail_handler(zend_jit_ctx *jit, const zend_op *opline)
4073
4073
zend_basic_block *bb;
4074
4074
4075
4075
zend_jit_set_ip(jit, opline);
4076
- if (zend_jit_vm_kind == ZEND_VM_KIND_HYBRID) {
4076
+ if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID) {
4077
4077
if (opline->opcode == ZEND_DO_UCALL ||
4078
4078
opline->opcode == ZEND_DO_FCALL_BY_NAME ||
4079
4079
opline->opcode == ZEND_DO_FCALL ||
@@ -10984,7 +10984,7 @@ static int zend_jit_leave_func(zend_jit_ctx *jit,
10984
10984
10985
10985
if (may_be_top_frame) {
10986
10986
// TODO: try to avoid this check ???
10987
- if (zend_jit_vm_kind == ZEND_VM_KIND_HYBRID) {
10987
+ if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID) {
10988
10988
#if 0
10989
10989
/* this check should be handled by the following OPLINE guard */
10990
10990
| cmp IP, zend_jit_halt_op
@@ -16566,7 +16566,7 @@ static int zend_jit_start(zend_jit_ctx *jit, const zend_op_array *op_array, zend
16566
16566
int i, count;
16567
16567
zend_basic_block *bb;
16568
16568
16569
- zend_jit_init_ctx(jit, (zend_jit_vm_kind == ZEND_VM_KIND_CALL) ? 0 : (IR_START_BR_TARGET|IR_ENTRY_BR_TARGET));
16569
+ zend_jit_init_ctx(jit, (ZEND_VM_KIND == ZEND_VM_KIND_CALL) ? 0 : (IR_START_BR_TARGET|IR_ENTRY_BR_TARGET));
16570
16570
16571
16571
jit->ctx.spill_base = ZREG_FP;
16572
16572
@@ -16644,7 +16644,7 @@ static zend_vm_opcode_handler_t zend_jit_finish(zend_jit_ctx *jit)
16644
16644
16645
16645
// ir_mem_unprotect(entry, size);
16646
16646
if (!(jit->ctx.flags & IR_FUNCTION)
16647
- && zend_jit_vm_kind == ZEND_VM_KIND_HYBRID) {
16647
+ && ZEND_VM_KIND == ZEND_VM_KIND_HYBRID) {
16648
16648
#if !defined(ZEND_WIN32) && !defined(IR_TARGET_AARCH64)
16649
16649
sp_offset = zend_jit_hybrid_vm_sp_adj;
16650
16650
#else
@@ -17012,7 +17012,7 @@ static int zend_jit_trace_handler(zend_jit_ctx *jit, const zend_op_array *op_arr
17012
17012
opline->opcode == ZEND_RETURN_BY_REF ||
17013
17013
opline->opcode == ZEND_GENERATOR_CREATE) {
17014
17014
17015
- if (zend_jit_vm_kind == ZEND_VM_KIND_HYBRID) {
17015
+ if (ZEND_VM_KIND == ZEND_VM_KIND_HYBRID) {
17016
17016
if (trace->op != ZEND_JIT_TRACE_END ||
17017
17017
(trace->stop != ZEND_JIT_TRACE_STOP_RETURN &&
17018
17018
trace->stop < ZEND_JIT_TRACE_STOP_INTERPRETER)) {
@@ -17126,7 +17126,7 @@ static int zend_jit_deoptimizer_start(zend_jit_ctx *jit,
17126
17126
uint32_t trace_num,
17127
17127
uint32_t exit_num)
17128
17128
{
17129
- zend_jit_init_ctx(jit, (zend_jit_vm_kind == ZEND_VM_KIND_CALL) ? 0 : IR_START_BR_TARGET);
17129
+ zend_jit_init_ctx(jit, (ZEND_VM_KIND == ZEND_VM_KIND_CALL) ? 0 : IR_START_BR_TARGET);
17130
17130
17131
17131
jit->ctx.spill_base = ZREG_FP;
17132
17132
@@ -17147,7 +17147,7 @@ static int zend_jit_trace_start(zend_jit_ctx *jit,
17147
17147
zend_jit_trace_info *parent,
17148
17148
uint32_t exit_num)
17149
17149
{
17150
- zend_jit_init_ctx(jit, (zend_jit_vm_kind == ZEND_VM_KIND_CALL) ? 0 : IR_START_BR_TARGET);
17150
+ zend_jit_init_ctx(jit, (ZEND_VM_KIND == ZEND_VM_KIND_CALL) ? 0 : IR_START_BR_TARGET);
17151
17151
17152
17152
jit->ctx.spill_base = ZREG_FP;
17153
17153
0 commit comments