Skip to content

Commit c790c5b

Browse files
committed
Generate inline frameless icall handlers only if the optimization level is set to inline
1 parent 72184ab commit c790c5b

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2547,6 +2547,23 @@ static int zend_jit(const zend_op_array *op_array, zend_ssa *ssa, const zend_op
25472547
goto jit_failure;
25482548
}
25492549
goto done;
2550+
case ZEND_FRAMELESS_ICALL_0:
2551+
jit_frameless_icall0(jit, opline);
2552+
goto done;
2553+
case ZEND_FRAMELESS_ICALL_1:
2554+
op1_info = OP1_INFO();
2555+
jit_frameless_icall1(jit, opline, op1_info);
2556+
goto done;
2557+
case ZEND_FRAMELESS_ICALL_2:
2558+
op1_info = OP1_INFO();
2559+
op2_info = OP2_INFO();
2560+
jit_frameless_icall2(jit, opline, op1_info, op2_info);
2561+
goto done;
2562+
case ZEND_FRAMELESS_ICALL_3:
2563+
op1_info = OP1_INFO();
2564+
op2_info = OP2_INFO();
2565+
jit_frameless_icall3(jit, opline, op1_info, op2_info, OP1_DATA_INFO());
2566+
goto done;
25502567
default:
25512568
break;
25522569
}
@@ -2693,23 +2710,6 @@ static int zend_jit(const zend_op_array *op_array, zend_ssa *ssa, const zend_op
26932710
call_level--;
26942711
}
26952712
break;
2696-
case ZEND_FRAMELESS_ICALL_0:
2697-
jit_frameless_icall0(jit, opline);
2698-
goto done;
2699-
case ZEND_FRAMELESS_ICALL_1:
2700-
op1_info = OP1_INFO();
2701-
jit_frameless_icall1(jit, opline, op1_info);
2702-
goto done;
2703-
case ZEND_FRAMELESS_ICALL_2:
2704-
op1_info = OP1_INFO();
2705-
op2_info = OP2_INFO();
2706-
jit_frameless_icall2(jit, opline, op1_info, op2_info);
2707-
goto done;
2708-
case ZEND_FRAMELESS_ICALL_3:
2709-
op1_info = OP1_INFO();
2710-
op2_info = OP2_INFO();
2711-
jit_frameless_icall3(jit, opline, op1_info, op2_info, OP1_DATA_INFO());
2712-
goto done;
27132713
default:
27142714
if (!zend_jit_handler(&ctx, opline,
27152715
zend_may_throw(opline, ssa_op, op_array, ssa))) {

0 commit comments

Comments
 (0)