Skip to content

Commit 2137465

Browse files
committed
Use IS_OBJECT_EX for comparison
There's only one possible set of flags for objects, and the assigned type is hardcoded anyway.
1 parent 35a67d7 commit 2137465

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/jit/zend_jit_arm64.dasc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11841,7 +11841,7 @@ static int zend_jit_fetch_obj(dasm_State **Dst,
1184111841
| ldr TMP1w, [FCARG2x, #offsetof(zend_property_info, flags)]
1184211842
| tst TMP1w, #ZEND_ACC_READONLY
1184311843
| bne >3
11844-
| IF_NOT_TYPE REG2w, IS_OBJECT, >2
11844+
| IF_NOT_TYPE REG2w, IS_OBJECT_EX, >2
1184511845
| GET_Z_PTR REG2, FCARG1x
1184611846
| GC_ADDREF REG2, TMP1w
1184711847
| SET_ZVAL_PTR res_addr, REG2, TMP1
@@ -11884,7 +11884,7 @@ static int zend_jit_fetch_obj(dasm_State **Dst,
1188411884
| IF_UNDEF REG2w, >5
1188511885
}
1188611886
if (opline->opcode == ZEND_FETCH_OBJ_W && (prop_info->flags & ZEND_ACC_READONLY)) {
11887-
| IF_NOT_TYPE REG2w, IS_OBJECT, >4
11887+
| IF_NOT_TYPE REG2w, IS_OBJECT_EX, >4
1188811888
| GET_ZVAL_PTR REG2, prop_addr, TMP1
1188911889
| GC_ADDREF REG2, TMP1w
1189011890
| SET_ZVAL_PTR res_addr, REG2, TMP1

0 commit comments

Comments
 (0)