Home
last modified time | relevance | path

Searched refs:jumptable (Results 1 – 13 of 13) sorted by relevance

/php-src/Zend/tests/match/
H A D040.phpt2 Test match with mixed int/string jumptable
H A D037.phpt2 Test match jumptable with only one arm
/php-src/ext/opcache/tests/jit/
H A Dswitch_jumptable.phpt2 Switch jumptable generation
/php-src/Zend/Optimizer/
H A Dzend_cfg.c397 HashTable *jumptable = Z_ARRVAL_P(CRT_CONSTANT(opline->op2)); in zend_build_cfg() local
399 ZEND_HASH_FOREACH_VAL(jumptable, zv) { in zend_build_cfg()
564 HashTable *jumptable = Z_ARRVAL_P(CRT_CONSTANT(opline->op2)); in zend_build_cfg() local
568 …ock->successors_count = (opline->opcode == ZEND_MATCH ? 1 : 2) + zend_hash_num_elements(jumptable); in zend_build_cfg()
571 ZEND_HASH_FOREACH_VAL(jumptable, zv) { in zend_build_cfg()
H A Dblock_pass.c110 HashTable *jumptable = Z_ARRVAL(ZEND_OP2_LITERAL(opline)); in get_const_switch_target() local
122 zv = zend_hash_index_find(jumptable, Z_LVAL_P(val)); in get_const_switch_target()
125 zv = zend_hash_find(jumptable, Z_STR_P(val)); in get_const_switch_target()
1036 HashTable *jumptable = Z_ARRVAL(ZEND_OP2_LITERAL(opline)); in assemble_code_blocks() local
1039 …b->successors_count == (opline->opcode == ZEND_MATCH ? 1 : 2) + zend_hash_num_elements(jumptable)); in assemble_code_blocks()
1041 ZEND_HASH_FOREACH_VAL(jumptable, zv) { in assemble_code_blocks()
H A Dzend_optimizer.c740 HashTable *jumptable = Z_ARRVAL(ZEND_OP2_LITERAL(opline)); in zend_optimizer_migrate_jump() local
742 ZEND_HASH_FOREACH_VAL(jumptable, zv) { in zend_optimizer_migrate_jump()
785 HashTable *jumptable = Z_ARRVAL(ZEND_OP2_LITERAL(opline)); in zend_optimizer_shift_jump() local
787 ZEND_HASH_FOREACH_VAL(jumptable, zv) { in zend_optimizer_shift_jump()
H A Dzend_dump.c665 HashTable *jumptable = Z_ARRVAL_P(op); in zend_dump_op() local
669 ZEND_HASH_FOREACH_KEY_VAL(jumptable, num_key, key, zv) { in zend_dump_op()
H A Ddfa_pass.c678 HashTable *jumptable = Z_ARRVAL(ZEND_OP2_LITERAL(opline)); in zend_ssa_replace_control_link() local
680 ZEND_HASH_FOREACH_VAL(jumptable, zv) { in zend_ssa_replace_control_link()
/php-src/ext/opcache/jit/
H A Dzend_jit_ir.c3545 ZEND_HASH_FOREACH_VAL(jumptable, zv) { in zend_jit_case_start()
3553 if (HT_IS_PACKED(jumptable)) { in zend_jit_case_start()
15328 if (!HT_IS_PACKED(jumptable)) {
15330 ir_CONST_ADDR(jumptable), ref);
15348 if (HT_IS_PACKED(jumptable)) {
15456 ir_CONST_ADDR(jumptable), ref);
15473 if (HT_IS_PACKED(jumptable)) {
15551 ir_CONST_ADDR(jumptable), ref);
15581 ir_CONST_ADDR(jumptable), ref2);
15592 if (HT_IS_PACKED(jumptable)) {
[all …]
/php-src/Zend/
H A Dzend_opcode.c1167 HashTable *jumptable = Z_ARRVAL_P(CT_CONSTANT(opline->op2)); in pass_two() local
1169 ZEND_HASH_FOREACH_VAL(jumptable, zv) { in pass_two()
H A Dzend_compile.c5915 HashTable *jumptable = NULL; in zend_compile_switch() local
5928 ALLOC_HASHTABLE(jumptable); in zend_compile_switch()
5931 ZVAL_ARR(&jumptable_op.u.constant, jumptable); in zend_compile_switch()
5989 if (jumptable) { in zend_compile_switch()
6005 if (jumptable) { in zend_compile_switch()
6018 if (jumptable) { in zend_compile_switch()
6098 HashTable *jumptable = NULL; in zend_compile_match() local
6117 ALLOC_HASHTABLE(jumptable); in zend_compile_match()
6174 if (jumptable) { in zend_compile_match()
6203 if (jumptable) { in zend_compile_match()
[all …]
H A Dzend_vm_def.h9135 HashTable *jumptable; variable
9147 jumptable = Z_ARRVAL_P(GET_OP2_ZVAL_PTR(BP_VAR_R));
9148 jump_zv = zend_hash_index_find(jumptable, Z_LVAL_P(op));
9163 HashTable *jumptable; variable
9180 jumptable = Z_ARRVAL_P(GET_OP2_ZVAL_PTR(BP_VAR_R));
9181 jump_zv = zend_hash_find_ex(jumptable, Z_STR_P(op), OP1_TYPE == IS_CONST);
9196 HashTable *jumptable; variable
9199 jumptable = Z_ARRVAL_P(GET_OP2_ZVAL_PTR(BP_VAR_R));
9203 jump_zv = zend_hash_index_find(jumptable, Z_LVAL_P(op));
9205 jump_zv = zend_hash_find_ex(jumptable, Z_STR_P(op), OP1_TYPE == IS_CONST);
H A Dzend_vm_execute.h7893 HashTable *jumptable; in ZEND_SWITCH_LONG_SPEC_CONST_CONST_HANDLER() local
7905 jumptable = Z_ARRVAL_P(RT_CONSTANT(opline, opline->op2)); in ZEND_SWITCH_LONG_SPEC_CONST_CONST_HANDLER()
7906 jump_zv = zend_hash_index_find(jumptable, Z_LVAL_P(op)); in ZEND_SWITCH_LONG_SPEC_CONST_CONST_HANDLER()
7921 HashTable *jumptable; in ZEND_SWITCH_STRING_SPEC_CONST_CONST_HANDLER() local
7938 jumptable = Z_ARRVAL_P(RT_CONSTANT(opline, opline->op2)); in ZEND_SWITCH_STRING_SPEC_CONST_CONST_HANDLER()
7954 HashTable *jumptable; in ZEND_MATCH_SPEC_CONST_CONST_HANDLER() local
7957 jumptable = Z_ARRVAL_P(RT_CONSTANT(opline, opline->op2)); in ZEND_MATCH_SPEC_CONST_CONST_HANDLER()
13123 HashTable *jumptable; in ZEND_SWITCH_LONG_SPEC_TMPVARCV_CONST_HANDLER() local
13136 jump_zv = zend_hash_index_find(jumptable, Z_LVAL_P(op)); in ZEND_SWITCH_LONG_SPEC_TMPVARCV_CONST_HANDLER()
13151 HashTable *jumptable; in ZEND_SWITCH_STRING_SPEC_TMPVARCV_CONST_HANDLER() local
[all …]

Completed in 264 milliseconds