Home
last modified time | relevance | path

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

12

/PHP-7.0/ext/opcache/Optimizer/
H A Dpass3.c59 zend_op *end = op_array->opcodes + op_array->last; in zend_optimizer_pass3()
67 opline = op_array->opcodes; in zend_optimizer_pass3()
194 if (op_array->opcodes[target].opcode == ZEND_JMP) { in zend_optimizer_pass3()
210 if (op_array->opcodes[target].opcode == ZEND_JMP) { in zend_optimizer_pass3()
226 COPY_NODE(opline->result, op_array->opcodes[target].result); in zend_optimizer_pass3()
272 SAME_VAR(op_array->opcodes[target].op1, T)) { in zend_optimizer_pass3()
274 if (op_array->opcodes[target].opcode == opline->opcode) { in zend_optimizer_pass3()
276 COPY_NODE(T, op_array->opcodes[target].result); in zend_optimizer_pass3()
281 SAME_VAR(op_array->opcodes[target].op1, T)) { in zend_optimizer_pass3()
289 new_target = op_array->opcodes[target].extended_value; in zend_optimizer_pass3()
[all …]
H A Dnop_removal.c44 end = op_array->opcodes + op_array->last; in zend_optimizer_nop_removal()
45 for (opline = op_array->opcodes; opline < end; opline++) { in zend_optimizer_nop_removal()
50 zend_op *target = op_array->opcodes + ZEND_OP1(opline).opline_num - 1; in zend_optimizer_nop_removal()
66 op_array->opcodes[new_count] = *opline; in zend_optimizer_nop_removal()
74 end = op_array->opcodes + op_array->last; in zend_optimizer_nop_removal()
77 for (opline = op_array->opcodes; opline<end; opline++) { in zend_optimizer_nop_removal()
134 opline_num = &ZEND_RESULT(&op_array->opcodes[*opline_num]).opline_num; in zend_optimizer_nop_removal()
H A Dblock_pass.c75 …tderr, "%sBlock: %d-%d (%d)", txt, block->start_opline - opcodes, block->start_opline - opcodes + … in print_block()
116 zend_op *end = op_array->opcodes + op_array->last; in find_code_blocks()
122 opline = op_array->opcodes; in find_code_blocks()
325 print_block(cur_block, op_array->opcodes, ""); in find_code_blocks()
331 print_block(cur_block, op_array->opcodes, ""); in find_code_blocks()
593 && block->start_opline > op_array->opcodes in strip_nop()
644 print_block(block, op_array->opcodes, "Opt "); in zend_optimize_block()
657 && block->start_opline > op_array->opcodes in zend_optimize_block()
1270 efree(op_array->opcodes); in assemble_code_blocks()
1278 opline = op_array->opcodes; in assemble_code_blocks()
[all …]
H A Doptimize_temp_vars_5.c64 end = op_array->opcodes; in optimize_temporary_variables()
65 opline = &op_array->opcodes[op_array->last - 1]; in optimize_temporary_variables()
78 end = op_array->opcodes; in optimize_temporary_variables()
79 opline = &op_array->opcodes[op_array->last - 1]; in optimize_temporary_variables()
H A Dpass2.c39 zend_op *end = op_array->opcodes + op_array->last; in zend_optimizer_pass2()
41 opline = op_array->opcodes; in zend_optimizer_pass2()
H A Dzend_optimizer.c79 zend_op *opline = op_array->opcodes; in zend_optimizer_lookup_cv()
368 zend_op *end = op_array->opcodes + op_array->last; in zend_optimizer_replace_by_const()
433 if (op_array->brk_cont_array[brk].start <= (opline - op_array->opcodes) && in zend_optimizer_replace_by_const()
434 op_array->brk_cont_array[brk].brk > (opline - op_array->opcodes)) { in zend_optimizer_replace_by_const()
448 n = op_array->opcodes + op_array->brk_cont_array[brk].brk + 1; in zend_optimizer_replace_by_const()
577 opline = op_array->opcodes; in zend_accel_optimize()
621 opline = op_array->opcodes; in zend_accel_optimize()
668 opline = op_array->opcodes; in zend_accel_adjust_fcall_stack_size()
H A Doptimize_func_calls.c43 zend_op *opline = op_array->opcodes; in optimize_func_calls()
H A Dpass1_5.c43 zend_op *opline = op_array->opcodes; in zend_optimizer_pass1()
237 …ZEND_OP1(opline + 1).opline_num = last_op - op_array->opcodes; /* that's OK even for ZE2, since op… in zend_optimizer_pass1()
655 if (opline != op_array->opcodes && in zend_optimizer_pass1()
H A Dcompact_literals.c135 opline = op_array->opcodes; in zend_optimizer_compact_literals()
502 opline = op_array->opcodes; in zend_optimizer_compact_literals()
/PHP-7.0/Zend/
H A Dzend_opcode.c49 op_array->opcodes = erealloc(op_array->opcodes, size * sizeof(zend_op)); in op_array_alloc_ops()
62 op_array->opcodes = NULL; in init_op_array()
382 efree(op_array->opcodes); in destroy_op_array()
441 next_op = &(op_array->opcodes[next_op_num]); in get_next_op()
501 CG(zend_lineno) = op_array->opcodes[op_num].lineno; in zend_check_finally_breakout()
509 CG(zend_lineno) = op_array->opcodes[op_num].lineno; in zend_check_finally_breakout()
531 op_array->opcodes[op_num].op2.opline_num = finally_op_num - 2; in zend_resolve_fast_call()
555 op_array->opcodes[op_num].op2.opline_num = finally_op_num; in zend_resolve_finally_ret()
559 op_array->opcodes[op_num].op2.opline_num = catch_op_num; in zend_resolve_finally_ret()
598 op_array->opcodes = (zend_op *) erealloc(op_array->opcodes, sizeof(zend_op)*op_array->last); in pass_two()
[all …]
H A Dzend_vm_gen.php758 foreach($opcodes as $num => $dsc) {
851 foreach($opcodes as $num => $dsc) {
952 …gen_handler($f, 1, $kind, $opcodes[$num]["op"], $op1, $op2, isset($opcodes[$num]["use"]), $opcodes
977 …gen_handler($f, 0, $kind, $opcodes[$num]["op"], "ANY", "ANY", isset($opcodes[$num]["use"]), $opcod…
1362 if (isset($opcodes[$code])) {
1451 if (isset($opcodes[$code])) {
1468 ksort($opcodes);
1471 foreach ($opcodes as $dsc) {
1478 $opcodes[$code]['use'] = 1;
1520 fputs($f,"\t".(isset($opcodes[$i]["op"])?'"'.$opcodes[$i]["op"].'"':"NULL").",\n");
[all …]
H A Dzend_compile.h351 zend_op *opcodes; member
520 ((char*)&(op_array)->opcodes[opline_num] - (char*)(opline))
526 (ZEND_OFFSET_TO_OPLINE(base, offset) - op_array->opcodes)
536 (node).jmp_addr = (op_array)->opcodes + (node).opline_num; \
541 (node).opline_num = (node).jmp_addr - (op_array)->opcodes; \
H A Dzend_generators.c39 if (execute_data->opline != execute_data->func->op_array.opcodes) { in zend_generator_cleanup_unfinished_execution()
41 uint32_t op_num = execute_data->opline - execute_data->func->op_array.opcodes - 1; in zend_generator_cleanup_unfinished_execution()
134 op_num = ex->opline - ex->func->op_array.opcodes - 1; in zend_generator_dtor_storage()
159 fast_call = ZEND_CALL_VAR(ex, ex->func->op_array.opcodes[finally_op_end].op1.var); in zend_generator_dtor_storage()
164 ex->opline = &ex->func->op_array.opcodes[finally_op_num]; in zend_generator_dtor_storage()
H A Dzend_compile.c655 while (opline >= CG(active_op_array)->opcodes) { in zend_do_free()
978 old_function->op_array.opcodes[0].lineno); in do_bind_function()
2875 opline = &CG(active_op_array)->opcodes[opnum_init]; in zend_compile_call_common()
3421 opline = &CG(active_op_array)->opcodes[dcl_opnum]; in zend_compile_new()
3447 opline = &CG(active_op_array)->opcodes[opnum]; in zend_compile_new()
3742 uint32_t opnum = opline - op_array->opcodes; in zend_resolve_goto_label()
3994 opline = &CG(active_op_array)->opcodes[opnum_fetch]; in zend_compile_foreach()
4005 opline = &CG(active_op_array)->opcodes[opnum_reset]; in zend_compile_foreach()
4008 opline = &CG(active_op_array)->opcodes[opnum_fetch]; in zend_compile_foreach()
6299 opline = &CG(active_op_array)->opcodes[opnum]; in zend_compile_coalesce()
[all …]
/PHP-7.0/sapi/phpdbg/
H A Dphpdbg_opcode.c89 spprintf(&decode[1], 0, "J%td", OP_JMP_ADDR(op, op->op1) - ops->opcodes); in phpdbg_decode_opline()
108 OP_JMP_ADDR(op, op->op2) - ops->opcodes, in phpdbg_decode_opline()
109 ZEND_OFFSET_TO_OPLINE(op, op->extended_value) - ops->opcodes); in phpdbg_decode_opline()
118 spprintf(&decode[2], 0, "J%td", OP_JMP_ADDR(op, op->op2) - ops->opcodes); in phpdbg_decode_opline()
207 cur->opcodes = op_array->opcodes; in phpdbg_print_opline_ex()
H A Dphpdbg_opcode.h36 zend_op *opcodes; member
H A Dphpdbg_prompt.c548 zend_string *source_path = strpprintf(0, "-%c%p", 0, PHPDBG_G(ops)->opcodes); in phpdbg_compile_stdin()
664 const zend_op *opline = op_array->opcodes; in phpdbg_skip_line_helper()
679 } while (++opline < op_array->opcodes + op_array->last); in phpdbg_skip_line_helper()
709 const zend_op *opline = op_array->opcodes; in phpdbg_seek_to_end()
722 } while (++opline < op_array->opcodes + op_array->last); in phpdbg_seek_to_end()
1877 … (op #%lu) in %s:%u", data->opline, (data->opline - data->func->op_array.opcodes) / sizeof(data->o… in phpdbg_force_interruption()
H A Dphpdbg_utils.c753 op_num = op - op_array->opcodes; in phpdbg_check_caught_ex()
764 cur = &op_array->opcodes[catch]; in phpdbg_check_caught_ex()
/PHP-7.0/Zend/tests/
H A Dbug73338.phpt2 Bug #73338: Ensure exceptions in function init opcodes are cleaned properly
/PHP-7.0/ext/opcache/
H A Dzend_file_cache.c371 if (op_array->scope && !IS_SERIALIZED(op_array->opcodes)) { in zend_file_cache_serialize_op_array()
375 SERIALIZE_PTR(op_array->opcodes); in zend_file_cache_serialize_op_array()
387 zend_shared_alloc_register_xlat_entry(op_array->opcodes, op_array->opcodes); in zend_file_cache_serialize_op_array()
403 if (!IS_SERIALIZED(op_array->opcodes)) { in zend_file_cache_serialize_op_array()
407 SERIALIZE_PTR(op_array->opcodes); in zend_file_cache_serialize_op_array()
408 opline = op_array->opcodes; in zend_file_cache_serialize_op_array()
452 SERIALIZE_PTR(op_array->opcodes); in zend_file_cache_serialize_op_array()
953 UNSERIALIZE_PTR(op_array->opcodes); in zend_file_cache_unserialize_op_array()
978 if (!IS_UNSERIALIZED(op_array->opcodes)) { in zend_file_cache_unserialize_op_array()
981 UNSERIALIZE_PTR(op_array->opcodes); in zend_file_cache_unserialize_op_array()
[all …]
H A Dzend_persist.c497 if (zend_shared_alloc_get_xlat_entry(op_array->opcodes)) { in zend_persist_op_array_ex()
520 persist_ptr = zend_shared_alloc_get_xlat_entry(op_array->opcodes); in zend_persist_op_array_ex()
522 op_array->opcodes = persist_ptr; in zend_persist_op_array_ex()
524 zend_op *new_opcodes = zend_accel_memdup(op_array->opcodes, sizeof(zend_op) * op_array->last); in zend_persist_op_array_ex()
547 ZEND_OP1(opline).jmp_addr = &new_opcodes[ZEND_OP1(opline).jmp_addr - op_array->opcodes]; in zend_persist_op_array_ex()
562 ZEND_OP2(opline).jmp_addr = &new_opcodes[ZEND_OP2(opline).jmp_addr - op_array->opcodes]; in zend_persist_op_array_ex()
574 efree(op_array->opcodes); in zend_persist_op_array_ex()
575 op_array->opcodes = new_opcodes; in zend_persist_op_array_ex()
H A Dzend_persist_calc.c176 if (zend_shared_alloc_get_xlat_entry(op_array->opcodes)) { in zend_persist_op_array_calc_ex()
197 ADD_DUP_SIZE(op_array->opcodes, sizeof(zend_op) * op_array->last); in zend_persist_op_array_calc_ex()
H A Dzend_accelerator_util_funcs.c555 CG(zend_lineno) = function1->op_array.opcodes[0].lineno; in zend_accel_function_hash_copy()
561 (int)function2->op_array.opcodes[0].lineno); in zend_accel_function_hash_copy()
599 CG(zend_lineno) = function1->op_array.opcodes[0].lineno; in zend_accel_function_hash_copy_from_shm()
605 (int)function2->op_array.opcodes[0].lineno); in zend_accel_function_hash_copy_from_shm()
H A DREADME154 The OPcache stores the places where DECLARE_CLASS opcodes use
155 inheritance (These are the only opcodes that can be executed by PHP,
/PHP-7.0/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 126 milliseconds

12