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 Dpass3.c28 zend_op *opline; variable
37 opline = op_array->opcodes;
39 while (opline < end) {
42 switch (opline->opcode) {
55 zend_op *next_opline = opline + 1;
65 if ((ZEND_OP2_TYPE(opline) == IS_VAR || ZEND_OP2_TYPE(opline) == IS_CV)
66 && ZEND_OP2(opline).var == ZEND_OP1(next_opline).var &&
67 (opline->opcode == ZEND_ADD ||
68 opline
143 MAKE_NOP(opline); variable
189 MAKE_NOP(opline); variable
251 MAKE_NOP(opline); variable
427 ZEND_RESULT_TYPE(opline) = IS_VAR | EXT_TYPE_UNUSED; variable
429 ZEND_RESULT_TYPE(opline) = IS_VAR; variable
[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 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
462 zend_op *opline, *end; local
[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 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) {
41 if (ZEND_OP1_TYPE(opline) == IS_CONST &&
42 ZEND_OP2_TYPE(opline) == IS_CONST) {
44 int (*binary_op)(zval *result, zval *op1, zval *op2 TSRMLS_DC) = get_binary_op(opline->opcode);
45 zend_uint tv = ZEND_RESULT(opline).var; /* temporary variable */
49 if (opline->opcode == ZEND_DIV &&
50 Z_TYPE(ZEND_OP2_LITERAL(opline))
68 MAKE_NOP(opline); variable
103 MAKE_NOP(opline); variable
137 MAKE_NOP(opline); variable
232 MAKE_NOP(opline); variable
253 MAKE_NOP(opline); variable
319 MAKE_NOP(opline); variable
379 MAKE_NOP(opline); variable
412 MAKE_NOP(opline); variable
427 MAKE_NOP(opline); variable
441 MAKE_NOP(opline); variable
454 MAKE_NOP(opline); variable
562 MAKE_NOP(opline); variable
568 MAKE_NOP(opline); variable
[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...]
/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/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_print.c29 PHPDBG_PRINT(opline) /* {{{ */
48 zend_op *opline = &(op_array->opcodes[0]); local
68 char *decode = phpdbg_decode_opline(op_array, opline, &vars TSRMLS_CC);
71 opline->lineno,
72 opline,
73 phpdbg_decode_opcode(opline->opcode),
77 phpdbg_error("\tFailed to decode opline %16p", opline);
79 opline++;
H A Dphpdbg_print.h32 PHPDBG_PRINT(opline); variable
43 PHPDBG_COMMAND_D_EX(opline, "print out the instruction in the current opline", 'o', print_opline, NULL, 0),
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_prompt.c392 self = (EG(current_execute_data)->opline - EG(active_op_array)->opcodes);
393 zend_op *opline = &EG(active_op_array)->opcodes[self]; local
396 if (EG(active_op_array)->opcodes[next].lineno != opline->lineno) {
420 self = (EG(current_execute_data)->opline - EG(active_op_array)->opcodes);
453 self = (EG(current_execute_data)->opline - EG(active_op_array)->opcodes);
1148 EX(opline) = UNEXPECTED((op_array->fn_flags & ZEND_ACC_INTERACTIVE) != 0) && EG(start_op) ? EG(start_op) : op_array->opcodes;
1149 EG(opline_ptr) = &EX(opline);
1196 /* resolve nth opline breakpoints */
1240 zend_ulong address = (zend_ulong) execute_data->opline;
1312 PHPDBG_G(vmret) = execute_data->opline
[all...]
/PHP_TRUNK/Zend/
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
515 zend_op *opline; local
609 zend_op *opline; local
658 zend_op *opline, *end; local
[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_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);
1491 zval **return_value_ptr = &EX_TMP_VAR(execute_data_ptr, execute_data_ptr->opline->result.var)->var.ptr;
1493 execute_data_ptr->opline->extended_value, *return_value_ptr, return_value_ptr,
1677 EX(opline) = UNEXPECTED((op_array->fn_flags & ZEND_ACC_INTERACTIVE) != 0) && EG(start_op) ? EG(start_op) : op_array->opcodes;
1678 EG(opline_ptr) = &EX(opline);
1693 static zend_always_inline zend_bool zend_is_by_ref_func_arg_fetch(zend_op *opline, call_slo argument
[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
4545 do_bind_function(const zend_op_array *op_array, zend_op *opline, HashTable *function_table, zend_bool compile_time) argument
4647 do_bind_class(const zend_op_array* op_array, const zend_op *opline, HashTable *class_table, zend_bool compile_time TSRMLS_DC) argument
4686 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
4736 zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1]; local
4830 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
4850 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
4865 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
4885 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
4906 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
4921 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
4957 zend_op *opline; local
5000 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
5038 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
5059 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
5081 zend_op *opline; local
5197 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
5234 zend_op *opline; local
5269 zend_op *opline; local
5301 zend_op *opline; local
5471 zend_op opline; local
5586 zend_op *opline; local
5677 zend_op *opline; local
5784 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
5825 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
5860 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
5957 zend_op *opline; local
6050 zend_op *opline; local
6128 zend_op *opline; local
6162 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6178 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6217 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6294 zend_op *opline; local
6321 zend_op *opline; local
6376 zend_op *opline; local
6466 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6569 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6583 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6596 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6607 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6630 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6660 zend_op *opline; local
6676 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6703 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
6731 zend_op *opline; local
6747 zend_op *opline; local
6763 zend_op *opline; local
6779 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
7287 zend_op *opline; local
[all...]
H A Dzend_execute_API.c72 fprintf(stderr, "SIGSEGV caught on opcode %d on opline %d of %s() at %s:%d\n\n",
663 EX(opline) = NULL;
1146 zend_op *opline, *end; local
1167 opline=EG(start_op);
1170 while (opline<end) {
1171 if (opline->op1_type == IS_CONST) {
1172 opline->op1.zv = &CG(active_op_array)->literals[opline->op1.constant].constant;
1174 if (opline->op2_type == IS_CONST) {
1175 opline
1180 zend_resolve_goto_label(CG(active_op_array), opline, 1 TSRMLS_CC); 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
5067 do_bind_inherited_class(EX(op_array), opline, EG(class_table), EX_T(opline->extended_value).class_entry, 0 TSRMLS_CC); variable
5078 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...]
/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.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...]
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++;

Completed in 54 milliseconds