Searched defs:opline (Results 1 - 25 of 25) 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;
69 opline--;
76 opline = &op_array->opcodes[op_array->last - 1];
78 while (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 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
122 zend_optimizer_update_op1_const(zend_op_array *op_array, zend_op *opline, zval *val) argument
161 zend_optimizer_update_op2_const(zend_op_array *op_array, zend_op *opline, zval *val) argument
297 zend_optimizer_replace_by_const(zend_op_array *op_array, zend_op *opline, zend_uchar type, uint32_t var, zval *val) argument
485 zend_op *opline, *end; local
579 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 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 2);
145 LITERAL_INFO(opline->op2.constant, LITERAL_FUNC, 1, 1, 3);
148 if (ZEND_OP2_TYPE(opline) == IS_CONST) {
151 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) {
131 START_BLOCK_OP(ZEND_OP1(opline).opline_num);
132 if (opline->extended_value) {
133 START_BLOCK_OP(ZEND_OP2(opline).opline_num);
138 if (opline->extended_value) {
139 START_BLOCK_OP(ZEND_OP2(opline)
562 zend_op *opline = block->start_opline; local
607 zend_op *opline = block->start_opline; local
1132 zend_op *opline = new_opcodes; local
1766 zend_op *opline = next_block->start_opline; local
1809 zend_op *opline = block->start_opline + block->len - 1; local
[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 &&
78 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...]
/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) /* {{{ */
61 zend_op *opline = &(op_array->opcodes[0]); local
66 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",
72 opline,
75 phpdbg_writeln("printoplineinfo", "type=\"User\" startline=\"%d\" endline=\"%d\" function=\"%s\" file=\"%s\" opline=\"%p\"", "L%d-%d %s() %s - %p + %d ops",
80 opline,
86 char *decode = phpdbg_decode_opline(op_array, opline, &vars);
89 opline
[all...]
H A Dphpdbg_prompt.c483 const zend_op *opline = EG(current_execute_data)->opline; local
486 while (++opline < op_array->opcodes + op_array->last) {
487 if (opline->lineno != EG(current_execute_data)->opline->lineno
488 || opline->opcode == ZEND_RETURN
489 || opline->opcode == ZEND_FAST_RET
490 || opline->opcode == ZEND_GENERATOR_RETURN
491 || opline->opcode == ZEND_EXIT
492 || opline
526 const zend_op *opline = EG(current_execute_data)->opline; local
[all...]
H A Dphpdbg_bp.c420 PHPDBG_API void phpdbg_set_breakpoint_opline(zend_ulong opline) /* {{{ */ argument
422 if (!zend_hash_index_exists(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], opline)) {
429 new_break.opline = opline;
432 zend_hash_index_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_OPLINE], opline, &new_break, sizeof(phpdbg_breakline_t));
434 phpdbg_notice("breakpoint", "add=\"success\" id=\"%d\" opline=\"%#lx\"", "Breakpoint #%d added at %#lx", new_break.id, new_break.opline);
437 phpdbg_error("breakpoint", "type=\"exists\" add=\"fail\" opline=\"%#lx\"", "Breakpoint exists at %#lx", opline);
446 phpdbg_error("breakpoint", "type=\"maxoplines\" add=\"fail\" maxoplinenum=\"%d\" function=\"%s\" usedoplinenum=\"%ld\"", "There are only %d oplines in function %s (breaking at opline
576 phpdbg_set_breakpoint_method_opline(const char *class, const char *method, zend_ulong opline) argument
629 phpdbg_set_breakpoint_function_opline(const char *function, zend_ulong opline) argument
675 phpdbg_set_breakpoint_file_opline(const char *file, zend_ulong opline) argument
743 phpdbg_set_breakpoint_opline_ex(phpdbg_opline_ptr_t opline) argument
919 phpdbg_find_breakpoint_opline(phpdbg_opline_ptr_t opline) argument
[all...]
H A Dphpdbg_opcode.c202 zend_op *opline = (zend_op *) execute_data->opline; local
203 char *decode = phpdbg_decode_opline(&execute_data->func->op_array, opline, vars);
207 phpdbg_notice("opline", "line=\"%u\" opline=\"%p\" opcode=\"%s\" op=\"%s\" file=\"%s\"", "L%-5u %16p %-30s %s %s",
208 opline->lineno,
209 opline,
210 phpdbg_decode_opcode(opline->opcode),
217 opline->lineno,
218 opline, local
[all...]
/PHP_TRUNK/Zend/
H A Dzend.c1074 const zend_op *opline; local
1084 opline = NULL;
1088 if (ex && ex->opline->opcode == ZEND_HANDLE_EXCEPTION &&
1090 opline = EG(opline_before_exception);
1094 if (opline) {
1095 ex->opline = opline;
1281 EG(current_execute_data)->opline->opcode == ZEND_INCLUDE_OR_EVAL &&
1282 EG(current_execute_data)->opline->extended_value == ZEND_EVAL)) {
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
423 const zend_op *opline; /* executed opline */ member in struct:_zend_execute_data
[all...]
H A Dzend_execute.c67 #define RETURN_VALUE_USED(opline) (!((opline)->result_type & EXT_TYPE_UNUSED))
91 #define SELECTIVE_PZVAL_LOCK(pzv, opline) if (RETURN_VALUE_USED(opline)) { PZVAL_LOCK(pzv); }
609 ptr->func->op_array.filename->val, ptr->opline->lineno);
823 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);
849 zf->op_array.filename->val, EG(current_execute_data)->opline->lineno);
1866 EX(opline) = op_array->opcodes;
1879 EX(opline) += first_extra_arg;
1903 EX(opline)
2108 zend_is_by_ref_func_arg_fetch(const zend_op *opline, zend_execute_data *call) argument
[all...]
H A Dzend_opcode.c456 zend_op *opline = op_array->opcodes, *end=opline+op_array->last; local
458 while (opline<end) {
459 if (opline->opcode == ZEND_EXT_STMT) {
460 if (opline+1<end) {
461 if ((opline+1)->opcode == ZEND_EXT_STMT) {
462 opline->opcode = ZEND_NOP;
463 opline++;
466 if (opline+1<end) {
467 opline
555 zend_op *opline; local
669 zend_get_brk_cont_target(const zend_op_array *op_array, const zend_op *opline) argument
686 zend_op *opline; local
726 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);
82 result = EX_VAR(opline->result.var);
86 result = EX_VAR(opline->result.var);
92 result = EX_VAR(opline->result.var);
96 result = EX_VAR(opline->result.var);
109 sub_function(EX_VAR(opline
2540 ZEND_VM_JMP(opline); variable
2578 ZEND_VM_JMP(opline); variable
2615 ZEND_VM_JMP(opline); variable
2658 ZEND_VM_JMP(opline); variable
2702 ZEND_VM_JMP(opline); variable
7121 zend_op *opline = EX(func)->op_array.opcodes + op_num; variable
[all...]
H A Dzend_vm_execute.h318 register const zend_op *opline __asm__(ZEND_VM_IP_GLOBAL_REG);
344 # define OPLINE opline
346 # define LOAD_OPLINE() opline = EX(opline)
347 # define SAVE_OPLINE() EX(opline) = opline
349 # define OPLINE EX(opline)
350 # define USE_OPLINE const zend_op *opline = EX(opline);
366 # define ZEND_VM_ENTER() opline
1496 zend_op *opline = EX(func)->op_array.opcodes + op_num; local
[all...]
H A Dzend_compile.c603 zend_op *opline = get_next_op(CG(active_op_array)); local
605 opline->opcode = ZEND_FREE;
606 SET_NODE(opline->op1, op1);
607 SET_UNUSED(opline->op2);
609 zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1]; local
611 while (opline->opcode == ZEND_END_SILENCE || opline->opcode == ZEND_EXT_FCALL_END || opline->opcode == ZEND_OP_DATA) {
612 opline--;
614 if (opline
880 zend_resolve_goto_label(zend_op_array *op_array, zend_op *opline, int pass2) argument
946 zend_op *opline = get_next_op(CG(active_op_array)); local
999 do_bind_function(const zend_op_array *op_array, const zend_op *opline, HashTable *function_table, zend_bool compile_time) argument
1040 do_bind_class(const zend_op_array* op_array, const zend_op *opline, HashTable *class_table, zend_bool compile_time) argument
1077 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
1122 zend_op *opline = &CG(active_op_array)->opcodes[CG(active_op_array)->last-1]; local
1497 zend_op *opline; local
1513 zend_op *opline; local
1529 zend_op *opline; local
1853 zend_adjust_for_fetch_type(zend_op *opline, uint32_t type) argument
1880 zend_make_var_result(znode *result, zend_op *opline) argument
1888 zend_make_tmp_result(znode *result, zend_op *opline) argument
1898 zend_op *opline = get_next_op(CG(active_op_array)); local
1922 zend_op *opline = get_next_op(CG(active_op_array)); local
1947 zend_op *opline = get_next_op(CG(active_op_array)); local
1965 zend_op *opline = zend_emit_op(NULL, ZEND_JMP, NULL, NULL); local
1974 zend_op *opline = zend_emit_op(NULL, opcode, cond, NULL); local
1982 zend_op *opline = &CG(active_op_array)->opcodes[opnum_jump]; local
2036 zend_op *opline = NULL, *oplines = zend_stack_base(&CG(delayed_oplines_stack)); local
2053 zend_op *opline = zend_emit_op(NULL, ZEND_VERIFY_RETURN_TYPE, expr, NULL); local
2139 zend_set_class_name_op1(zend_op *opline, znode *class_node) argument
2153 zend_op *opline; local
2214 zend_op *opline; local
2249 zend_op *opline = zend_compile_simple_var_no_cv(result, ast, type, delayed); local
2259 zend_op *opline = zend_emit_op(NULL, ZEND_SEPARATE, node, NULL); local
2324 zend_op *opline = zend_compile_dim_common(result, ast, type); local
2346 zend_op *opline; local
2376 zend_op *opline = zend_compile_prop_common(result, ast, type); local
2387 zend_op *opline; local
2421 zend_op *opline = zend_compile_static_prop_common(result, ast, type, delayed); local
2547 zend_op *opline; local
2610 zend_op *opline; local
2650 zend_op *opline; local
2702 zend_op *opline; local
2824 zend_op *opline; local
2863 zend_op *opline = get_next_op(CG(active_op_array)); local
2877 zend_op *opline = get_next_op(CG(active_op_array)); local
2925 zend_op *opline; local
2941 zend_op *opline; local
2973 zend_op *opline; local
3003 zend_op *opline; local
3050 zend_op *opline; local
3082 zend_op *opline; local
3197 zend_op *opline; local
3236 zend_op *opline; local
3277 zend_op *opline; local
3331 zend_op *opline; local
3396 zend_op *opline = zend_emit_op(NULL, ZEND_BIND_GLOBAL, &result, &name_node); local
3412 zend_op *opline; local
3466 zend_op *opline; local
3507 zend_op *opline; local
3569 zend_op *opline; local
3625 zend_op *opline; local
3630 zend_resolve_goto_label(CG(active_op_array), opline, 0); local
3766 zend_op *opline; local
3888 zend_op *opline; local
3973 zend_op *opline; local
4301 zend_op *opline; local
4610 zend_op *opline; local
4904 zend_op *opline; local
4962 zend_op *opline; local
5009 zend_op *opline; local
5860 zend_op *opline = zend_compile_prop_common(NULL, var_ast, BP_VAR_RW); local
5880 zend_op *opline = zend_compile_prop_common(result, var_ast, BP_VAR_RW); local
5895 zend_op *opline; local
5973 zend_op *opline; local
6055 zend_op *opline; local
6100 zend_op *opline; local
6132 zend_op *opline; local
6149 zend_op *opline = NULL; local
6247 zend_op *opline; local
6311 zend_op *opline; local
6367 zend_op *opline; local
6372 zend_op *opline = zend_emit_op_tmp(result, ZEND_FETCH_CLASS_NAME, NULL, NULL); local
6432 zend_op *opline = zend_emit_op_tmp(result, ZEND_FETCH_CLASS_NAME, NULL, NULL); local
6439 zend_op *opline = zend_emit_op_tmp(result, ZEND_FETCH_CLASS_NAME, NULL, NULL); local
6454 zend_op *opline = get_next_op(CG(active_op_array)); local
6476 zend_op *opline = NULL, *init_opline; local
6581 zend_op *opline; local
7056 zend_op *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 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
899 zend_op *opline, *end; local
[all...]
H A Dzend_persist.c486 zend_op *opline = new_opcodes; local
490 for (; opline < end ; opline++, offset++) {
492 if (ZEND_OP1_TYPE(opline) == IS_CONST) {
493 opline->op1.zv = (zval*)((char*)opline->op1.zv + ((char*)op_array->literals - (char*)orig_literals));
495 if (ZEND_OP2_TYPE(opline) == IS_CONST) {
496 opline->op2.zv = (zval*)((char*)opline->op2.zv + ((char*)op_array->literals - (char*)orig_literals));
502 switch (opline
[all...]

Completed in 57 milliseconds