Skip to content

Commit beba96d

Browse files
committed
JIT: Fixed jump to undefined label
1 parent 92f808b commit beba96d

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

ext/opcache/jit/zend_jit_arm64.dasc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5239,7 +5239,11 @@ static int zend_jit_fetch_dimension_address_inner(dasm_State **Dst, const zend_o
52395239
| EXT_CALL zend_jit_hash_lookup_rw, REG0
52405240
}
52415241
| mov REG0, RETVALx
5242-
| cbz REG0, >9
5242+
if (not_found_exit_addr) {
5243+
| cbz REG0, &not_found_exit_addr
5244+
} else {
5245+
| cbz REG0, >9
5246+
}
52435247
break;
52445248
case BP_VAR_W:
52455249
if (opline->op2_type != IS_CONST) {

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5703,7 +5703,11 @@ static int zend_jit_fetch_dimension_address_inner(dasm_State **Dst, const zend_o
57035703
| EXT_CALL zend_jit_hash_lookup_rw, r0
57045704
}
57055705
| test r0, r0
5706-
| jz >9
5706+
if (not_found_exit_addr) {
5707+
| jz &not_found_exit_addr
5708+
} else {
5709+
| jz >9
5710+
}
57075711
break;
57085712
case BP_VAR_W:
57095713
if (opline->op2_type != IS_CONST) {

0 commit comments

Comments
 (0)