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

/PHP_TRUNK/ext/opcache/Optimizer/
H A Dnop_removal.c7 zend_op *end, *opline; local
16 for (opline = op_array->opcodes; opline < end; opline++) {
20 if (opline->opcode == ZEND_GOTO &&
21 Z_TYPE(ZEND_OP2_LITERAL(opline)) != IS_LONG) {
29 if (opline->opcode == ZEND_JMP && ZEND_OP1(opline).opline_num > i) {
31 zend_op *target = op_array->opcodes + ZEND_OP1(opline).opline_num - 1;
36 if (target == opline) {
[all...]
H A Doptimize_temp_vars_5.c77 zend_op **start_of_T; /* opline where T is first used */
80 zend_op *opline, *end; local
92 opline = &op_array->opcodes[op_array->last - 1];
95 while (opline >= end) {
97 if (ZEND_RESULT_TYPE(opline) & (IS_VAR | IS_TMP_VAR | IS_CONST)) {
98 if (!(op_const_means_class[opline->opcode] & RESULT_IS_UNUSED)) {
99 start_of_T[VAR_NUM(ZEND_RESULT(opline).var)] = opline;
103 if (ZEND_RESULT_TYPE(opline) & (IS_VAR | IS_TMP_VAR)) {
104 start_of_T[VAR_NUM(ZEND_RESULT(opline)
[all...]
H A Dcompact_literals.c92 zend_op *opline, *end; local
107 opline = op_array->opcodes;
108 end = opline + op_array->last;
109 while (opline < end) {
110 switch (opline->opcode) {
112 LITERAL_INFO(opline->op1.constant, LITERAL_FUNC, 1, 1, 1);
115 if (ZEND_OP2_TYPE(opline) == IS_CONST) {
116 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 2);
120 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 3);
123 if (ZEND_OP2_TYPE(opline)
[all...]
H A Dpass2.c8 zend_op *opline; variable
11 opline = op_array->opcodes;
12 while (opline < end) {
13 switch (opline->opcode) {
18 if (ZEND_OP1_TYPE(opline) == IS_CONST) {
19 if (ZEND_OP1_LITERAL(opline).type == IS_STRING) {
20 convert_scalar_to_number(&ZEND_OP1_LITERAL(opline) TSRMLS_CC);
28 if (opline->extended_value != 0) {
32 if (ZEND_OP2_TYPE(opline) == IS_CONST) {
33 if (ZEND_OP2_LITERAL(opline)
120 ZEND_OP1_TYPE(opline) = IS_UNUSED; variable
125 MAKE_NOP(opline); variable
134 MAKE_NOP(opline); variable
161 ZEND_OP1_TYPE(opline) = IS_UNUSED; variable
207 MAKE_NOP(opline); variable
211 MAKE_NOP(opline); variable
[all...]
H A Dblock_pass.c85 zend_op *opline; local
92 opline = op_array->opcodes;
93 blocks[0].start_opline = opline;
95 while (opline < end) {
96 switch((unsigned)opline->opcode) {
109 START_BLOCK_OP(ZEND_OP1(opline).opline_num);
110 if (opline->extended_value) {
111 START_BLOCK_OP(ZEND_OP2(opline).opline_num);
116 if (opline->extended_value) {
117 START_BLOCK_OP(ZEND_OP2(opline)
563 zend_op *opline = block->start_opline; local
608 zend_op *opline = block->start_opline; local
1192 zend_op *opline = new_opcodes; local
1896 zend_op *opline = next_block->start_opline; local
1937 zend_op *opline = block->start_opline + block->len - 1; local
[all...]
H A Doptimize_func_calls.c8 zend_op *opline; member in struct:_optimizer_call_info
12 zend_op *opline = op_array->opcodes; local
13 zend_op *end = opline + op_array->last;
22 while (opline < end) {
23 switch (opline->opcode) {
26 if (ZEND_OP2_TYPE(opline) == IS_CONST) {
28 zval *function_name = &op_array->literals[opline->op2.constant + 1].constant;
39 call_stack[call].opline = opline;
51 if (call_stack[call].func && call_stack[call].opline) {
[all...]
H A Dpass1_5.c17 zend_op *opline = op_array->opcodes; variable
18 zend_op *end = opline + op_array->last;
21 while (opline < end) {
22 switch (opline->opcode) {
44 if (ZEND_OP1_TYPE(opline) == IS_CONST &&
45 ZEND_OP2_TYPE(opline) == IS_CONST) {
47 int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC) = get_binary_op(opline->opcode);
48 zend_uint tv = ZEND_RESULT(opline).var; /* temporary variable */
52 if (opline->opcode == ZEND_DIV &&
53 Z_TYPE(ZEND_OP2_LITERAL(opline))
71 MAKE_NOP(opline); variable
106 MAKE_NOP(opline); variable
140 MAKE_NOP(opline); variable
235 MAKE_NOP(opline); variable
256 MAKE_NOP(opline); variable
322 MAKE_NOP(opline); variable
382 MAKE_NOP(opline); variable
415 MAKE_NOP(opline); variable
430 MAKE_NOP(opline); variable
444 MAKE_NOP(opline); variable
457 MAKE_NOP(opline); variable
565 MAKE_NOP(opline); variable
571 MAKE_NOP(opline); variable
[all...]
H A Dpass3.c28 zend_op *opline; variable
37 opline = op_array->opcodes;
39 while (opline < end) {
42 switch (opline->opcode) {
58 zend_op *next_opline = opline + 1;
68 if ((ZEND_OP2_TYPE(opline) == IS_VAR || ZEND_OP2_TYPE(opline) == IS_CV)
69 && ZEND_OP2(opline).var == ZEND_OP1(next_opline).var &&
70 (opline->opcode == ZEND_ADD ||
71 opline
151 MAKE_NOP(opline); variable
197 MAKE_NOP(opline); variable
259 MAKE_NOP(opline); variable
435 ZEND_RESULT_TYPE(opline) = IS_VAR | EXT_TYPE_UNUSED; variable
437 ZEND_RESULT_TYPE(opline) = IS_VAR; variable
[all...]
H A Dzend_optimizer.c143 zend_op *opline,
146 if (opline->opcode == ZEND_FREE) {
147 MAKE_NOP(opline);
150 ZEND_OP1_TYPE(opline) = IS_CONST;
153 switch (opline->opcode) {
157 opline->op1.constant = zend_optimizer_add_literal(op_array, val TSRMLS_CC);
158 Z_HASH_P(&ZEND_OP1_LITERAL(opline)) = zend_hash_func(Z_STRVAL(ZEND_OP1_LITERAL(opline)), Z_STRLEN(ZEND_OP1_LITERAL(opline)) + 1);
159 op_array->literals[opline
142 update_op1_const(zend_op_array *op_array, zend_op *opline, zval *val TSRMLS_DC) argument
184 update_op2_const(zend_op_array *op_array, zend_op *opline, zval *val TSRMLS_DC) argument
303 replace_var_by_const(zend_op_array *op_array, zend_op *opline, zend_uint var, zval *val TSRMLS_DC) argument
358 replace_tmp_by_const(zend_op_array *op_array, zend_op *opline, zend_uint var, zval *val TSRMLS_DC) argument
483 zend_op *opline, *end; local
[all...]
/PHP_TRUNK/sapi/fpm/fpm/
H A Dfpm_php_trace.c107 if (0 > fpm_trace_get_long(execute_data + offsetof(zend_execute_data, opline), &l)) {
112 long opline = l; local
115 if (0 > fpm_trace_get_long(opline + offsetof(struct _zend_op, lineno), &l)) {
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c1839 zend_op *opline = *EG(opline_ptr); local
1841 if (opline->opcode == ZEND_INCLUDE_OR_EVAL &&
1842 (opline->op2.u.constant.value.lval == ZEND_INCLUDE_ONCE ||
1843 opline->op2.u.constant.value.lval == ZEND_REQUIRE_ONCE)) {
1852 if (opline->op1.op_type == IS_CONST) {
1853 filename_len = Z_STRLEN(opline->op1.u.constant);
1870 ZCG(cache_opline) = opline;
1884 ZCG(cache_opline) = opline;
1908 ZCG(cache_opline) = opline;
H A Dzend_persist_calc.c185 zend_op *opline = op_array->opcodes; local
189 while (opline<end) {
190 if (opline->op1.op_type == IS_CONST) {
191 ADD_SIZE(zend_persist_zval_calc(&opline->op1.u.constant TSRMLS_CC));
193 if (opline->op2.op_type == IS_CONST) {
194 ADD_SIZE(zend_persist_zval_calc(&opline->op2.u.constant TSRMLS_CC));
196 opline++;
H A Dzend_persist.c279 zend_op *opline = new_opcodes; local
283 for (; opline < end ; opline++, offset++) {
284 if (ZEND_OP1_TYPE(opline) == IS_CONST) {
286 opline->op1.zv = (zval*)((char*)opline->op1.zv + ((char*)op_array->literals - (char*)orig_literals));
288 zend_persist_zval(&opline->op1.u.constant TSRMLS_CC);
289 zend_protect_zval(&opline->op1.u.constant TSRMLS_CC);
292 if (ZEND_OP2_TYPE(opline) == IS_CONST) {
294 opline
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_bp.h66 * Breakpoint opline num based representation
74 zend_ulong opline; member in struct:_phpdbg_breakopline_t
78 * Breakpoint opline based representation
82 zend_ulong opline; member in struct:_phpdbg_breakline_t
116 PHPDBG_API void phpdbg_set_breakpoint_opline(zend_ulong opline TSRMLS_DC);
117 PHPDBG_API void phpdbg_set_breakpoint_opline_ex(phpdbg_opline_ptr_t opline TSRMLS_DC);
118 PHPDBG_API void phpdbg_set_breakpoint_method_opline(const char *class, const char *method, zend_ulong opline TSRMLS_DC);
119 PHPDBG_API void phpdbg_set_breakpoint_function_opline(const char *function, zend_ulong opline TSRMLS_DC);
120 PHPDBG_API void phpdbg_set_breakpoint_file_opline(const char *file, zend_ulong opline TSRMLS_DC);
H A Dphpdbg_opcode.c151 zend_op *opline = execute_data->opline; local
152 char *decode = phpdbg_decode_opline(execute_data->op_array, opline, vars TSRMLS_CC);
157 opline->lineno,
158 opline,
159 phpdbg_decode_opcode(opline->opcode),
166 opline->lineno,
167 opline, local
168 phpdbg_decode_opcode(opline->opcode),
H A Dphpdbg_print.c34 PHPDBG_PRINT_COMMAND_D(opline, "print out the instruction in the current opline", 'o', print_opline, NULL, 0),
42 PHPDBG_PRINT(opline) /* {{{ */
61 zend_op *opline = &(op_array->opcodes[0]); local
81 char *decode = phpdbg_decode_opline(op_array, opline, &vars TSRMLS_CC);
84 opline->lineno,
85 opline,
86 phpdbg_decode_opcode(opline->opcode),
90 phpdbg_error("\tFailed to decode opline %16p", opline);
[all...]
H A Dphpdbg_print.h32 PHPDBG_PRINT(opline); variable
H A Dphpdbg_prompt.c434 self = (EG(current_execute_data)->opline - EG(active_op_array)->opcodes);
435 zend_op *opline = &EG(active_op_array)->opcodes[self]; local
438 if (EG(active_op_array)->opcodes[next].lineno != opline->lineno) {
462 self = (EG(current_execute_data)->opline - EG(active_op_array)->opcodes);
495 self = (EG(current_execute_data)->opline - EG(active_op_array)->opcodes);
1137 EX(opline) = UNEXPECTED((op_array->fn_flags & ZEND_ACC_INTERACTIVE) != 0) && EG(start_op) ? EG(start_op) : op_array->opcodes;
1138 EG(opline_ptr) = &EX(opline);
1185 /* resolve nth opline breakpoints */
1229 zend_ulong address = (zend_ulong) execute_data->opline;
1277 if (PHPDBG_G(flags) & PHPDBG_IS_STEPPING && (PHPDBG_G(flags) & PHPDBG_STEP_OPCODE || execute_data->opline
[all...]
/PHP_TRUNK/Zend/
H A Dzend_execute_API.c72 fprintf(stderr, "SIGSEGV caught on opcode %d on opline %d of %s() at %s:%d\n\n",
661 EX(opline) = NULL;
1144 zend_op *opline, *end; local
1165 opline=EG(start_op);
1168 while (opline<end) {
1169 if (opline->op1_type == IS_CONST) {
1170 opline->op1.zv = &CG(active_op_array)->literals[opline->op1.constant].constant;
1172 if (opline->op2_type == IS_CONST) {
1173 opline
1178 zend_resolve_goto_label(CG(active_op_array), opline, 1 TSRMLS_CC); local
[all...]
H A Dzend_compile.c586 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
588 opline->opcode = op;
589 opline->result_type = IS_TMP_VAR;
590 opline->result.var = get_temporary_variable(CG(active_op_array));
591 SET_NODE(opline->op1, op1);
592 SET_NODE(opline->op2, op2);
593 GET_NODE(result, opline->result);
599 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
601 opline->opcode = op;
602 opline
623 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
663 zend_op opline; local
730 zend_op opline; local
813 zend_op opline; local
861 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
874 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
898 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
933 zend_op *opline; local
1035 zend_op *opline; local
1103 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
1117 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
1137 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
1148 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
1164 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
1181 zend_op *opline; local
1208 zend_op *opline; local
1235 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
1248 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
1310 zend_op *opline = NULL; local
1404 zend_op *opline; local
1437 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
1457 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
1463 zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1]; local
1710 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
1757 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
1823 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
1867 zend_op *opline; local
2042 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
2065 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
2078 zend_op *opline; local
2319 zend_op *opline; local
2378 zend_resolve_goto_label(zend_op_array *op_array, zend_op *opline, int pass2 TSRMLS_DC) argument
2440 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
2446 zend_resolve_goto_label(CG(active_op_array), opline, 0 TSRMLS_CC); local
2498 zend_op *opline; local
2557 zend_op *opline; local
2606 zend_op *opline; local
2721 zend_op *opline; local
2756 zend_op *opline; local
2774 zend_op *opline; local
2793 zend_op *opline; local
2853 zend_op *opline; local
2923 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
2965 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
2988 zend_op *opline; local
3020 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
3048 zend_op *opline; local
3068 zend_op *opline; local
4551 do_bind_function(const zend_op_array *op_array, zend_op *opline, HashTable *function_table, zend_bool compile_time) argument
4653 do_bind_class(const zend_op_array* op_array, const zend_op *opline, HashTable *class_table, zend_bool compile_time TSRMLS_DC) argument
4692 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 TSRMLS_DC) argument
4742 zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1]; local
4836 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
4856 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
4871 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
4891 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
4912 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
4927 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
4963 zend_op *opline; local
5006 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
5044 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
5065 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
5087 zend_op *opline; local
5203 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
5240 zend_op *opline; local
5275 zend_op *opline; local
5307 zend_op *opline; local
5477 zend_op opline; local
5592 zend_op *opline; local
5683 zend_op *opline; local
5790 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
5831 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
5866 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
5963 zend_op *opline; local
6056 zend_op *opline; local
6134 zend_op *opline; local
6168 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6184 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6223 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6300 zend_op *opline; local
6327 zend_op *opline; local
6382 zend_op *opline; local
6472 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6575 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6589 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6602 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6613 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6636 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6666 zend_op *opline; local
6682 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6709 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6737 zend_op *opline; local
6753 zend_op *opline; local
6769 zend_op *opline; local
6785 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
7293 zend_op *opline; local
[all...]
H A Dzend_execute.c63 #define RETURN_VALUE_USED(opline) (!((opline)->result_type & EXT_TYPE_UNUSED))
103 #define SELECTIVE_PZVAL_LOCK(pzv, opline) if (RETURN_VALUE_USED(opline)) { PZVAL_LOCK(pzv); }
604 zend_error(error_type, "Argument %d passed to %s%s%s() must %s%s, %s%s given, called in %s on line %d and defined", arg_num, fclass, fsep, fname, need_msg, need_kind, given_msg, given_kind, ptr->op_array->filename, ptr->opline->lineno);
1511 zval **return_value_ptr = &EX_TMP_VAR(execute_data_ptr, execute_data_ptr->opline->result.var)->var.ptr;
1513 execute_data_ptr->opline->extended_value + execute_data_ptr->call->num_additional_args,
1698 EX(opline) = UNEXPECTED((op_array->fn_flags & ZEND_ACC_INTERACTIVE) != 0) && EG(start_op) ? EG(start_op) : op_array->opcodes;
1699 EG(opline_ptr) = &EX(opline);
1714 static zend_always_inline zend_bool zend_is_by_ref_func_arg_fetch(zend_op *opline, call_slo argument
[all...]
H A Dzend_compile.h397 struct _zend_op *opline; member in struct:_zend_execute_data
542 ZEND_API int do_bind_function(const zend_op_array *op_array, zend_op *opline, HashTable *function_table, zend_bool compile_time);
543 ZEND_API zend_class_entry *do_bind_class(const zend_op_array *op_array, const zend_op *opline, HashTable *class_table, zend_bool compile_time TSRMLS_DC);
544 ZEND_API zend_class_entry *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 TSRMLS_DC);
665 void zend_resolve_goto_label(zend_op_array *op_array, zend_op *opline, int pass2 TSRMLS_DC);
H A Dzend_opcode.c459 zend_op *opline = op_array->opcodes, *end=opline+op_array->last; local
461 while (opline<end) {
462 if (opline->opcode == ZEND_EXT_STMT) {
463 if (opline+1<end) {
464 if ((opline+1)->opcode == ZEND_EXT_STMT) {
465 opline->opcode = ZEND_NOP;
466 opline++;
469 if (opline+1<end) {
470 opline
558 zend_op *opline; local
664 zend_op *opline; local
717 zend_op *opline, *end; local
[all...]
H A Dzend_vm_def.h34 fast_add_function(&EX_T(opline->result.var).tmp_var,
49 fast_sub_function(&EX_T(opline->result.var).tmp_var,
64 fast_mul_function(&EX_T(opline->result.var).tmp_var,
79 fast_div_function(&EX_T(opline->result.var).tmp_var,
94 fast_mod_function(&EX_T(opline->result.var).tmp_var,
109 shift_left_function(&EX_T(opline->result.var).tmp_var,
124 shift_right_function(&EX_T(opline->result.var).tmp_var,
139 concat_function(&EX_T(opline->result.var).tmp_var,
154 is_identical_function(&EX_T(opline->result.var).tmp_var,
167 zval *result = &EX_T(opline
5071 do_bind_inherited_class(EX(op_array), opline, EG(class_table), EX_T(opline->extended_value).class_entry, 0 TSRMLS_CC); variable
5082 do_bind_function(EX(op_array), opline, EG(function_table), 0); variable
[all...]
H A Dzend_vm_execute.h317 #define OPLINE EX(opline)
319 #define USE_OPLINE zend_op *opline = EX(opline);
333 #define ZEND_VM_DISPATCH(opcode, opline) return zend_vm_get_opcode_handler(opcode, opline)(ZEND_OPCODE_HANDLER_ARGS_PASSTHRU);
416 if (UNEXPECTED(opline->opcode == ZEND_INCLUDE_OR_EVAL)) {
421 EG(opline_ptr) = &EX(opline);
434 EG(opline_ptr) = &EX(opline);
466 if (RETURN_VALUE_USED(opline) && EX_T(opline
1086 do_bind_inherited_class(EX(op_array), opline, EG(class_table), EX_T(opline->extended_value).class_entry, 0 TSRMLS_CC); local
1097 do_bind_function(EX(op_array), opline, EG(function_table), 0); local
[all...]

Completed in 81 milliseconds