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

12

/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_php_trace.c109 if (0 > fpm_trace_get_long(execute_data + offsetof(zend_execute_data, opline), &l)) {
114 long opline = l;
117 if (0 > fpm_trace_get_long(opline + offsetof(struct _zend_op, lineno), &l)) {
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dcompact_literals.c119 zend_op *opline, *end; local
134 opline = op_array->opcodes;
135 end = opline + op_array->last;
136 while (opline < end) {
137 switch (opline->opcode) {
139 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 1);
142 if (ZEND_OP2_TYPE(opline) == IS_CONST) {
143 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 2);
147 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 3);
150 if (ZEND_OP2_TYPE(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_GOTO &&
49 Z_TYPE(ZEND_OP2_LITERAL(opline)) != IS_LONG) {
56 if (opline->opcode == ZEND_JMP && ZEND_OP1(opline).opline_num > i) {
58 zend_op *target = op_array->opcodes + ZEND_OP1(opline).opline_num - 1;
63 if (target == opline) {
[all...]
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 Doptimize_temp_vars_5.c46 zend_op **start_of_T; /* opline where T is first used */
49 zend_op *opline, *end; local
62 opline = &op_array->opcodes[op_array->last - 1];
65 while (opline >= end) {
66 if (ZEND_RESULT_TYPE(opline) & (IS_VAR | IS_TMP_VAR)) {
67 start_of_T[VAR_NUM(ZEND_RESULT(opline).var) - offset] = opline;
70 if (opline->opcode == ZEND_OP_DATA &&
71 (opline-1)->opcode == ZEND_FE_FETCH &&
72 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) {
68 if (ZEND_OP1_TYPE(opline) == IS_CONST &&
69 ZEND_OP2_TYPE(opline) == IS_CONST) {
71 int (*binary_op)(zval *result, zval *op1, zval *op2) = get_binary_op(opline->opcode);
72 uint32_t tv = ZEND_RESULT(opline).var; /* temporary variable */
76 if (opline->opcode == ZEND_DIV &&
77 Z_TYPE(ZEND_OP2_LITERAL(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 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
114 zend_optimizer_update_op1_const(zend_op_array *op_array, zend_op *opline, zval *val) argument
148 zend_optimizer_update_op2_const(zend_op_array *op_array, zend_op *opline, zval *val) argument
267 zend_optimizer_replace_by_const(zend_op_array *op_array, zend_op *opline, zend_uchar type, uint32_t var, zval *val) argument
424 zend_op *opline, *end; local
504 zend_op *opline, *end; local
[all...]
H A Dblock_pass.c114 zend_op *opline; local
121 opline = op_array->opcodes;
122 blocks[0].start_opline = opline;
124 while (opline < end) {
125 switch((unsigned)opline->opcode) {
134 START_BLOCK_OP(ZEND_OP1(opline).opline_num);
135 if (opline->extended_value) {
136 START_BLOCK_OP(ZEND_OP2(opline).opline_num);
141 if (opline->extended_value) {
142 START_BLOCK_OP(ZEND_OP2(opline)
545 zend_op *opline = block->start_opline; local
590 zend_op *opline = block->start_opline; local
1113 zend_op *opline = new_opcodes; local
1753 zend_op *opline = next_block->start_opline; local
1792 zend_op *opline = block->start_opline + block->len - 1; local
[all...]
H A Dzend_optimizer_internal.h37 #define MAKE_NOP(opline) do { \
38 (opline)->opcode = ZEND_NOP; \
39 memset(&(opline)->result, 0, sizeof((opline)->result)); \
40 memset(&(opline)->op1, 0, sizeof((opline)->op1)); \
41 memset(&(opline)->op2, 0, sizeof((opline)->op2)); \
42 (opline)->result_type = (opline)
[all...]
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.h322 # define ZEND_RESULT_TYPE(opline) (opline)->result_type
323 # define ZEND_RESULT(opline) (opline)->result
324 # define ZEND_OP1_TYPE(opline) (opline)->op1_type
325 # define ZEND_OP1(opline) (opline)->op1
326 # define ZEND_OP1_CONST(opline) (*(opline)
[all...]
H A Dzend_persist.c349 zend_op *opline = new_opcodes; local
353 for (; opline < end ; opline++, offset++) {
355 if (ZEND_OP1_TYPE(opline) == IS_CONST) {
356 opline->op1.zv = (zval*)((char*)opline->op1.zv + ((char*)op_array->literals - (char*)orig_literals));
358 if (ZEND_OP2_TYPE(opline) == IS_CONST) {
359 opline->op2.zv = (zval*)((char*)opline->op2.zv + ((char*)op_array->literals - (char*)orig_literals));
365 switch (opline
[all...]
/PHP_TRUNK/Zend/
H A Dzend_vm.h31 #define ZEND_VM_SET_OPCODE_HANDLER(opline) zend_vm_set_opcode_handler(opline)
H A Dzend_compile.c473 zend_op *opline = get_next_op(CG(active_op_array)); local
475 opline->opcode = ZEND_FREE;
476 SET_NODE(opline->op1, op1);
477 SET_UNUSED(opline->op2);
479 zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1]; local
481 while (opline->opcode == ZEND_END_SILENCE || opline->opcode == ZEND_EXT_FCALL_END || opline->opcode == ZEND_OP_DATA) {
482 opline--;
484 if (opline
749 zend_resolve_goto_label(zend_op_array *op_array, zend_op *opline, int pass2) argument
830 zend_op *opline = get_next_op(CG(active_op_array)); local
882 do_bind_function(const zend_op_array *op_array, const zend_op *opline, HashTable *function_table, zend_bool compile_time) argument
921 do_bind_class(const zend_op_array* op_array, const zend_op *opline, HashTable *class_table, zend_bool compile_time) argument
958 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
1005 zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1]; local
1233 zend_op *opline; local
1249 zend_op *opline; local
1265 zend_op *opline; local
1636 zend_adjust_for_fetch_type(zend_op *opline, uint32_t type) argument
1663 zend_make_var_result(znode *result, zend_op *opline) argument
1671 zend_make_tmp_result(znode *result, zend_op *opline) argument
1681 zend_op *opline = get_next_op(CG(active_op_array)); local
1705 zend_op *opline = get_next_op(CG(active_op_array)); local
1730 zend_op *opline = get_next_op(CG(active_op_array)); local
1748 zend_op *opline = zend_emit_op(NULL, ZEND_JMP, NULL, NULL); local
1757 zend_op *opline = zend_emit_op(NULL, opcode, cond, NULL); local
1765 zend_op *opline = &CG(active_op_array)->opcodes[opnum_jump]; local
1811 zend_op *opline = NULL, *oplines = zend_stack_base(&CG(delayed_oplines_stack)); local
1918 zend_set_class_name_op1(zend_op *opline, znode *class_node) argument
1932 zend_op *opline; local
1991 zend_op *opline; local
2022 zend_op *opline = zend_compile_simple_var_no_cv(result, ast, type); local
2032 zend_op *opline = zend_emit_op(NULL, ZEND_SEPARATE, node, NULL); local
2097 zend_op *opline = zend_compile_dim_common(result, ast, type); local
2119 zend_op *opline; local
2149 zend_op *opline = zend_compile_prop_common(result, ast, type); local
2160 zend_op *opline; local
2190 zend_op *opline = zend_compile_static_prop_common(result, ast, type); local
2272 zend_op *opline; local
2329 zend_op *opline; local
2369 zend_op *opline; local
2421 zend_op *opline; local
2518 zend_op *opline; local
2557 zend_op *opline = get_next_op(CG(active_op_array)); local
2571 zend_op *opline = get_next_op(CG(active_op_array)); local
2618 zend_op *opline; local
2634 zend_op *opline; local
2666 zend_op *opline; local
2696 zend_op *opline; local
2743 zend_op *opline; local
2834 zend_op *opline; local
2873 zend_op *opline; local
2914 zend_op *opline; local
2966 zend_op *opline; local
3020 zend_op *opline = zend_emit_op(NULL, ZEND_BIND_GLOBAL, &result, &name_node); local
3036 zend_op *opline; local
3084 zend_op *opline; local
3135 zend_op *opline; local
3200 zend_op *opline; local
3231 zend_op *opline; local
3236 zend_resolve_goto_label(CG(active_op_array), opline, 0); local
3372 zend_op *opline; local
3509 zend_op *opline; local
3597 zend_op *opline; local
3852 zend_op *opline; local
4164 zend_op *opline; local
4454 zend_op *opline; local
4512 zend_op *opline; local
4538 zend_op *opline; local
5324 zend_op *opline = zend_compile_prop_common(NULL, var_ast, BP_VAR_RW); local
5342 zend_op *opline = zend_compile_prop_common(result, var_ast, BP_VAR_RW); local
5357 zend_op *opline; local
5435 zend_op *opline; local
5491 zend_op *opline; local
5544 zend_op *opline; local
5576 zend_op *opline; local
5593 zend_op *opline = NULL; local
5691 zend_op *opline; local
5755 zend_op *opline; local
5795 zend_op *opline, *class_op = NULL; local
5901 zend_op *opline; local
6448 zend_op *opline; local
[all...]
H A Dzend_compile.h38 #define MAKE_NOP(opline) do { \
39 opline->opcode = ZEND_NOP; \
40 memset(&opline->result, 0, sizeof(opline->result)); \
41 memset(&opline->op1, 0, sizeof(opline->op1)); \
42 memset(&opline->op2, 0, sizeof(opline->op2)); \
43 opline->result_type = opline
407 const zend_op *opline; /* executed opline */ member in struct:_zend_execute_data
[all...]
H A Dzend_opcode.c431 zend_op *opline = op_array->opcodes, *end=opline+op_array->last; local
433 while (opline<end) {
434 if (opline->opcode == ZEND_EXT_STMT) {
435 if (opline+1<end) {
436 if ((opline+1)->opcode == ZEND_EXT_STMT) {
437 opline->opcode = ZEND_NOP;
438 opline++;
441 if (opline+1<end) {
442 opline
530 zend_op *opline; local
647 zend_op *opline; local
701 zend_op *opline, *end; local
[all...]
H A Dzend_vm_def.h34 fast_add_function(EX_VAR(opline->result.var),
49 fast_sub_function(EX_VAR(opline->result.var),
64 fast_mul_function(EX_VAR(opline->result.var),
79 fast_div_function(EX_VAR(opline->result.var),
94 fast_mod_function(EX_VAR(opline->result.var),
109 shift_left_function(EX_VAR(opline->result.var),
124 shift_right_function(EX_VAR(opline->result.var),
139 concat_function(EX_VAR(opline->result.var),
154 fast_is_identical_function(EX_VAR(opline->result.var),
167 zval *result = EX_VAR(opline
1885 const zend_op *opline = EX(opline); local
1985 ZEND_VM_JMP(opline); variable
2018 ZEND_VM_JMP(opline); variable
2051 ZEND_VM_JMP(opline); variable
2090 ZEND_VM_JMP(opline); variable
2128 ZEND_VM_JMP(opline); variable
5731 zend_op *opline = EX(func)->op_array.opcodes + op_num; variable
[all...]
H A Dzend_vm_execute.h317 #define OPLINE EX(opline)
319 #define USE_OPLINE const zend_op *opline = EX(opline);
332 #define ZEND_VM_DISPATCH(opcode, opline) return zend_vm_get_opcode_handler(opcode, opline)(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
406 if (UNEXPECTED(EG(exception) != NULL) && (EX(opline)->op1.num & ZEND_CALL_CTOR)) {
407 if (!(EX(opline)->op1.num & ZEND_CALL_CTOR_RESULT_UNUSED)) {
419 const zend_op *opline = EX(opline); local
421 if (RETURN_VALUE_USED(opline)) {
1238 zend_op *opline = EX(func)->op_array.opcodes + op_num; local
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_bp.c418 PHPDBG_API void phpdbg_set_breakpoint_opline(zend_ulong opline) /* {{{ */ argument
420 if (!zend_hash_index_exists(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], opline)) {
427 new_break.opline = opline;
430 zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], opline, &new_break, sizeof(phpdbg_breakline_t));
432 phpdbg_notice("breakpoint", "add=\"success\" id=\"%d\" opline=\"%#lx\"", "Breakpoint #%d added at %#lx", new_break.id, new_break.opline);
435 phpdbg_error("breakpoint", "type=\"exists\" add=\"fail\" opline=\"%#lx\"", "Breakpoint exists at %#lx", opline);
444 phpdbg_error("breakpoint", "type=\"maxoplines\" add=\"fail\" maxoplinenum=\"%d\" function=\"%s\" usedoplinenum=\"%ld\"", "There are only %d oplines in function %s (breaking at opline
574 phpdbg_set_breakpoint_method_opline(const char *class, const char *method, zend_ulong opline) argument
626 phpdbg_set_breakpoint_function_opline(const char *function, zend_ulong opline) argument
671 phpdbg_set_breakpoint_file_opline(const char *file, zend_ulong opline) argument
738 phpdbg_set_breakpoint_opline_ex(phpdbg_opline_ptr_t opline) argument
914 phpdbg_find_breakpoint_opline(phpdbg_opline_ptr_t opline) argument
[all...]
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_opcode.c144 zend_op *opline = (zend_op *) execute_data->opline; local
145 char *decode = phpdbg_decode_opline(&execute_data->func->op_array, opline, vars);
149 phpdbg_notice("opline", "line=\"%u\" opline=\"%p\" opcode=\"%s\" op=\"%s\" file=\"%s\"", "L%-5u %16p %-30s %s %s",
150 opline->lineno,
151 opline,
152 phpdbg_decode_opcode(opline->opcode),
159 opline->lineno,
160 opline, local
[all...]
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) /* {{{ */
61 zend_op *opline = &(op_array->opcodes[0]); local
82 char *decode = phpdbg_decode_opline(op_array, opline, &vars);
84 phpdbg_writeln("print", "line=\"%u\" opline=\"%p\" opcode=\"%s\" op=\"%s\"", "\t\tL%u\t%p %-30s %s",
85 opline->lineno,
86 opline,
87 phpdbg_decode_opcode(opline->opcode),
91 phpdbg_error("print", "type=\"decodefailure\" opline
[all...]
H A Dphpdbg_print.h32 PHPDBG_PRINT(opline); variable
H A Dphpdbg_prompt.c476 const zend_op *opline = EG(current_execute_data)->opline; local
479 while (++opline < op_array->opcodes + op_array->last) {
480 if (opline->lineno != EG(current_execute_data)->opline->lineno) {
481 zend_hash_index_update_ptr(&PHPDBG_G(seek), (zend_ulong) opline, (void *) opline);
491 const zend_op *opline = EG(current_execute_data)->opline; local
494 while (++opline < op_arra
[all...]

Completed in 66 milliseconds

12