Home
last modified time | relevance | path

Searched refs:op_array (Results 1 – 25 of 45) sorted by relevance

12

/PHP-5.5/Zend/
H A Dzend_opcode.c48 op_array->opcodes = erealloc(op_array->opcodes, size * sizeof(zend_op)); in op_array_alloc_ops()
53 op_array->type = type; in init_op_array()
64 op_array->last = 0; in init_op_array()
68 op_array->last_var = 0; in init_op_array()
69 op_array->vars = NULL; in init_op_array()
71 op_array->T = 0; in init_op_array()
458op_array->brk_cont_array = erealloc(op_array->brk_cont_array, sizeof(zend_brk_cont_element)*op_arr… in get_next_brk_cont_element()
459 return &op_array->brk_cont_array[op_array->last_brk_cont-1]; in get_next_brk_cont_element()
464 zend_op *opline = op_array->opcodes, *end=opline+op_array->last; in zend_update_extended_info()
742 op_array->opcodes = (zend_op *) erealloc(op_array->opcodes, sizeof(zend_op)*op_array->last); in pass_two()
[all …]
H A Dzend_generators.c35 zend_op_array *op_array = execute_data->op_array; in zend_generator_cleanup_unfinished_execution() local
113 zend_op_array *op_array = execute_data->op_array; in zend_generator_close() local
158 destroy_op_array(op_array TSRMLS_CC); in zend_generator_close()
159 efree(op_array); in zend_generator_close()
263 if (op_array->fn_flags & ZEND_ACC_CLOSURE) { in zend_generator_create_zval()
265 *op_array_copy = *op_array; in zend_generator_create_zval()
267 (*op_array->refcount)++; in zend_generator_create_zval()
268 op_array->run_time_cache = NULL; in zend_generator_create_zval()
269 if (op_array->static_variables) { in zend_generator_create_zval()
277 op_array->static_variables TSRMLS_CC, in zend_generator_create_zval()
[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_closures.c246 if (ex->op_array == &closure->func.op_array) { in zend_closure_free_storage()
251 destroy_op_array(&closure->func.op_array TSRMLS_CC); in zend_closure_free_storage()
333 if (closure->func.type == ZEND_USER_FUNCTION && closure->func.op_array.static_variables) { in zend_closure_get_debug_info()
334 HashTable *static_variables = closure->func.op_array.static_variables; in zend_closure_get_debug_info()
385 closure->func.op_array.static_variables : NULL; in zend_closure_get_gc()
461 if (closure->func.op_array.static_variables) { in zend_create_closure()
462 HashTable *static_variables = closure->func.op_array.static_variables; in zend_create_closure()
464 ALLOC_HASHTABLE(closure->func.op_array.static_variables); in zend_create_closure()
465 …zend_hash_init(closure->func.op_array.static_variables, zend_hash_num_elements(static_variables), … in zend_create_closure()
468 closure->func.op_array.run_time_cache = NULL; in zend_create_closure()
[all …]
H A Dzend_execute.c593 if (ptr && ptr->op_array) { in zend_verify_arg_error()
947 extension->statement_handler(op_array); in zend_extension_statement_handler()
955 extension->fcall_begin_handler(op_array); in zend_extension_fcall_begin_handler()
963 extension->fcall_end_handler(op_array); in zend_extension_fcall_end_handler()
1507 zval ***end = cv + EX(op_array)->last_var; in i_free_compiled_variables()
1639 EX(op_array) = op_array; in i_create_execute_data_from_op_array()
1651 if (!op_array->run_time_cache && op_array->last_cache_slot) { in i_create_execute_data_from_op_array()
1652 op_array->run_time_cache = ecalloc(op_array->last_cache_slot, sizeof(void*)); in i_create_execute_data_from_op_array()
1655 if (op_array->this_var != -1 && EG(This)) { in i_create_execute_data_from_op_array()
1658 …EX_CV(op_array->this_var) = (zval **) EX_CV_NUM(execute_data, op_array->last_var + op_array->this_… in i_create_execute_data_from_op_array()
[all …]
H A Dzend_vm_execute.skl39 ZEND_API void zend_{%EXECUTOR_NAME%}(zend_op_array *op_array TSRMLS_DC)
44 zend_{%EXECUTOR_NAME%}_ex(i_create_execute_data_from_op_array(op_array, 0 TSRMLS_CC) TSRMLS_CC);
H A Dzend_compile.h39 #define INC_BPC(op_array) if (op_array->fn_flags & ZEND_ACC_INTERACTIVE) { (CG(context).backpatch_c… argument
40 #define DEC_BPC(op_array) if (op_array->fn_flags & ZEND_ACC_INTERACTIVE) { (CG(context).backpatch_c… argument
94 zend_op_array *op_array; member
350 zend_op_array op_array; member
387 zend_op_array *op_array; member
661 ZEND_API void destroy_op_array(zend_op_array *op_array TSRMLS_DC);
685 zend_op *get_next_op(zend_op_array *op_array TSRMLS_DC);
687 int get_next_op_number(zend_op_array *op_array);
689 void print_op_array(zend_op_array *op_array, int optimizations);
690 ZEND_API int pass_two(zend_op_array *op_array TSRMLS_DC);
[all …]
H A Dzend_dtrace.c29 if (EG(current_execute_data) && EG(current_execute_data)->op_array) { in dtrace_get_executed_filename()
30 return EG(current_execute_data)->op_array->filename; in dtrace_get_executed_filename()
H A Dzend_compile.c311 op_array->last_var++; in lookup_cv()
387 &op_array->literals[op_array->last_literal - 1].constant == zv && in zend_add_func_name_literal()
388 op_array->literals[op_array->last_literal - 1].cache_slot == -1) { in zend_add_func_name_literal()
414 &op_array->literals[op_array->last_literal - 1].constant == zv && in zend_add_ns_func_name_literal()
415 op_array->literals[op_array->last_literal - 1].cache_slot == -1) { in zend_add_ns_func_name_literal()
447 &op_array->literals[op_array->last_literal - 1].constant == zv && in zend_add_class_name_literal()
448 op_array->literals[op_array->last_literal - 1].cache_slot == -1) { in zend_add_class_name_literal()
481 &op_array->literals[op_array->last_literal - 1].constant == zv && in zend_add_const_name_literal()
482 op_array->literals[op_array->last_literal - 1].cache_slot == -1) { in zend_add_const_name_literal()
2383 DEC_BPC(op_array); in zend_resolve_goto_label()
[all …]
/PHP-5.5/ext/opcache/Optimizer/
H A Dzend_optimizer.c47 i = op_array->last_var; in zend_optimizer_lookup_cv()
48 op_array->last_var++; in zend_optimizer_lookup_cv()
49 op_array->vars = erealloc(op_array->vars, op_array->last_var * sizeof(zend_compiled_variable)); in zend_optimizer_lookup_cv()
65 op_array->last_literal++; in zend_optimizer_add_literal()
131 op_array->literals[opline->op1.constant].cache_slot = op_array->last_cache_slot++; in update_op1_const()
204 op_array->literals[opline->op2.constant].cache_slot = op_array->last_cache_slot; in update_op2_const()
219 op_array->literals[opline->op2.constant].cache_slot = op_array->last_cache_slot; in update_op2_const()
282 zend_op *end = op_array->opcodes + op_array->last; in replace_tmp_by_const()
299 if (op_array->brk_cont_array[brk].start <= (opline - op_array->opcodes) && in replace_tmp_by_const()
300 op_array->brk_cont_array[brk].brk > (opline - op_array->opcodes)) { in replace_tmp_by_const()
[all …]
H A Dnop_removal.c5 static void nop_removal(zend_op_array *op_array) in nop_removal() argument
15 end = op_array->opcodes + op_array->last; in nop_removal()
54 op_array->last = new_count; in nop_removal()
55 end = op_array->opcodes + op_array->last; in nop_removal()
96 op_array->brk_cont_array[j].brk -= shiftlist[op_array->brk_cont_array[j].brk]; in nop_removal()
97 op_array->brk_cont_array[j].cont -= shiftlist[op_array->brk_cont_array[j].cont]; in nop_removal()
98 op_array->brk_cont_array[j].start -= shiftlist[op_array->brk_cont_array[j].start]; in nop_removal()
103 op_array->try_catch_array[j].try_op -= shiftlist[op_array->try_catch_array[j].try_op]; in nop_removal()
104 op_array->try_catch_array[j].catch_op -= shiftlist[op_array->try_catch_array[j].catch_op]; in nop_removal()
107 op_array->try_catch_array[j].finally_op -= shiftlist[op_array->try_catch_array[j].finally_op]; in nop_removal()
[all …]
H A Dpass3.c29 zend_op *end = op_array->opcodes + op_array->last;
37 opline = op_array->opcodes;
136 if (op_array->has_finally_block) {
148 while (ZEND_OP1(opline).opline_num < op_array->last
163 if (op_array->has_finally_block) {
170 if (op_array->opcodes[target].opcode == ZEND_JMP) {
182 if (op_array->has_finally_block) {
243 if (op_array->has_finally_block) {
262 SAME_VAR(op_array->opcodes[target].op1, T)) {
386 if (op_array->has_finally_block) {
[all …]
H A Dblock_pass.c86 zend_op *end = op_array->opcodes + op_array->last; in find_code_blocks()
92 opline = op_array->opcodes; in find_code_blocks()
191 (op_array->opcodes[op_array->brk_cont_array[i].brk].opcode == ZEND_FREE || in find_code_blocks()
212 (op_array->opcodes[op_array->brk_cont_array[i].brk].opcode == ZEND_FREE || in find_code_blocks()
215 op_array->brk_cont_array[j] = op_array->brk_cont_array[i]; in find_code_blocks()
629 if (op_array->T) { in zend_optimize_block()
1182 if (op_array->T) { in zend_optimize_block()
1297 op_array->opcodes = erealloc(new_opcodes, op_array->last * sizeof(zend_op)); in assemble_code_blocks()
1633 if (op_array->T >= (zend_uint)op_array->last_var) { in zend_jmp_optimization()
1875 if (op_array->T == 0) { in zend_t_usage()
[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 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);
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->literals[(opline + 1)->op1.constant].cache_slot = op_array->last_cache_slot++;
274 if (opline != op_array->opcodes &&
318 use->op1.var = zend_optimizer_lookup_cv(op_array,
[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];
178 if (op_array->opcodes[jmp_to->brk].opcode == ZEND_FREE ||
179 op_array->opcodes[jmp_to->brk].opcode == ZEND_SWITCH_FREE
H A Dpass9.c7 optimize_temporary_variables(op_array);
H A Dpass5.c2 zend_block_optimization(op_array TSRMLS_CC);
H A Dpass10.c2 nop_removal(op_array);
H A Dzend_optimizer.h47 void zend_optimizer(zend_op_array *op_array TSRMLS_DC);
/PHP-5.5/ext/opcache/
H A Dzend_persist.c194 op_array->size = op_array->last;
202 if (op_array->filename) {
204 op_array->filename = zend_accel_memdup(op_array->filename, strlen(op_array->filename) + 1);
225 if (op_array->literals) {
233 op_array->literals = p;
389 if (op_array->scope) {
390 op_array->scope = zend_shared_alloc_get_xlat_entry(op_array->scope);
395 zend_accel_store(op_array->doc_comment, op_array->doc_comment_len + 1);
410 if (op_array->vars) {
423 if (op_array->scope && op_array->prototype) {
[all …]
H A Dzend_persist_calc.c138 if (op_array->filename) {
139 ADD_DUP_SIZE(op_array->filename, strlen(op_array->filename) + 1);
146 ADD_DUP_SIZE(op_array->literals, sizeof(zend_literal) * op_array->last_literal);
157 zend_op *end = op_array->opcodes + op_array->last;
159 ADD_DUP_SIZE(op_array->opcodes, sizeof(zend_op) * op_array->last);
170 ADD_DUP_SIZE(op_array->opcodes, sizeof(zend_op) * op_array->last);
175 ADD_DUP_SIZE(op_array->function_name, strlen(op_array->function_name) + 1);
182 ADD_DUP_SIZE(op_array->arg_info, sizeof(zend_arg_info) * op_array->num_args);
204 ADD_DUP_SIZE(op_array->doc_comment, op_array->doc_comment_len + 1);
211 if (op_array->vars && !zend_shared_alloc_get_xlat_entry(op_array->vars)) {
[all …]
H A Dzend_accelerator_util_funcs.c56 if (function->op_array.static_variables) { in zend_accel_destroy_zend_function()
58 efree(function->op_array.static_variables); in zend_accel_destroy_zend_function()
59 function->op_array.static_variables = NULL; in zend_accel_destroy_zend_function()
606 op_array->refcount = &zend_accel_refcount;
611 ALLOC_HASHTABLE(op_array->static_variables);
880 && function2->op_array.last > 0) {
883 function2->op_array.filename,
933 zend_op_array *op_array; local
936 *op_array = persistent_script->main_op_array;
951 zend_prepare_function_for_execution(op_array);
[all …]
H A DZendAccelerator.h368 # define ZEND_OP1_LITERAL(opline) (op_array)->literals[(opline)->op1.constant].constant
372 # define ZEND_OP2_LITERAL(opline) (op_array)->literals[(opline)->op2.constant].constant
373 # define ZEND_DONE_PASS_TWO(op_array) (((op_array)->fn_flags & ZEND_ACC_DONE_PASS_TWO) != 0) argument
392 # define ZEND_DONE_PASS_TWO(op_array) ((op_array)->done_pass_two != 0) argument
/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)) { in fpm_php_trace_dump()
100 long op_array = l; in fpm_php_trace_dump() local
102 if (0 > fpm_trace_get_strz(buf, buf_size, op_array + offsetof(zend_op_array, filename))) { in fpm_php_trace_dump()

Completed in 127 milliseconds

12