Searched refs:op_array (Results 1 - 25 of 51) sorted by relevance

123

/PHP_5_6/ext/opcache/Optimizer/
H A Dcompact_literals.c60 zend_op_array *op_array)
66 if (Z_TYPE(op_array->literals[constant].constant) == IS_STRING &&
68 LITERAL_INFO_OBJ(constant, kind, 1, slots, related, op_array->this_var);
81 zend_op_array *op_array)
90 static void optimizer_compact_literals(zend_op_array *op_array TSRMLS_DC)
103 if (op_array->last_literal) {
104 info = (literal_info*)ecalloc(op_array->last_literal, sizeof(literal_info));
107 opline = op_array->opcodes;
108 end = opline + op_array->last;
130 op_array);
53 optimizer_literal_obj_info(literal_info *info, zend_uchar op_type, znode_op op, int constant, zend_uint kind, zend_uint slots, zend_uint related, zend_op_array *op_array) argument
74 optimizer_literal_class_info(literal_info *info, zend_uchar op_type, znode_op op, int constant, zend_uint kind, zend_uint slots, zend_uint related, zend_op_array *op_array) argument
[all...]
H A Dnop_removal.c5 static void nop_removal(zend_op_array *op_array) argument
13 shiftlist = (zend_uint *)DO_ALLOCA(sizeof(zend_uint) * op_array->last);
15 end = op_array->opcodes + op_array->last;
16 for (opline = op_array->opcodes; opline < end; opline++) {
31 zend_op *target = op_array->opcodes + ZEND_OP1(opline).opline_num - 1;
47 op_array->opcodes[new_count] = *opline;
54 op_array->last = new_count;
55 end = op_array->opcodes + op_array
[all...]
H A Doptimize_temp_vars_5.c73 static void optimize_temporary_variables(zend_op_array *op_array) argument
75 int T = op_array->T;
91 end = op_array->opcodes;
92 opline = &op_array->opcodes[op_array->last - 1];
113 end = op_array->opcodes;
114 opline = &op_array->opcodes[op_array->last - 1];
221 op_array->T = max + 1;
H A Dpass10.c2 nop_removal(op_array); variable
H A Dpass5.c2 zend_block_optimization(op_array TSRMLS_CC);
H A Dpass9.c7 optimize_temporary_variables(op_array); variable
H A Doptimize_func_calls.c11 static void optimize_func_calls(zend_op_array *op_array, zend_persistent_script *script TSRMLS_DC) { argument
12 zend_op *opline = op_array->opcodes;
13 zend_op *end = opline + op_array->last;
16 optimizer_call_info *call_stack = ecalloc(op_array->nested_calls + 1, sizeof(optimizer_call_info));
28 zval *function_name = &op_array->literals[opline->op2.constant + 1].constant;
57 op_array->literals[fcall->op2.constant + 1].cache_slot = op_array->literals[fcall->op2.constant].cache_slot;
60 literal_dtor(&op_array->literals[fcall->op2.constant + 2].constant);
73 op_array->literals[fcall->op2.constant + 1].cache_slot = op_array
[all...]
H A Dblock_pass.c41 # define BLOCK_REF(b) b?op_array->opcodes-b->start_opline:-1
78 #define START_BLOCK_OP(opno) blocks[opno].start_opline = &op_array->opcodes[opno]; blocks[opno].start_opline_no = opno; blocks[opno].access = 1
80 /* find code blocks in op_array
83 static int find_code_blocks(zend_op_array *op_array, zend_cfg *cfg) argument
86 zend_op *end = op_array->opcodes + op_array->last;
91 blocks = cfg->blocks = ecalloc(op_array->last + 2, sizeof(zend_code_block));
92 opline = op_array->opcodes;
170 if (op_array->last_try_catch) {
172 cfg->try = ecalloc(op_array
484 zend_rebuild_access_path(zend_cfg *cfg, zend_op_array *op_array, int find_start) argument
606 zend_optimize_block(zend_code_block *block, zend_op_array *op_array, char *used_ext TSRMLS_DC) argument
1188 assemble_code_blocks(zend_cfg *cfg, zend_op_array *op_array) argument
1319 zend_jmp_optimization(zend_code_block *block, zend_op_array *op_array, zend_code_block *blocks TSRMLS_DC) argument
1867 zend_t_usage(zend_code_block *block, zend_op_array *op_array, char *used_ext) argument
[all...]
H A Dpass2.c9 zend_op *end = op_array->opcodes + op_array->last;
11 opline = op_array->opcodes;
175 jmp_to = &op_array->brk_cont_array[array_offset];
179 (op_array->opcodes[jmp_to->brk].opcode == ZEND_FREE ||
180 op_array->opcodes[jmp_to->brk].opcode == ZEND_SWITCH_FREE)) {
H A Dpass1_5.c17 zend_op *opline = op_array->opcodes;
18 zend_op *end = opline + op_array->last;
19 zend_bool collect_constants = (op_array == &script->main_op_array);
73 replace_tmp_by_const(op_array, opline + 1, tv, &result TSRMLS_CC);
108 replace_tmp_by_const(op_array, opline + 1, tv, &res TSRMLS_CC);
142 replace_tmp_by_const(op_array, opline + 1, tv, &result TSRMLS_CC);
212 ZEND_OP1(opline + 1).opline_num = last_op - op_array->opcodes; /* that's OK even for ZE2, since opline_num's are resolved in pass 2 later */
230 EG(active_op_array) = op_array;
236 replace_tmp_by_const(op_array, opline, tv, &offset TSRMLS_CC);
257 replace_tmp_by_const(op_array, oplin
[all...]
H A Dpass3.c13 if (jmp_hitlist[i] == ZEND_OP1(&op_array->opcodes[target]).opline_num) { \
17 jmp_hitlist[jmp_hitlist_count++] = ZEND_OP1(&op_array->opcodes[target]).opline_num;
21 if (jmp_hitlist[i] == ZEND_OP2(&op_array->opcodes[target]).opline_num) { \
25 jmp_hitlist[jmp_hitlist_count++] = ZEND_OP2(&op_array->opcodes[target]).opline_num;
29 zend_op *end = op_array->opcodes + op_array->last;
36 jmp_hitlist = (zend_uint *)DO_ALLOCA(sizeof(zend_uint)*op_array->last);
37 opline = op_array->opcodes;
144 if (op_array->has_finally_block) {
156 while (ZEND_OP1(opline).opline_num < op_array
[all...]
H A Dzend_optimizer.c64 static int zend_optimizer_lookup_cv(zend_op_array *op_array, char* name, int name_len) argument
69 while (i < op_array->last_var) {
70 if (op_array->vars[i].name == name ||
71 (op_array->vars[i].hash_value == hash_value &&
72 op_array->vars[i].name_len == name_len &&
73 memcmp(op_array->vars[i].name, name, name_len) == 0)) {
78 i = op_array->last_var;
79 op_array->last_var++;
80 op_array->vars = erealloc(op_array
93 zend_optimizer_add_literal(zend_op_array *op_array, const zval *zv TSRMLS_DC) argument
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
413 zend_optimize(zend_op_array *op_array, zend_persistent_script *script, HashTable **constants TSRMLS_DC) argument
479 zend_accel_optimize(zend_op_array *op_array, zend_persistent_script *script, HashTable **constants TSRMLS_DC) argument
575 zend_op_array *op_array = (zend_op_array*)p->pData; local
585 zend_op_array *op_array = (zend_op_array*)q->pData; local
[all...]
/PHP_5_6/Zend/
H A Dzend_dtrace.c29 if (EG(current_execute_data) && EG(current_execute_data)->op_array) {
30 return EG(current_execute_data)->op_array->filename;
H A Dzend_dtrace.h34 ZEND_API void (*zend_dtrace_execute)(zend_op_array *op_array TSRMLS_DC);
H A Dzend_closures.h31 ZEND_API void zend_create_closure(zval *res, zend_function *op_array, zend_class_entry *scope, zval *this_ptr TSRMLS_DC);
H A Dzend_generators.h65 ZEND_API zval *zend_generator_create_zval(zend_op_array *op_array TSRMLS_DC);
H A Dzend_extensions.h50 typedef void (*op_array_handler_func_t)(zend_op_array *op_array);
52 typedef void (*statement_handler_func_t)(zend_op_array *op_array);
53 typedef void (*fcall_begin_handler_func_t)(zend_op_array *op_array);
54 typedef void (*fcall_end_handler_func_t)(zend_op_array *op_array);
56 typedef void (*op_array_ctor_func_t)(zend_op_array *op_array);
57 typedef void (*op_array_dtor_func_t)(zend_op_array *op_array);
H A Dzend_generators.c35 zend_op_array *op_array = execute_data->op_array; local
47 zend_uint op_num = execute_data->opline - op_array->opcodes - 1;
50 for (i = 0; i < op_array->last_brk_cont; ++i) {
51 zend_brk_cont_element *brk_cont = op_array->brk_cont_array + i;
58 zend_op *brk_opline = op_array->opcodes + brk_cont->brk;
113 zend_op_array *op_array = execute_data->op_array; local
157 if (op_array->fn_flags & ZEND_ACC_CLOSURE) {
158 destroy_op_array(op_array TSRMLS_C
[all...]
H A Dzend_opcode.c32 static void zend_extension_op_array_ctor_handler(zend_extension *extension, zend_op_array *op_array TSRMLS_DC)
35 extension->op_array_ctor(op_array);
39 static void zend_extension_op_array_dtor_handler(zend_extension *extension, zend_op_array *op_array TSRMLS_DC)
42 extension->op_array_dtor(op_array);
46 static void op_array_alloc_ops(zend_op_array *op_array, zend_uint size) argument
48 op_array->opcodes = erealloc(op_array->opcodes, size * sizeof(zend_op));
51 void init_op_array(zend_op_array *op_array, zend_uchar type, int initial_ops_size TSRMLS_DC) argument
53 op_array->type = type;
56 /* We must avoid a realloc() on the op_array i
131 zend_cleanup_op_array_data(zend_op_array *op_array) argument
445 get_next_op_number(zend_op_array *op_array) argument
450 get_next_brk_cont_element(zend_op_array *op_array) argument
487 zend_check_finally_breakout(zend_op_array *op_array, zend_uint op_num, zend_uint dst_num TSRMLS_DC) argument
512 zend_adjust_fast_call(zend_op_array *op_array, zend_uint fast_call, zend_uint start, zend_uint end TSRMLS_DC) argument
533 zend_resolve_fast_call(zend_op_array *op_array, zend_uint fast_call, zend_uint op_num TSRMLS_DC) argument
555 zend_resolve_finally_call(zend_op_array *op_array, zend_uint op_num, zend_uint dst_num TSRMLS_DC) argument
633 zend_resolve_finally_ret(zend_op_array *op_array, zend_uint op_num TSRMLS_DC) argument
[all...]
/PHP_5_6/sapi/fpm/fpm/
H A Dfpm_php_trace.c93 if (0 > fpm_trace_get_long(execute_data + offsetof(zend_execute_data, op_array), &l)) {
100 long op_array = l; local
102 if (0 > fpm_trace_get_strz(buf, buf_size, op_array + offsetof(zend_op_array, filename))) {
/PHP_5_6/ext/opcache/
H A Dzend_persist_calc.c159 static uint zend_persist_op_array_calc(zend_op_array *op_array TSRMLS_DC)
163 if (op_array->type != ZEND_USER_FUNCTION) {
167 if (op_array->filename) {
168 ADD_DUP_SIZE(op_array->filename, strlen(op_array->filename) + 1);
172 if (op_array->literals && !zend_shared_alloc_get_xlat_entry(op_array->literals)) {
173 zend_literal *p = op_array->literals;
174 zend_literal *end = p + op_array->last_literal;
175 ADD_DUP_SIZE(op_array
[all...]
H A Dzend_persist.c210 static void zend_persist_op_array_ex(zend_op_array *op_array, zend_persistent_script* main_persistent_script TSRMLS_DC) argument
220 if (op_array->type != ZEND_USER_FUNCTION) {
225 op_array->size = op_array->last;
228 if (--(*op_array->refcount) == 0) {
229 efree(op_array->refcount);
231 op_array->refcount = NULL;
233 if (op_array->filename) {
235 op_array->filename = zend_accel_memdup(op_array
[all...]
/PHP_5_6/sapi/phpdbg/
H A Dphpdbg_print.c57 zend_op_array* op_array = &(method->op_array); local
60 if (op_array) {
61 zend_op *opline = &(op_array->opcodes[0]);
63 end = op_array->last-1;
67 op_array->line_start, op_array->line_end,
70 op_array->filename ? op_array->filename : "unknown");
73 method->common.function_name ? op_array
[all...]
H A Dphpdbg_prompt.h64 void phpdbg_execute_ex(zend_op_array *op_array TSRMLS_DC);
H A Dphpdbg_prompt.c1086 static inline zend_execute_data *phpdbg_create_execute_data(zend_op_array *op_array, zend_bool nested TSRMLS_DC) /* {{{ */ argument
1089 return zend_create_execute_data_from_op_array(op_array, nested TSRMLS_CC);
1105 ZEND_MM_ALIGNED_SIZE(sizeof(zval**) * op_array->last_var * (EG(active_symbol_table) ? 1 : 2)) +
1106 ZEND_MM_ALIGNED_SIZE(sizeof(temp_variable)) * op_array->T TSRMLS_CC);
1109 memset(EX(CVs), 0, sizeof(zval**) * op_array->last_var);
1110 EX(Ts) = (temp_variable *)(((char*)EX(CVs)) + ZEND_MM_ALIGNED_SIZE(sizeof(zval**) * op_array->last_var * (EG(active_symbol_table) ? 1 : 2)));
1115 EX(op_array) = op_array;
1121 if (!op_array->run_time_cache && op_array
[all...]

Completed in 59 milliseconds

123