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

/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 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 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) TSRMLS_CC);
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 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 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 TSRMLS_DC) = 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 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 TSRMLS_DC) argument
147 zend_optimizer_update_op2_const(zend_op_array *op_array, zend_op *opline, zval *val TSRMLS_DC) argument
265 zend_optimizer_replace_var_by_const(zend_op_array *op_array, zend_op *opline, uint32_t var, zval *val TSRMLS_DC) argument
319 zend_optimizer_replace_tmp_by_const(zend_op_array *op_array, zend_op *opline, uint32_t var, zval *val TSRMLS_DC) argument
443 zend_op *opline, *end; local
[all...]
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 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)
544 zend_op *opline = block->start_opline; local
589 zend_op *opline = block->start_opline; local
1175 zend_op *opline = new_opcodes; local
1816 zend_op *opline = next_block->start_opline; local
1855 zend_op *opline = block->start_opline + block->len - 1; local
[all...]
/PHP_TRUNK/ext/opcache/
H A Dzend_persist.c348 zend_op *opline = new_opcodes; local
352 for (; opline < end ; opline++, offset++) {
353 if (ZEND_OP1_TYPE(opline) == IS_CONST) {
354 opline->op1.zv = (zval*)((char*)opline->op1.zv + ((char*)op_array->literals - (char*)orig_literals));
356 if (ZEND_OP2_TYPE(opline) == IS_CONST) {
357 opline->op2.zv = (zval*)((char*)opline->op2.zv + ((char*)op_array->literals - (char*)orig_literals));
362 switch (opline
[all...]
/PHP_TRUNK/Zend/
H A Dzend_opcode.c417 zend_op *opline = op_array->opcodes, *end=opline+op_array->last; local
419 while (opline<end) {
420 if (opline->opcode == ZEND_EXT_STMT) {
421 if (opline+1<end) {
422 if ((opline+1)->opcode == ZEND_EXT_STMT) {
423 opline->opcode = ZEND_NOP;
424 opline++;
427 if (opline+1<end) {
428 opline
516 zend_op *opline; local
622 zend_op *opline; local
675 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
1807 const zend_op *opline = EX(opline); local
1905 ZEND_VM_JMP(opline); variable
1936 ZEND_VM_JMP(opline); variable
1967 ZEND_VM_JMP(opline); variable
2002 ZEND_VM_JMP(opline); variable
2036 ZEND_VM_JMP(opline); 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);
403 if (UNEXPECTED(EG(exception) != NULL) && (EX(opline)->op1.num & ZEND_CALL_CTOR)) {
404 if (!(EX(opline)->op1.num & ZEND_CALL_CTOR_RESULT_UNUSED)) {
421 const zend_op *opline = EX(opline); local
423 if (RETURN_VALUE_USED(opline)) {
[all...]
H A Dzend_compile.h358 const zend_op *opline; /* executed opline */ member in struct:_zend_execute_data
449 ZEND_API int do_bind_function(const zend_op_array *op_array, const zend_op *opline, HashTable *function_table, zend_bool compile_time TSRMLS_DC);
450 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);
451 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);
465 void zend_resolve_goto_label(zend_op_array *op_array, zend_op *opline, int pass2 TSRMLS_DC);
H A Dzend_execute.c66 #define RETURN_VALUE_USED(opline) (!((opline)->result_type & EXT_TYPE_UNUSED))
89 #define SELECTIVE_PZVAL_LOCK(pzv, opline) if (RETURN_VALUE_USED(opline)) { PZVAL_LOCK(pzv); }
547 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->func->op_array.filename->val, ptr->opline->lineno);
648 zend_verify_missing_arg_type(EX(func), arg_num, EX(opline)->extended_value TSRMLS_CC)) {
655 zend_error(E_WARNING, "Missing argument %u for %s%s%s(), called in %s on line %d and defined", arg_num, class_name, space, func_name, ptr->func->op_array.filename->val, ptr->opline->lineno);
1470 EX(opline) = op_array->opcodes;
1489 EX(opline) += first_extra_arg;
1506 EX(opline)
1691 zend_is_by_ref_func_arg_fetch(const zend_op *opline, zend_execute_data *call TSRMLS_DC) argument
[all...]
H A Dzend_compile.c483 #define MAKE_NOP(opline) do { \
484 opline->opcode = ZEND_NOP; \
485 memset(&opline->result, 0, sizeof(opline->result)); \
486 memset(&opline->op1, 0, sizeof(opline->op1)); \
487 memset(&opline->op2, 0, sizeof(opline->op2)); \
488 opline->result_type = opline
525 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
531 zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1]; local
780 zend_resolve_goto_label(zend_op_array *op_array, zend_op *opline, int pass2 TSRMLS_DC) argument
861 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
913 do_bind_function(const zend_op_array *op_array, const zend_op *opline, HashTable *function_table, zend_bool compile_time TSRMLS_DC) argument
953 do_bind_class(const zend_op_array* op_array, const zend_op *opline, HashTable *class_table, zend_bool compile_time TSRMLS_DC) argument
990 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
1037 zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1]; local
1277 zend_op *opline; local
1293 zend_op *opline; local
1309 zend_op *opline; local
1683 zend_adjust_for_fetch_type(zend_op *opline, uint32_t type) argument
1731 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
1755 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
1778 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
1796 zend_op *opline = zend_emit_op(NULL, ZEND_JMP, NULL, NULL TSRMLS_CC); local
1805 zend_op *opline = zend_emit_op(NULL, opcode, cond, NULL TSRMLS_CC); local
1813 zend_op *opline = &CG(active_op_array)->opcodes[opnum_jump]; local
1859 zend_op *opline, *oplines = zend_stack_base(&CG(delayed_oplines_stack)); local
1952 zend_set_class_name_op1(zend_op *opline, znode *class_node TSRMLS_DC) argument
1966 zend_op *opline; local
2022 zend_op *opline; local
2050 zend_op *opline = zend_compile_simple_var_no_cv(result, ast, type TSRMLS_CC); local
2060 zend_op *opline = zend_emit_op(NULL, ZEND_SEPARATE, node, NULL TSRMLS_CC); local
2109 zend_op *opline = zend_compile_dim_common(result, ast, type TSRMLS_CC); local
2131 zend_op *opline; local
2160 zend_op *opline = zend_compile_prop_common(result, ast, type TSRMLS_CC); local
2171 zend_op *opline; local
2201 zend_op *opline = zend_compile_static_prop_common(result, ast, type TSRMLS_CC); local
2232 zend_op *opline; local
2308 zend_op *opline; local
2377 zend_op *opline; local
2416 zend_op *opline; local
2470 zend_op *opline; local
2560 zend_op *opline; local
2595 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
2609 zend_op *opline = get_next_op(CG(active_op_array) TSRMLS_CC); local
2656 zend_op *opline; local
2672 zend_op *opline; local
2705 zend_op *opline; local
2734 zend_op *opline; local
2781 zend_op *opline; local
2871 zend_op *opline; local
2910 zend_op *opline; local
2951 zend_op *opline; local
3003 zend_op *opline; local
3046 zend_op *opline = zend_emit_op(NULL, ZEND_BIND_GLOBAL, &result, &name_node TSRMLS_CC); local
3062 zend_op *opline; local
3110 zend_op *opline; local
3164 zend_op *opline; local
3221 zend_op *opline; local
3252 zend_op *opline; local
3257 zend_resolve_goto_label(CG(active_op_array), opline, 0 TSRMLS_CC); local
3395 zend_op *opline; local
3531 zend_op *opline; local
3611 zend_op *opline; local
3825 zend_op *opline; local
4145 zend_op *opline; local
4435 zend_op *opline; local
4494 zend_op *opline; local
4527 zend_op *opline; local
5278 zend_op *opline = zend_compile_prop_common(NULL, var_ast, BP_VAR_RW TSRMLS_CC); local
5296 zend_op *opline = zend_compile_prop_common(result, var_ast, BP_VAR_RW TSRMLS_CC); local
5311 zend_op *opline; local
5418 zend_op *opline; local
5456 zend_op *opline; local
5475 zend_op *opline; local
5492 zend_op *opline; local
5586 zend_op *opline; local
5653 zend_op *opline; local
5690 zend_op *opline; local
5769 zend_op *opline; local
6315 zend_op *opline; local
[all...]
H A Dzend.c1075 const zend_op *opline; local
1085 opline = NULL;
1089 if (ex && ex->opline->opcode == ZEND_HANDLE_EXCEPTION &&
1091 opline = EG(opline_before_exception);
1095 if (opline) {
1096 ex->opline = opline;
1282 EG(current_execute_data)->opline->opcode == ZEND_INCLUDE_OR_EVAL &&
1283 EG(current_execute_data)->opline->extended_value == ZEND_EVAL)) {
/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.c148 zend_op *opline = execute_data->opline; local
149 char *decode = phpdbg_decode_opline(execute_data->op_array, opline, vars TSRMLS_CC);
154 opline->lineno,
155 opline,
156 phpdbg_decode_opcode(opline->opcode),
163 opline->lineno,
164 opline, local
165 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) = 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...]

Completed in 68 milliseconds