Skip to content

Commit 9f0213f

Browse files
committed
Remove old code (BP_VAR_RW warning)
1 parent 015fc63 commit 9f0213f

File tree

3 files changed

+3
-19
lines changed

3 files changed

+3
-19
lines changed

ext/opcache/jit/zend_jit_disasm_x86.c

-1
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,6 @@ static int zend_jit_disasm_init(void)
409409
REGISTER_HELPER(zend_jit_hash_lookup_w);
410410
REGISTER_HELPER(zend_jit_symtable_lookup_rw);
411411
REGISTER_HELPER(zend_jit_symtable_lookup_w);
412-
REGISTER_HELPER(zend_jit_fetch_dimension_rw_long_helper);
413412
REGISTER_HELPER(zend_jit_undefined_op_helper);
414413
REGISTER_HELPER(zend_jit_fetch_dim_r_helper);
415414
REGISTER_HELPER(zend_jit_fetch_dim_is_helper);

ext/opcache/jit/zend_jit_helpers.c

-6
Original file line numberDiff line numberDiff line change
@@ -810,12 +810,6 @@ static void ZEND_FASTCALL zend_jit_fetch_dim_obj_is_helper(zval *container, zval
810810
}
811811
}
812812

813-
static zval* ZEND_FASTCALL zend_jit_fetch_dimension_rw_long_helper(HashTable *ht, zend_long hval)
814-
{
815-
zend_error(E_NOTICE,"Undefined array key " ZEND_LONG_FMT, hval);
816-
return zend_hash_index_update(ht, hval, &EG(uninitialized_zval));
817-
}
818-
819813
static zend_never_inline zend_long zend_check_string_offset(zval *dim, int type)
820814
{
821815
zend_long offset;

ext/opcache/jit/zend_jit_x86.dasc

+3-12
Original file line numberDiff line numberDiff line change
@@ -4823,7 +4823,7 @@ static int zend_jit_fetch_dimension_address_inner(dasm_State **Dst, const zend_o
48234823
zend_jit_addr res_addr = ZEND_ADDR_MEM_ZVAL(ZREG_FP, opline->result.var);
48244824

48254825
if (JIT_G(trigger) == ZEND_JIT_ON_HOT_TRACE
4826-
&& (type == BP_VAR_R || type == BP_VAR_RW)
4826+
&& type == BP_VAR_R
48274827
&& !exit_addr) {
48284828
int32_t exit_point = zend_jit_trace_get_exit_point(opline, opline, NULL, ZEND_JIT_EXIT_TO_VM);
48294829
exit_addr = zend_jit_trace_get_exit_addr(exit_point);
@@ -4865,7 +4865,7 @@ static int zend_jit_fetch_dimension_address_inner(dasm_State **Dst, const zend_o
48654865
} else {
48664866
| jbe >9 // NOT_FOUND
48674867
}
4868-
} else if (JIT_G(trigger) == ZEND_JIT_ON_HOT_TRACE && (type == BP_VAR_R || type == BP_VAR_RW)) {
4868+
} else if (JIT_G(trigger) == ZEND_JIT_ON_HOT_TRACE && type == BP_VAR_R) {
48694869
| jbe &exit_addr
48704870
} else if (type == BP_VAR_IS && not_found_exit_addr) {
48714871
| jbe &not_found_exit_addr
@@ -4904,7 +4904,7 @@ static int zend_jit_fetch_dimension_address_inner(dasm_State **Dst, const zend_o
49044904
} else {
49054905
| jbe >9 // NOT_FOUND
49064906
}
4907-
} else if (JIT_G(trigger) == ZEND_JIT_ON_HOT_TRACE && (type == BP_VAR_R || type == BP_VAR_RW)) {
4907+
} else if (JIT_G(trigger) == ZEND_JIT_ON_HOT_TRACE && type == BP_VAR_R) {
49084908
| jbe &exit_addr
49094909
} else if (type == BP_VAR_IS && not_found_exit_addr) {
49104910
| jbe &not_found_exit_addr
@@ -5009,16 +5009,7 @@ static int zend_jit_fetch_dimension_address_inner(dasm_State **Dst, const zend_o
50095009
break;
50105010
case BP_VAR_RW:
50115011
|2:
5012-
if (JIT_G(trigger) != ZEND_JIT_ON_HOT_TRACE) {
5013-
| SAVE_VALID_OPLINE opline, r0
5014-
| // zend_error(E_NOTICE,"Undefined arary offset " ZEND_LONG_FMT, hval);
5015-
| //retval = zend_hash_index_update(ht, hval, &EG(uninitialized_zval));
5016-
| EXT_CALL zend_jit_fetch_dimension_rw_long_helper, r0
5017-
}
50185012
if (op1_info & MAY_BE_ARRAY_KEY_LONG) {
5019-
if (JIT_G(trigger) != ZEND_JIT_ON_HOT_TRACE) {
5020-
| jmp >8
5021-
}
50225013
|4:
50235014
| SAVE_VALID_OPLINE opline, r0
50245015
| EXT_CALL zend_jit_hash_index_lookup_rw, r0

0 commit comments

Comments
 (0)