Home
last modified time | relevance | path

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

12

/PHP-5.6/ext/opcache/Optimizer/
H A Dpass3.c29 zend_op *end = op_array->opcodes + op_array->last;
37 opline = op_array->opcodes;
178 if (op_array->opcodes[target].opcode == ZEND_JMP) {
204 if (op_array->opcodes[target].opcode == ZEND_JMP) {
220 COPY_NODE(opline->result, op_array->opcodes[target].result);
270 SAME_VAR(op_array->opcodes[target].op1, T)) {
272 if (op_array->opcodes[target].opcode == opline->opcode) {
274 COPY_NODE(T, op_array->opcodes[target].result);
279 SAME_VAR(op_array->opcodes[target].op1, T)) {
287 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 Dzend_optimizer.c309 zend_op *end = op_array->opcodes + op_array->last; in replace_var_by_const()
340 if (op_array->brk_cont_array[brk].start <= (opline - op_array->opcodes) && in replace_var_by_const()
341 op_array->brk_cont_array[brk].brk > (opline - op_array->opcodes)) { in replace_var_by_const()
346 n = op_array->opcodes + op_array->brk_cont_array[brk].brk + 1; in replace_var_by_const()
401 zend_op *end = op_array->opcodes + op_array->last; in replace_tmp_by_const()
418 if (op_array->brk_cont_array[brk].start <= (opline - op_array->opcodes) && in replace_tmp_by_const()
419 op_array->brk_cont_array[brk].brk > (opline - op_array->opcodes)) { in replace_tmp_by_const()
432 n = op_array->opcodes + op_array->brk_cont_array[brk].brk + 1; in replace_tmp_by_const()
548 opline = op_array->opcodes; in zend_accel_optimize()
567 ZEND_OP1(opline).opline_num = ZEND_OP1(opline).jmp_addr - op_array->opcodes; in zend_accel_optimize()
[all …]
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()
616 print_block(block, op_array->opcodes, "Opt "); in zend_optimize_block()
1303 efree(op_array->opcodes); in assemble_code_blocks()
1312 opline = op_array->opcodes; in assemble_code_blocks()
[all …]
H A Doptimize_func_calls.c12 zend_op *opline = op_array->opcodes; in optimize_func_calls()
H A Dpass1_5.c17 zend_op *opline = op_array->opcodes;
213 …ZEND_OP1(opline + 1).opline_num = last_op - op_array->opcodes; /* that's OK even for ZE2, since op…
542 if (opline != op_array->opcodes &&
H A Dcompact_literals.c107 opline = op_array->opcodes; in optimizer_compact_literals()
449 opline = op_array->opcodes; in optimizer_compact_literals()
/PHP-5.6/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.php597 foreach($opcodes as $num => $dsc) {
682 foreach($opcodes as $num => $dsc) {
765 …gen_handler($f, 1, $kind, $opcodes[$num]["op"], $op1, $op2, isset($opcodes[$num]["use"]), $opcodes
790 …gen_handler($f, 0, $kind, $opcodes[$num]["op"], "ANY", "ANY", isset($opcodes[$num]["use"]), $opcod…
1108 if (isset($opcodes[$code])) {
1189 ksort($opcodes);
1192 foreach ($opcodes as $dsc) {
1199 $opcodes[$code]['use'] = 1;
1215 foreach ($opcodes as $code => $dsc) {
1235 fputs($f,"\t".(isset($opcodes[$i]["op"])?'"'.$opcodes[$i]["op"].'"':"NULL").",\n");
[all …]
H A Dzend_compile.c977 last_op = &CG(active_op_array)->opcodes[last_op_number-n-1]; in zend_do_assign()
989 last_op = &CG(active_op_array)->opcodes[opline_no]; in zend_do_assign()
1005 last_op = &CG(active_op_array)->opcodes[opline_no]; in zend_do_assign()
1045 opline = &CG(active_op_array)->opcodes[last_op_number-1]; in zend_do_assign_ref()
1485 while (opline>CG(active_op_array)->opcodes) { in zend_do_free()
1809 current_op = &current_op_array->opcodes[current_op_number]; in zend_do_begin_lambda_function_declaration()
2026 last_op = &CG(active_op_array)->opcodes[last_op_number]; in zend_do_begin_method_call()
3465 zend_op *op = ((zend_op_array *)fptr)->opcodes; in zend_get_function_declaration()
4615 old_function->op_array.opcodes[0].lineno); in do_bind_function()
4818 *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_execute_API.c71 active_opline-EG(active_op_array)->opcodes,
1162 EG(start_op) = CG(active_op_array)->opcodes; in execute_new_code()
1166 end=CG(active_op_array)->opcodes+CG(active_op_array)->last; in execute_new_code()
1182 opline->op1.jmp_addr = &CG(active_op_array)->opcodes[opline->op1.opline_num]; in execute_new_code()
1190 opline->op2.jmp_addr = &CG(active_op_array)->opcodes[opline->op2.opline_num]; in execute_new_code()
1211 EG(start_op) = CG(active_op_array)->opcodes+CG(active_op_array)->last; in execute_new_code()
H A Dzend_vm_def.h3535 ZEND_VM_JMP(EX(op_array)->opcodes + el->brk);
3546 ZEND_VM_JMP(EX(op_array)->opcodes + el->cont);
3559 brk_opline = EX(op_array)->opcodes + el->brk;
3629 ZEND_VM_JMP(EX(op_array)->opcodes + opline->op2.opline_num);
4336 ZEND_VM_JMP(EX(op_array)->opcodes+opline->op2.opline_num);
4470 ZEND_VM_JMP(EX(op_array)->opcodes+opline->op2.opline_num);
4497 ZEND_VM_JMP(EX(op_array)->opcodes+opline->op2.opline_num);
4541 ZEND_VM_JMP(EX(op_array)->opcodes+opline->op2.opline_num);
4568 ZEND_VM_JMP(EX(op_array)->opcodes+opline->op2.opline_num);
5339 ZEND_VM_SET_OPCODE(&EX(op_array)->opcodes[finally_op_num]);
[all …]
/PHP-5.6/sapi/phpdbg/
H A Dphpdbg_prompt.c435 zend_op *opline = &EG(active_op_array)->opcodes[self]; in PHPDBG_COMMAND()
438 if (EG(active_op_array)->opcodes[next].lineno != opline->lineno) { in PHPDBG_COMMAND()
441 (zend_ulong) &EG(active_op_array)->opcodes[next], in PHPDBG_COMMAND()
442 &EG(active_op_array)->opcodes[next], in PHPDBG_COMMAND()
465 switch (EG(active_op_array)->opcodes[next].opcode) { in PHPDBG_COMMAND()
474 (zend_ulong) &EG(active_op_array)->opcodes[next], in PHPDBG_COMMAND()
475 &EG(active_op_array)->opcodes[next], in PHPDBG_COMMAND()
498 switch (EG(active_op_array)->opcodes[next].opcode) { in PHPDBG_COMMAND()
507 (zend_ulong) &EG(active_op_array)->opcodes[next], in PHPDBG_COMMAND()
508 &EG(active_op_array)->opcodes[next], in PHPDBG_COMMAND()
[all …]
H A Dphpdbg_opcode.c90 asprintf(&decode[1], "J%ld", op->op1.jmp_addr - ops->opcodes); in phpdbg_decode_opline()
112 &decode[2], "J%ld", op->op2.jmp_addr - ops->opcodes); in phpdbg_decode_opline()
H A Dphpdbg_print.c61 zend_op *opline = &(op_array->opcodes[0]); in phpdbg_print_function_helper()
H A Dphpdbg_bp.c379 opline_break.opline = brake->opline = (zend_ulong)(op_array->opcodes + brake->opline_num); in phpdbg_resolve_op_array_break()
913 return param->type == STR_PARAM || execute_data->opline - ops->opcodes == param->num; in phpdbg_find_breakpoint_param()
946 return param->type == METHOD_PARAM || (execute_data->opline - ops->opcodes) == param->num; in phpdbg_find_breakpoint_param()
1059 if (execute_data->opline == EG(active_op_array)->opcodes) {
H A Dphpdbg.c277 EG(active_op_array)->opcodes); in PHP_FUNCTION()
280 &EG(active_op_array)->opcodes[opline_num+1] TSRMLS_CC); in PHP_FUNCTION()
/PHP-5.6/ext/opcache/
H A Dzend_persist_calc.c183 if (!zend_shared_alloc_get_xlat_entry(op_array->opcodes)) {
185 zend_op *opline = op_array->opcodes;
186 zend_op *end = op_array->opcodes + op_array->last;
188 ADD_DUP_SIZE(op_array->opcodes, sizeof(zend_op) * op_array->last);
199 ADD_DUP_SIZE(op_array->opcodes, sizeof(zend_op) * op_array->last);
H A Dzend_persist.c275 if ((persist_ptr = zend_shared_alloc_get_xlat_entry(op_array->opcodes))) {
276 op_array->opcodes = persist_ptr;
278 zend_op *new_opcodes = zend_accel_memdup(op_array->opcodes, sizeof(zend_op) * op_array->last);
306 ZEND_OP1(opline).jmp_addr = &new_opcodes[ZEND_OP1(opline).jmp_addr - op_array->opcodes];
315 ZEND_OP2(opline).jmp_addr = &new_opcodes[ZEND_OP2(opline).jmp_addr - op_array->opcodes];
355 ZEND_OP1(opline).jmp_addr = &new_opcodes[ZEND_OP1(opline).jmp_addr - op_array->opcodes];
365 ZEND_OP2(opline).jmp_addr = &new_opcodes[ZEND_OP2(opline).jmp_addr - op_array->opcodes];
372 efree(op_array->opcodes);
373 op_array->opcodes = new_opcodes;
H A Dzend_accelerator_util_funcs.c945 CG(zend_lineno) = function1->op_array.opcodes[0].lineno;
951 (int)function2->op_array.opcodes[0].lineno);
987 …if (zend_lookup_class(Z_STRVAL(op_array->opcodes[opline_num - 1].op2.u.constant), Z_STRLEN(op_arra…
988 do_bind_inherited_class(&op_array->opcodes[opline_num], EG(class_table), *pce, 1 TSRMLS_CC);
990 opline_num = op_array->opcodes[opline_num].result.u.opline_num;
H A DREADME159 The OPcache stores the places where DECLARE_CLASS opcodes use
160 inheritance (These are the only opcodes that can be executed by PHP,
/PHP-5.6/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 …]

Completed in 121 milliseconds

12