Home
last modified time | relevance | path

Searched refs:opcodes (Results 1 – 25 of 25) sorted by relevance

/PHP-5.5/ext/opcache/Optimizer/
H A Dpass3.c29 zend_op *end = op_array->opcodes + op_array->last;
37 opline = op_array->opcodes;
170 if (op_array->opcodes[target].opcode == ZEND_JMP) {
196 if (op_array->opcodes[target].opcode == ZEND_JMP) {
212 COPY_NODE(opline->result, op_array->opcodes[target].result);
262 SAME_VAR(op_array->opcodes[target].op1, T)) {
264 if (op_array->opcodes[target].opcode == opline->opcode) {
266 COPY_NODE(T, op_array->opcodes[target].result);
271 SAME_VAR(op_array->opcodes[target].op1, T)) {
279 new_target = op_array->opcodes[target].extended_value;
[all …]
H A Dnop_removal.c15 end = op_array->opcodes + op_array->last; in nop_removal()
16 for (opline = op_array->opcodes; opline < end; opline++) { in nop_removal()
31 zend_op *target = op_array->opcodes + ZEND_OP1(opline).opline_num - 1; in nop_removal()
47 op_array->opcodes[new_count] = *opline; in nop_removal()
55 end = op_array->opcodes + op_array->last; in nop_removal()
58 for (opline = op_array->opcodes; opline<end; opline++) { in nop_removal()
120 opline_num = &ZEND_RESULT(&op_array->opcodes[*opline_num]).opline_num; in nop_removal()
H A Doptimize_temp_vars_5.c91 end = op_array->opcodes;
92 opline = &op_array->opcodes[op_array->last - 1];
113 end = op_array->opcodes;
114 opline = &op_array->opcodes[op_array->last - 1];
H A Dpass2.c9 zend_op *end = op_array->opcodes + op_array->last;
11 opline = op_array->opcodes;
178 if (op_array->opcodes[jmp_to->brk].opcode == ZEND_FREE ||
179 op_array->opcodes[jmp_to->brk].opcode == ZEND_SWITCH_FREE
H A Dblock_pass.c41 # define BLOCK_REF(b) b?op_array->opcodes-b->start_opline:-1
45 …tderr, "%sBlock: %d-%d (%d)", txt, block->start_opline - opcodes, block->start_opline - opcodes + … in print_block()
66 fprintf(stderr, " %d", bs->from->start_opline - opcodes); in print_block()
86 zend_op *end = op_array->opcodes + op_array->last; in find_code_blocks()
92 opline = op_array->opcodes; in find_code_blocks()
303 print_block(cur_block, op_array->opcodes, ""); in find_code_blocks()
309 print_block(cur_block, op_array->opcodes, ""); in find_code_blocks()
612 print_block(block, op_array->opcodes, "Opt "); in zend_optimize_block()
1296 efree(op_array->opcodes); in assemble_code_blocks()
1305 opline = op_array->opcodes; in assemble_code_blocks()
[all …]
H A Dzend_optimizer.c282 zend_op *end = op_array->opcodes + op_array->last; in replace_tmp_by_const()
299 if (op_array->brk_cont_array[brk].start <= (opline - op_array->opcodes) && in replace_tmp_by_const()
300 op_array->brk_cont_array[brk].brk > (opline - op_array->opcodes)) { in replace_tmp_by_const()
313 n = op_array->opcodes + op_array->brk_cont_array[brk].brk + 1; in replace_tmp_by_const()
H A Dpass1_5.c11 zend_op *opline = op_array->opcodes;
202 …ZEND_OP1(opline + 1).opline_num = last_op - op_array->opcodes; /* that's OK even for ZE2, since op…
274 if (opline != op_array->opcodes &&
/PHP-5.5/Zend/
H A Dzend_opcode.c48 op_array->opcodes = erealloc(op_array->opcodes, size * sizeof(zend_op)); in op_array_alloc_ops()
65 op_array->opcodes = NULL; in init_op_array()
392 efree(op_array->opcodes); in destroy_op_array()
443 next_op = &(op_array->opcodes[next_op_num]); in get_next_op()
503 CG(zend_lineno) = op_array->opcodes[op_num].lineno; in zend_check_finally_breakout()
511 CG(zend_lineno) = op_array->opcodes[op_num].lineno; in zend_check_finally_breakout()
624 *opline = op_array->opcodes[op_num]; in zend_resolve_finally_call()
627 opline = op_array->opcodes + op_num; in zend_resolve_finally_call()
672 opline = op_array->opcodes + i; in zend_resolve_finally_calls()
742 op_array->opcodes = (zend_op *) erealloc(op_array->opcodes, sizeof(zend_op)*op_array->last); in pass_two()
[all …]
H A Dzend_vm_gen.php570 foreach($opcodes as $num => $dsc) {
655 foreach($opcodes as $num => $dsc) {
738 …gen_handler($f, 1, $kind, $opcodes[$num]["op"], $op1, $op2, isset($opcodes[$num]["use"]), $opcodes
763 …gen_handler($f, 0, $kind, $opcodes[$num]["op"], "ANY", "ANY", isset($opcodes[$num]["use"]), $opcod…
1081 if (isset($opcodes[$code])) {
1162 ksort($opcodes);
1165 foreach ($opcodes as $dsc) {
1172 $opcodes[$code]['use'] = 1;
1188 foreach ($opcodes as $code => $dsc) {
1208 fputs($f,"\t".(isset($opcodes[$i]["op"])?'"'.$opcodes[$i]["op"].'"':"NULL").",\n");
[all …]
H A Dzend_compile.c969 last_op = &CG(active_op_array)->opcodes[last_op_number-n-1]; in zend_do_assign()
981 last_op = &CG(active_op_array)->opcodes[opline_no]; in zend_do_assign()
997 last_op = &CG(active_op_array)->opcodes[opline_no]; in zend_do_assign()
1037 opline = &CG(active_op_array)->opcodes[last_op_number-1]; in zend_do_assign_ref()
1477 while (opline>CG(active_op_array)->opcodes) { in zend_do_free()
1781 current_op = &current_op_array->opcodes[current_op_number]; in zend_do_begin_lambda_function_declaration()
1982 last_op = &CG(active_op_array)->opcodes[last_op_number]; in zend_do_begin_method_call()
3325 zend_op *op = ((zend_op_array *)fptr)->opcodes; in zend_get_function_declaration()
4472 old_function->op_array.opcodes[0].lineno); in do_bind_function()
4675 *opline_num = opline - CG(active_op_array)->opcodes; in zend_do_early_binding()
[all …]
H A Dzend_generators.c47 zend_uint op_num = execute_data->opline - op_array->opcodes - 1; in zend_generator_cleanup_unfinished_execution()
58 zend_op *brk_opline = op_array->opcodes + brk_cont->brk; in zend_generator_cleanup_unfinished_execution()
180 op_num = ex->opline - ex->op_array->opcodes - 1; in zend_generator_dtor_storage()
199 ex->opline = &ex->op_array->opcodes[finally_op_num]; in zend_generator_dtor_storage()
H A Dzend_vm_def.h3302 ZEND_VM_JMP(EX(op_array)->opcodes + el->brk);
3313 ZEND_VM_JMP(EX(op_array)->opcodes + el->cont);
3326 brk_opline = EX(op_array)->opcodes + el->brk;
3399 ZEND_VM_JMP(EX(op_array)->opcodes + opline->op2.opline_num);
4117 ZEND_VM_JMP(EX(op_array)->opcodes+opline->op2.opline_num);
4232 ZEND_VM_JMP(EX(op_array)->opcodes+opline->op2.opline_num);
4259 ZEND_VM_JMP(EX(op_array)->opcodes+opline->op2.opline_num);
4303 ZEND_VM_JMP(EX(op_array)->opcodes+opline->op2.opline_num);
4330 ZEND_VM_JMP(EX(op_array)->opcodes+opline->op2.opline_num);
5098 ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[finally_op_num]);
[all …]
H A Dzend_execute_API.c71 active_opline-EG(active_op_array)->opcodes,
1264 EG(start_op) = CG(active_op_array)->opcodes; in execute_new_code()
1268 end=CG(active_op_array)->opcodes+CG(active_op_array)->last; in execute_new_code()
1284 opline->op1.jmp_addr = &CG(active_op_array)->opcodes[opline->op1.opline_num]; in execute_new_code()
1292 opline->op2.jmp_addr = &CG(active_op_array)->opcodes[opline->op2.opline_num]; in execute_new_code()
1313 EG(start_op) = CG(active_op_array)->opcodes+CG(active_op_array)->last; in execute_new_code()
H A Dzend_execute.c1422 zend_op *brk_opline = &op_array->opcodes[jmp_to->brk]; in zend_brk_cont()
1667 …p_array->fn_flags & ZEND_ACC_INTERACTIVE) != 0) && EG(start_op) ? EG(start_op) : op_array->opcodes; in i_create_execute_data_from_op_array()
H A Dzend_compile.h275 zend_op *opcodes; member
H A Dzend_vm_execute.h769 ZEND_VM_JMP(EX(op_array)->opcodes + opline->op2.opline_num); in ZEND_NEW_SPEC_HANDLER()
1076 ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[finally_op_num]); in ZEND_HANDLE_EXCEPTION_SPEC_HANDLER()
1079 ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[catch_op_num]); in ZEND_HANDLE_EXCEPTION_SPEC_HANDLER()
1440 ZEND_VM_JMP(EX(op_array)->opcodes + el->brk); in ZEND_BRK_SPEC_CONST_HANDLER()
1451 ZEND_VM_JMP(EX(op_array)->opcodes + el->cont); in ZEND_CONT_SPEC_CONST_HANDLER()
1464 brk_opline = EX(op_array)->opcodes + el->brk; in ZEND_GOTO_SPEC_CONST_HANDLER()
2802 ZEND_VM_JMP(EX(op_array)->opcodes+opline->op2.opline_num); in ZEND_FE_RESET_SPEC_CONST_HANDLER()
2916 ZEND_VM_JMP(EX(op_array)->opcodes+opline->op2.opline_num); in ZEND_FE_RESET_SPEC_CONST_HANDLER()
8227 ZEND_VM_JMP(EX(op_array)->opcodes+opline->op2.opline_num); in ZEND_FE_RESET_SPEC_TMP_HANDLER()
13545 ZEND_VM_JMP(EX(op_array)->opcodes+opline->op2.opline_num); in ZEND_FE_RESET_SPEC_VAR_HANDLER()
[all …]
/PHP-5.5/ext/opcache/
H A Dzend_persist_calc.c154 if (!zend_shared_alloc_get_xlat_entry(op_array->opcodes)) {
156 zend_op *opline = op_array->opcodes;
157 zend_op *end = op_array->opcodes + op_array->last;
159 ADD_DUP_SIZE(op_array->opcodes, sizeof(zend_op) * op_array->last);
170 ADD_DUP_SIZE(op_array->opcodes, sizeof(zend_op) * op_array->last);
H A Dzend_persist.c244 if ((persist_ptr = zend_shared_alloc_get_xlat_entry(op_array->opcodes))) {
245 op_array->opcodes = persist_ptr;
247 zend_op *new_opcodes = zend_accel_memdup(op_array->opcodes, sizeof(zend_op) * op_array->last);
275 ZEND_OP1(opline).jmp_addr = &new_opcodes[ZEND_OP1(opline).jmp_addr - op_array->opcodes];
284 ZEND_OP2(opline).jmp_addr = &new_opcodes[ZEND_OP2(opline).jmp_addr - op_array->opcodes];
324 ZEND_OP1(opline).jmp_addr = &new_opcodes[ZEND_OP1(opline).jmp_addr - op_array->opcodes];
334 ZEND_OP2(opline).jmp_addr = &new_opcodes[ZEND_OP2(opline).jmp_addr - op_array->opcodes];
341 efree(op_array->opcodes);
342 op_array->opcodes = new_opcodes;
H A Dzend_accelerator_util_funcs.c878 CG(zend_lineno) = function1->op_array.opcodes[0].lineno;
884 (int)function2->op_array.opcodes[0].lineno);
920 …if (zend_lookup_class(Z_STRVAL(op_array->opcodes[opline_num - 1].op2.u.constant), Z_STRLEN(op_arra…
921 do_bind_inherited_class(&op_array->opcodes[opline_num], EG(class_table), *pce, 1 TSRMLS_CC);
923 opline_num = op_array->opcodes[opline_num].result.u.opline_num;
H A DREADME149 The OPcache stores the places where DECLARE_CLASS opcodes use
150 inheritance (These are the only opcodes that can be executed by PHP,
/PHP-5.5/ext/pcre/pcrelib/
H A DHACKING139 is handled entirely at compile time by generating different opcodes for the
237 following opcodes, which come in caseful and caseless versions:
254 Other repeats make use of these opcodes:
267 Another set of matching repeating opcodes (called OP_NOTSTAR, OP_NOTSTARI,
269 The normal single-character opcodes (OP_STAR, etc.) are used for repeated
278 unit. The opcodes are:
306 Repeats of these items use the OP_TYPESTAR etc. set of opcodes, followed by
318 A set of repeating opcodes (called OP_NOTSTAR etc.) are used for repeated,
319 negated, single-character classes. The normal single-character opcodes
422 single-unit opcodes that tell the matcher that skipping the following
[all …]
H A DChangeLog704 generated) now use special opcodes instead of wrapping in ONCE brackets.
1342 opcodes had not been added to the fixed-length checking code. I have (a)
1618 opcodes that mean there is no starting character; this means that when new
2009 added property types that matched character-matching opcodes).
2083 the lengths are correct (equal to the number of opcodes).
3007 4. Debugging: adjusted the names of opcodes for different kinds of parentheses
3527 them into atomic groups such as ($>a+). Now they have their own opcodes,
3605 39. Refactored the code to abolish the use of different opcodes for small
3741 The regular expression compiler produces polymorphic opcodes. That
4927 internal.h so that it is next to the definition of the opcodes.
[all …]
/PHP-5.5/
H A DUPGRADING.INTERNALS34 * opcodes INIT_METHOD_CALL, ZEND_INIT_STATIC_METHOD_CALL,
47 stores new offsets in op_array->opcodes[*].op?.num. You can use macros
H A DNEWS3250 . Changed the structure of op_array.opcodes. The constant values are moved from
/PHP-5.5/ext/reflection/
H A Dphp_reflection.c679 zend_op *op = op_array->opcodes; in _get_recv_op()

Completed in 269 milliseconds