Searched refs:opline (Results 1 - 25 of 41) sorted by relevance

12

/PHP_TRUNK/ext/opcache/Optimizer/
H A Doptimize_func_calls.c32 #define ZEND_OP2_IS_CONST_STRING(opline) \
33 (ZEND_OP2_TYPE(opline) == IS_CONST && \
34 Z_TYPE(op_array->literals[(opline)->op2.constant]) == IS_STRING)
38 zend_op *opline; member in struct:_optimizer_call_info
43 zend_op *opline = op_array->opcodes; local
44 zend_op *end = opline + op_array->last;
55 while (opline < end) {
56 switch (opline->opcode) {
59 if (ZEND_OP2_IS_CONST_STRING(opline)) {
61 zval *function_name = &op_array->literals[opline
[all...]
H A Dpass2.c38 zend_op *opline; local
41 opline = op_array->opcodes;
42 while (opline < end) {
43 switch (opline->opcode) {
48 if (ZEND_OP1_TYPE(opline) == IS_CONST) {
49 if (Z_TYPE(ZEND_OP1_LITERAL(opline)) == IS_STRING) {
50 convert_scalar_to_number(&ZEND_OP1_LITERAL(opline));
58 if (opline->extended_value != 0) {
62 if (ZEND_OP2_TYPE(opline) == IS_CONST) {
63 if (Z_TYPE(ZEND_OP2_LITERAL(opline))
[all...]
H A Dpass3.c58 zend_op *opline; local
67 opline = op_array->opcodes;
69 while (opline < end) {
72 switch (opline->opcode) {
86 zend_op *next_opline = opline + 1;
96 if ((ZEND_OP2_TYPE(opline) == IS_VAR || ZEND_OP2_TYPE(opline) == IS_CV)
97 && ZEND_OP2(opline).var == ZEND_OP1(next_opline).var &&
98 (opline->opcode == ZEND_ADD ||
99 opline
[all...]
H A Dnop_removal.c36 zend_op *end, *opline; local
45 for (opline = op_array->opcodes; opline < end; opline++) {
48 if (opline->opcode == ZEND_JMP && ZEND_OP1(opline).opline_num > i) {
50 zend_op *target = op_array->opcodes + ZEND_OP1(opline).opline_num - 1;
55 if (target == opline) {
57 opline->opcode = ZEND_NOP;
62 if (opline
[all...]
H A Dpass1_5.c43 zend_op *opline = op_array->opcodes; local
44 zend_op *end = opline + op_array->last;
47 while (opline < end) {
48 switch (opline->opcode) {
69 if (ZEND_OP1_TYPE(opline) == IS_CONST &&
70 ZEND_OP2_TYPE(opline) == IS_CONST) {
72 binary_op_type binary_op = get_binary_op(opline->opcode);
73 uint32_t tv = ZEND_RESULT(opline).var; /* temporary variable */
77 if ((opline->opcode == ZEND_DIV || opline
[all...]
H A Dzend_optimizer.c79 zend_op *opline = op_array->opcodes; local
80 zend_op *end = opline + op_array->last;
81 while (opline < end) {
82 if (opline->op1_type & (IS_TMP_VAR|IS_VAR)) {
83 opline->op1.var += sizeof(zval);
85 if (opline->op2_type & (IS_TMP_VAR|IS_VAR)) {
86 opline->op2.var += sizeof(zval);
88 if (opline->result_type & (IS_TMP_VAR|IS_VAR)) {
89 opline->result.var += sizeof(zval);
91 if (opline
120 zend_optimizer_update_op1_const(zend_op_array *op_array, zend_op *opline, zval *val) argument
159 zend_optimizer_update_op2_const(zend_op_array *op_array, zend_op *opline, zval *val) argument
295 zend_optimizer_replace_by_const(zend_op_array *op_array, zend_op *opline, zend_uchar type, uint32_t var, zval *val) argument
497 zend_op *opline, *end; local
589 zend_op *opline, *end; local
[all...]
H A Dzend_optimizer_internal.h37 #define MAKE_NOP(opline) do { \
38 (opline)->op1.num = 0; \
39 (opline)->op2.num = 0; \
40 (opline)->result.num = 0; \
41 (opline)->opcode = ZEND_NOP; \
42 (opline)->op1_type = IS_UNUSED; \
43 (opline)->op2_type = IS_UNUSED; \
44 (opline)->result_type = IS_UNUSED; \
45 zend_vm_set_opcode_handler(opline); \
122 zend_op *opline,
[all...]
H A Doptimize_temp_vars_5.c48 zend_op **start_of_T; /* opline where T is first used */
51 zend_op *opline, *end; local
65 opline = &op_array->opcodes[op_array->last - 1];
68 while (opline >= end) {
69 if (ZEND_RESULT_TYPE(opline) & (IS_VAR | IS_TMP_VAR)) {
70 start_of_T[VAR_NUM(ZEND_RESULT(opline).var) - offset] = opline;
72 opline--;
79 opline = &op_array->opcodes[op_array->last - 1];
81 while (opline >
[all...]
H A Dblock_pass.c115 zend_op *opline; local
122 opline = op_array->opcodes;
123 blocks[0].start_opline = opline;
125 while (opline < end) {
126 switch((unsigned)opline->opcode) {
128 START_BLOCK_OP(ZEND_OP1(opline).opline_num);
129 if (opline->extended_value) {
130 START_BLOCK_OP(ZEND_OP2(opline).opline_num);
135 if (opline->extended_value) {
136 START_BLOCK_OP(ZEND_OP2(opline)
566 zend_op *opline = block->start_opline; local
611 zend_op *opline = block->start_opline; local
1145 zend_op *opline = new_opcodes; local
1809 zend_op *opline = next_block->start_opline; local
1852 zend_op *opline = block->start_opline + block->len - 1; local
[all...]
H A Dcompact_literals.c119 zend_op *opline, *end; local
135 opline = op_array->opcodes;
136 end = opline + op_array->last;
137 while (opline < end) {
138 switch (opline->opcode) {
140 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 1);
143 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 2);
146 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 3);
149 if (ZEND_OP2_TYPE(opline) == IS_CONST) {
152 opline
[all...]
/PHP_TRUNK/Zend/
H A Dzend_vm.h32 #define ZEND_VM_SET_OPCODE_HANDLER(opline) zend_vm_set_opcode_handler(opline)
H A Dzend_compile.c613 zend_op *opline = get_next_op(CG(active_op_array)); local
615 opline->opcode = ZEND_FREE;
616 SET_NODE(opline->op1, op1);
617 SET_UNUSED(opline->op2);
619 zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1]; local
621 while (opline->opcode == ZEND_END_SILENCE || opline->opcode == ZEND_EXT_FCALL_END || opline->opcode == ZEND_OP_DATA) {
622 opline--;
624 if (opline
936 do_bind_function(const zend_op_array *op_array, const zend_op *opline, HashTable *function_table, zend_bool compile_time) argument
977 do_bind_class(const zend_op_array* op_array, const zend_op *opline, HashTable *class_table, zend_bool compile_time) argument
1014 do_bind_inherited_class(const zend_op_array *op_array, const zend_op *opline, HashTable *class_table, zend_class_entry *parent_ce, zend_bool compile_time) argument
1059 zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1]; local
1454 zend_op *opline; local
1470 zend_op *opline; local
1486 zend_op *opline; local
1814 zend_adjust_for_fetch_type(zend_op *opline, uint32_t type) argument
1841 zend_make_var_result(znode *result, zend_op *opline) argument
1849 zend_make_tmp_result(znode *result, zend_op *opline) argument
1859 zend_op *opline = get_next_op(CG(active_op_array)); local
1883 zend_op *opline = get_next_op(CG(active_op_array)); local
1908 zend_op *opline; local
1933 zend_op *opline = zend_emit_op(NULL, ZEND_JMP, NULL, NULL); local
1942 zend_op *opline = zend_emit_op(NULL, opcode, cond, NULL); local
1950 zend_op *opline = &CG(active_op_array)->opcodes[opnum_jump]; local
2005 zend_op *opline = NULL, *oplines = zend_stack_base(&CG(delayed_oplines_stack)); local
2021 zend_op *opline = zend_emit_op(NULL, ZEND_VERIFY_RETURN_TYPE, expr, NULL); local
2114 zend_set_class_name_op1(zend_op *opline, znode *class_node) argument
2128 zend_op *opline; local
2189 zend_op *opline; local
2224 zend_op *opline = zend_compile_simple_var_no_cv(result, ast, type, delayed); local
2234 zend_op *opline = zend_emit_op(NULL, ZEND_SEPARATE, node, NULL); local
2299 zend_op *opline = zend_compile_dim_common(result, ast, type); local
2321 zend_op *opline; local
2351 zend_op *opline = zend_compile_prop_common(result, ast, type); local
2362 zend_op *opline; local
2396 zend_op *opline = zend_compile_static_prop_common(result, ast, type, delayed); local
2522 zend_op *opline; local
2585 zend_op *opline; local
2625 zend_op *opline; local
2677 zend_op *opline; local
2800 zend_op *opline; local
2839 zend_op *opline = get_next_op(CG(active_op_array)); local
2853 zend_op *opline = get_next_op(CG(active_op_array)); local
2921 zend_op *opline; local
2937 zend_op *opline; local
2969 zend_op *opline; local
3000 zend_op *opline; local
3047 zend_op *opline; local
3097 zend_op *opline; local
3214 zend_op *opline; local
3254 zend_op *opline; local
3295 zend_op *opline; local
3349 zend_op *opline; local
3414 zend_op *opline = zend_emit_op(NULL, ZEND_BIND_GLOBAL, &result, &name_node); local
3430 zend_op *opline; local
3483 zend_op *opline; local
3525 zend_op *opline = get_next_op(CG(active_op_array)); local
3542 zend_op *opline; local
3571 zend_op *opline; local
3633 zend_op *opline; local
3672 zend_resolve_goto_label(zend_op_array *op_array, zend_op *opline) argument
3737 zend_op *opline; local
3882 zend_op *opline; local
4003 zend_op *opline; local
4087 zend_op *opline; local
4438 zend_op *opline; local
4781 zend_op *opline; local
5079 zend_op *opline; local
5137 zend_op *opline; local
5176 zend_op *opline; local
6080 zend_op *opline = zend_compile_prop_common(NULL, var_ast, BP_VAR_RW); local
6100 zend_op *opline = zend_compile_prop_common(result, var_ast, BP_VAR_RW); local
6115 zend_op *opline; local
6191 zend_op *opline; local
6247 zend_op *opline; local
6292 zend_op *opline; local
6324 zend_op *opline; local
6341 zend_op *opline = NULL; local
6439 zend_op *opline; local
6503 zend_op *opline; local
6557 zend_op *opline; local
6562 zend_op *opline = zend_emit_op_tmp(result, ZEND_FETCH_CLASS_NAME, NULL, NULL); local
6622 zend_op *opline = zend_emit_op_tmp(result, ZEND_FETCH_CLASS_NAME, NULL, NULL); local
6629 zend_op *opline = zend_emit_op_tmp(result, ZEND_FETCH_CLASS_NAME, NULL, NULL); local
6644 zend_op *opline = get_next_op(CG(active_op_array)); local
6666 zend_op *opline = NULL, *init_opline; local
6775 zend_op *opline; local
7254 zend_op *opline; local
[all...]
H A Dzend_compile.h38 #define MAKE_NOP(opline) do { \
39 (opline)->op1.num = 0; \
40 (opline)->op2.num = 0; \
41 (opline)->result.num = 0; \
42 (opline)->opcode = ZEND_NOP; \
43 (opline)->op1_type = IS_UNUSED; \
44 (opline)->op2_type = IS_UNUSED; \
45 (opline)->result_type = IS_UNUSED; \
430 const zend_op *opline; /* executed opline */ member in struct:_zend_execute_data
[all...]
H A Dzend_opcode.c458 zend_op *opline = op_array->opcodes, *end=opline+op_array->last; local
460 while (opline<end) {
461 if (opline->opcode == ZEND_EXT_STMT) {
462 if (opline+1<end) {
463 if ((opline+1)->opcode == ZEND_EXT_STMT) {
464 opline->opcode = ZEND_NOP;
465 opline++;
468 if (opline+1<end) {
469 opline
559 zend_get_brk_cont_target(const zend_op_array *op_array, const zend_op *opline) argument
575 zend_op *opline, *end; local
[all...]
H A Dzend_vm_def.h38 result = EX_VAR(opline->result.var);
42 result = EX_VAR(opline->result.var);
48 result = EX_VAR(opline->result.var);
52 result = EX_VAR(opline->result.var);
65 add_function(EX_VAR(opline->result.var), op1, op2);
81 result = EX_VAR(opline->result.var);
85 result = EX_VAR(opline->result.var);
91 result = EX_VAR(opline->result.var);
95 result = EX_VAR(opline->result.var);
108 sub_function(EX_VAR(opline
2449 ZEND_VM_JMP(opline); variable
2483 ZEND_VM_JMP(opline); variable
2520 ZEND_VM_JMP(opline); variable
2563 ZEND_VM_JMP(opline); variable
2603 ZEND_VM_JMP(opline); variable
[all...]
H A Dzend_vm_execute.h318 register const zend_op* volatile opline __asm__(ZEND_VM_IP_GLOBAL_REG);
337 # define ZEND_VM_RETURN() opline = NULL; ZEND_VM_CONTINUE()
355 # define OPLINE opline
357 # define LOAD_OPLINE() opline = EX(opline)
358 # define LOAD_NEXT_OPLINE() opline = EX(opline) + 1
359 # define SAVE_OPLINE() EX(opline) = opline
361 # define OPLINE EX(opline)
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_bp.h80 * Breakpoint opline num based representation
88 zend_ulong opline; member in struct:_phpdbg_breakopline_t
92 * Breakpoint opline based representation
96 zend_ulong opline; member in struct:_phpdbg_breakline_t
132 PHPDBG_API void phpdbg_set_breakpoint_opline(zend_ulong opline);
133 PHPDBG_API void phpdbg_set_breakpoint_opline_ex(phpdbg_opline_ptr_t opline);
134 PHPDBG_API void phpdbg_set_breakpoint_method_opline(const char *class, const char *method, zend_ulong opline);
135 PHPDBG_API void phpdbg_set_breakpoint_function_opline(const char *function, zend_ulong opline);
136 PHPDBG_API void phpdbg_set_breakpoint_file_opline(const char *file, zend_ulong opline);
H A Dphpdbg_print.h32 PHPDBG_PRINT(opline); variable
H A Dphpdbg_print.c34 PHPDBG_PRINT_COMMAND_D(opline, "print out the instruction in the current opline", 'o', print_opline, NULL, 0, PHPDBG_ASYNC_SAFE),
42 PHPDBG_PRINT(opline) /* {{{ */
60 zend_op *opline = &(op_array->opcodes[0]); local
65 phpdbg_writeln("printoplineinfo", "type=\"User\" startline=\"%d\" endline=\"%d\" method=\"%s::%s\" file=\"%s\" opline=\"%p\"", "L%d-%d %s::%s() %s - %p + %d ops",
71 opline,
74 phpdbg_writeln("printoplineinfo", "type=\"User\" startline=\"%d\" endline=\"%d\" function=\"%s\" file=\"%s\" opline=\"%p\"", "L%d-%d %s() %s - %p + %d ops",
79 opline,
84 char *decode = phpdbg_decode_opline(op_array, opline);
86 opline
[all...]
H A Dphpdbg_opcode.c180 zend_op *opline = (zend_op *) execute_data->opline; local
181 char *decode = phpdbg_decode_opline(&execute_data->func->op_array, opline);
185 phpdbg_notice("opline", "line=\"%u\" opline=\"%p\" op=\"%s\" file=\"%s\"", "L%-5u %16p %s %s",
186 opline->lineno,
187 opline,
194 opline->lineno,
195 opline, local
206 cur->op = (zend_op *) execute_data->opline;
[all...]
H A Dphpdbg_bp.c455 PHPDBG_API void phpdbg_set_breakpoint_opline(zend_ulong opline) /* {{{ */ argument
457 if (!zend_hash_index_exists(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], opline)) {
464 new_break.opline = opline;
467 zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], opline, &new_break, sizeof(phpdbg_breakline_t));
469 phpdbg_notice("breakpoint", "add=\"success\" id=\"%d\" opline=\"%#lx\"", "Breakpoint #%d added at %#lx", new_break.id, new_break.opline);
472 phpdbg_error("breakpoint", "type=\"exists\" add=\"fail\" opline=\"%#lx\"", "Breakpoint exists at %#lx", opline);
481 phpdbg_error("breakpoint", "type=\"maxoplines\" add=\"fail\" maxoplinenum=\"%d\" function=\"%s\" usedoplinenum=\"%ld\"", "There are only %d oplines in function %s (breaking at opline
613 phpdbg_set_breakpoint_method_opline(const char *class, const char *method, zend_ulong opline) argument
666 phpdbg_set_breakpoint_function_opline(const char *function, zend_ulong opline) argument
712 phpdbg_set_breakpoint_file_opline(const char *file, zend_ulong opline) argument
780 phpdbg_set_breakpoint_opline_ex(phpdbg_opline_ptr_t opline) argument
958 phpdbg_find_breakpoint_opline(phpdbg_opline_ptr_t opline) argument
[all...]
H A Dphpdbg_prompt.c524 const zend_op *opline = EG(current_execute_data)->opline; local
527 while (++opline < op_array->opcodes + op_array->last) {
528 if (opline->lineno != EG(current_execute_data)->opline->lineno
529 || opline->opcode == ZEND_RETURN
530 || opline->opcode == ZEND_FAST_RET
531 || opline->opcode == ZEND_GENERATOR_RETURN
532 || opline->opcode == ZEND_EXIT
533 || opline
568 const zend_op *opline = EG(current_execute_data)->opline; local
[all...]
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_php_trace.c162 if (0 > fpm_trace_get_long(prev + offsetof(zend_execute_data, opline), &l)) {
167 long opline = l; local
170 if (0 > fpm_trace_get_long(opline + offsetof(struct _zend_op, lineno), &l)) {
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.h334 # define ZEND_RESULT_TYPE(opline) (opline)->result_type
335 # define ZEND_RESULT(opline) (opline)->result
336 # define ZEND_OP1_TYPE(opline) (opline)->op1_type
337 # define ZEND_OP1(opline) (opline)->op1
338 # define ZEND_OP1_CONST(opline) (*(opline)
[all...]
H A Dzend_file_cache.c371 zend_op *opline, *end; local
374 opline = op_array->opcodes;
375 UNSERIALIZE_PTR(opline);
376 end = opline + op_array->last;
377 while (opline < end) {
379 if (ZEND_OP1_TYPE(opline) == IS_CONST) {
380 SERIALIZE_PTR(opline->op1.zv);
382 if (ZEND_OP2_TYPE(opline) == IS_CONST) {
383 SERIALIZE_PTR(opline->op2.zv);
387 switch (opline
923 zend_op *opline, *end; local
[all...]

Completed in 104 milliseconds

12