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

12

/PHP_5_5/Zend/
H A Dzend_dtrace.h34 ZEND_API void (*zend_dtrace_execute)(zend_op_array *op_array TSRMLS_DC);
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_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_execute.c59 static void zend_extension_statement_handler(const zend_extension *extension, zend_op_array *op_array TSRMLS_DC);
60 static void zend_extension_fcall_begin_handler(const zend_extension *extension, zend_op_array *op_array TSRMLS_DC);
61 static void zend_extension_fcall_end_handler(const zend_extension *extension, zend_op_array *op_array TSRMLS_DC);
593 if (ptr && ptr->op_array) {
594 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);
944 static void zend_extension_statement_handler(const zend_extension *extension, zend_op_array *op_array TSRMLS_DC)
947 extension->statement_handler(op_array);
952 static void zend_extension_fcall_begin_handler(const zend_extension *extension, zend_op_array *op_array TSRMLS_DC)
955 extension->fcall_begin_handler(op_array);
960 static void zend_extension_fcall_end_handler(const zend_extension *extension, zend_op_array *op_array TSRMLS_D
1411 zend_brk_cont(int nest_levels, int array_offset, const zend_op_array *op_array, const zend_execute_data *execute_data TSRMLS_DC) argument
1565 i_create_execute_data_from_op_array(zend_op_array *op_array, zend_bool nested TSRMLS_DC) argument
1677 zend_create_execute_data_from_op_array(zend_op_array *op_array, zend_bool nested TSRMLS_DC) argument
[all...]
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.h65 ZEND_API zval *zend_generator_create_zval(zend_op_array *op_array TSRMLS_DC);
H A Dzend_closures.c246 if (ex->op_array == &closure->func.op_array) {
251 destroy_op_array(&closure->func.op_array TSRMLS_CC);
333 if (closure->func.type == ZEND_USER_FUNCTION && closure->func.op_array.static_variables) {
334 HashTable *static_variables = closure->func.op_array.static_variables;
385 closure->func.op_array.static_variables : NULL;
460 if (closure->func.op_array.static_variables) {
461 HashTable *static_variables = closure->func.op_array.static_variables;
463 ALLOC_HASHTABLE(closure->func.op_array.static_variables);
464 zend_hash_init(closure->func.op_array
[all...]
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...]
H A Dzend_compile.h39 #define INC_BPC(op_array) if (op_array->fn_flags & ZEND_ACC_INTERACTIVE) { (CG(context).backpatch_count++); }
40 #define DEC_BPC(op_array) if (op_array->fn_flags & ZEND_ACC_INTERACTIVE) { (CG(context).backpatch_count--); }
94 zend_op_array *op_array; member in union:_znode::__anon1
163 /* op_array flags */
350 zend_op_array op_array; member in union:_zend_function
387 zend_op_array *op_array; member in struct:_zend_execute_data
442 ZEND_API const char* zend_get_compiled_variable_name(const zend_op_array *op_array, zend_uint var, int* name_len);
527 ZEND_API int do_bind_function(const zend_op_array *op_array, zend_o
[all...]
/PHP_5_5/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_5/ext/opcache/Optimizer/
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 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 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;
136 if (op_array->has_finally_block) {
148 while (ZEND_OP1(opline).opline_num < op_array
[all...]
H A Dpass5.c2 zend_block_optimization(op_array TSRMLS_CC);
H A Dpass9.c7 optimize_temporary_variables(op_array); variable
H A Dpass1_5.c11 zend_op *opline = op_array->opcodes;
12 zend_op *end = opline + op_array->last;
63 replace_tmp_by_const(op_array, opline + 1, tv, &result TSRMLS_CC);
98 replace_tmp_by_const(op_array, opline + 1, tv, &res TSRMLS_CC);
132 replace_tmp_by_const(op_array, opline + 1, tv, &result TSRMLS_CC);
202 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 */
220 EG(active_op_array) = op_array;
226 replace_tmp_by_const(op_array, opline, tv, &offset TSRMLS_CC);
245 replace_tmp_by_const(op_array, opline, tv, &c TSRMLS_CC);
260 op_array
[all...]
H A Dzend_optimizer.h47 void zend_optimizer(zend_op_array *op_array TSRMLS_DC);
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 Dzend_optimizer.c33 static int zend_optimizer_lookup_cv(zend_op_array *op_array, char* name, int name_len) argument
38 while (i < op_array->last_var) {
39 if (op_array->vars[i].name == name ||
40 (op_array->vars[i].hash_value == hash_value &&
41 op_array->vars[i].name_len == name_len &&
42 memcmp(op_array->vars[i].name, name, name_len) == 0)) {
47 i = op_array->last_var;
48 op_array->last_var++;
49 op_array->vars = erealloc(op_array
62 zend_optimizer_add_literal(zend_op_array *op_array, const zval *zv TSRMLS_DC) argument
114 update_op1_const(zend_op_array *op_array, zend_op *opline, zval *val TSRMLS_DC) argument
156 update_op2_const(zend_op_array *op_array, zend_op *opline, zval *val TSRMLS_DC) argument
275 replace_tmp_by_const(zend_op_array *op_array, zend_op *opline, zend_uint var, zval *val TSRMLS_DC) argument
[all...]
/PHP_5_5/ext/opcache/
H A Dzend_persist.c179 static void zend_persist_op_array_ex(zend_op_array *op_array, zend_persistent_script* main_persistent_script TSRMLS_DC) argument
189 if (op_array->type != ZEND_USER_FUNCTION) {
194 op_array->size = op_array->last;
197 if (--(*op_array->refcount) == 0) {
198 efree(op_array->refcount);
200 op_array->refcount = NULL;
202 if (op_array->filename) {
204 op_array->filename = zend_accel_memdup(op_array
[all...]
H A Dzend_persist_calc.c130 static uint zend_persist_op_array_calc(zend_op_array *op_array TSRMLS_DC)
134 if (op_array->type != ZEND_USER_FUNCTION) {
138 if (op_array->filename) {
139 ADD_DUP_SIZE(op_array->filename, strlen(op_array->filename) + 1);
143 if (op_array->literals && !zend_shared_alloc_get_xlat_entry(op_array->literals)) {
144 zend_literal *p = op_array->literals;
145 zend_literal *end = p + op_array->last_literal;
146 ADD_DUP_SIZE(op_array
[all...]
H A Dzend_accelerator_util_funcs.c48 static int zend_prepare_function_for_execution(zend_op_array *op_array);
56 if (function->op_array.static_variables) {
58 efree(function->op_array.static_variables);
59 function->op_array.static_variables = NULL;
468 /* we use refcount to show that op_array is referenced from several places */
601 static int zend_prepare_function_for_execution(zend_op_array *op_array) argument
603 HashTable *shared_statics = op_array->static_variables;
606 op_array->refcount = &zend_accel_refcount;
607 (*op_array->refcount) = ZEND_PROTECTED_REFCOUNT;
611 ALLOC_HASHTABLE(op_array
909 zend_do_delayed_early_binding(zend_op_array *op_array, zend_uint early_binding TSRMLS_DC) argument
933 zend_op_array *op_array; local
[all...]

Completed in 79 milliseconds

12