Searched defs:op_array (Results 1 - 25 of 26) sorted by relevance

12

/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 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 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/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/Zend/
H A Dzend_language_scanner.c558 zend_op_array *op_array = (zend_op_array *) emalloc(sizeof(zend_op_array)); local
572 retval = op_array; /* success oriented */
583 init_op_array(op_array, ZEND_USER_FUNCTION, INITIAL_OP_ARRAY_SIZE TSRMLS_CC);
585 CG(active_op_array) = op_array;
600 pass_two(op_array TSRMLS_CC);
603 efree(op_array);
720 zend_op_array *op_array = (zend_op_array *) emalloc(sizeof(zend_op_array)); local
728 efree(op_array);
741 efree(op_array);
747 init_op_array(op_array, ZEND_EVAL_COD
4351 zend_op_array *op_array = CG(active_op_array); local
[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.h40 #define INC_BPC(op_array) if (op_array->fn_flags & ZEND_ACC_INTERACTIVE) { (CG(context).backpatch_count++); }
41 #define DEC_BPC(op_array) if (op_array->fn_flags & ZEND_ACC_INTERACTIVE) { (CG(context).backpatch_count--); }
95 zend_op_array *op_array; member in union:_znode::__anon1
165 /* op_array flags */
356 zend_op_array op_array; member in union:_zend_function
399 zend_op_array *op_array; member in struct:_zend_execute_data
457 ZEND_API const char* zend_get_compiled_variable_name(const zend_op_array *op_array, zend_uint var, int* name_len);
542 ZEND_API int do_bind_function(const zend_op_array *op_array, zend_o
[all...]
H A Dzend_compile.c33 #define CONSTANT_EX(op_array, op) \
34 (op_array)->literals[op].constant
293 static zend_uint get_temporary_variable(zend_op_array *op_array) /* {{{ */ argument
295 return (zend_uint)(zend_uintptr_t)EX_TMP_VAR_NUM(0, (op_array->T)++);
299 static int lookup_cv(zend_op_array *op_array, char* name, int name_len, ulong hash TSRMLS_DC) /* {{{ */ argument
304 while (i < op_array->last_var) {
305 if (op_array->vars[i].name == name ||
306 (op_array->vars[i].hash_value == hash_value &&
307 op_array->vars[i].name_len == name_len &&
308 memcmp(op_array
327 zend_del_literal(zend_op_array *op_array, int n) argument
339 zend_insert_literal(zend_op_array *op_array, const zval *zv, int literal_position TSRMLS_DC) argument
356 zend_add_literal(zend_op_array *op_array, const zval *zv TSRMLS_DC) argument
373 zend_append_individual_literal(zend_op_array *op_array, const zval *zv TSRMLS_DC) argument
383 zend_add_func_name_literal(zend_op_array *op_array, const zval *zv TSRMLS_DC) argument
408 zend_add_ns_func_name_literal(zend_op_array *op_array, const zval *zv TSRMLS_DC) argument
446 zend_add_class_name_literal(zend_op_array *op_array, const zval *zv TSRMLS_DC) argument
480 zend_add_const_name_literal(zend_op_array *op_array, const zval *zv, int unqualified TSRMLS_DC) argument
1537 zend_op_array op_array; local
2387 zend_resolve_goto_label(zend_op_array *op_array, zend_op *opline, int pass2 TSRMLS_DC) argument
3089 zend_op_array *op_array = &function->op_array; local
4560 do_bind_function(const zend_op_array *op_array, zend_op *opline, HashTable *function_table, zend_bool compile_time) argument
4662 do_bind_class(const zend_op_array* op_array, const zend_op *opline, HashTable *class_table, zend_bool compile_time TSRMLS_DC) argument
4701 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
6993 zend_get_compiled_variable_name(const zend_op_array *op_array, zend_uint var, int* name_len) argument
[all...]
H A Dzend_vm_def.h1814 zend_op_array *op_array = EX(op_array); local
1822 zend_vm_stack_free((char*)execute_data - (ZEND_MM_ALIGNED_SIZE(sizeof(temp_variable)) * op_array->T) TSRMLS_CC);
1824 if ((op_array->fn_flags & ZEND_ACC_CLOSURE) && op_array->prototype) {
1825 zval_ptr_dtor((zval**)&op_array->prototype);
1838 EX(function_state).function = (zend_function *) EX(op_array);
1842 EG(active_op_array) = EX(op_array);
1844 destroy_op_array(op_array TSRMLS_CC);
1845 efree(op_array);
5415 zend_function *op_array; variable
5428 zend_create_closure(&EX_T(opline->result.var).tmp_var, (zend_function *) op_array, EG(called_scope), NULL TSRMLS_CC); variable
5430 zend_create_closure(&EX_T(opline->result.var).tmp_var, (zend_function *) op_array, EG(scope), EG(This) TSRMLS_CC); variable
[all...]
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);
603 if (ptr && ptr->op_array) {
604 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);
982 static void zend_extension_statement_handler(const zend_extension *extension, zend_op_array *op_array TSRMLS_DC)
985 extension->statement_handler(op_array);
990 static void zend_extension_fcall_begin_handler(const zend_extension *extension, zend_op_array *op_array TSRMLS_DC)
993 extension->fcall_begin_handler(op_array);
998 static void zend_extension_fcall_end_handler(const zend_extension *extension, zend_op_array *op_array TSRMLS_D
1453 zend_brk_cont(int nest_levels, int array_offset, const zend_op_array *op_array, const zend_execute_data *execute_data TSRMLS_DC) argument
1610 i_create_execute_data_from_op_array(zend_op_array *op_array, zend_bool nested TSRMLS_DC) argument
1723 zend_create_execute_data_from_op_array(zend_op_array *op_array, zend_bool nested TSRMLS_DC) argument
[all...]
/PHP_5_6/ext/opcache/
H A Dzend_accelerator_module.c759 zend_op_array *op_array = NULL; local
779 op_array = persistent_compile_file(&handle, ZEND_INCLUDE TSRMLS_CC);
785 if(op_array != NULL) {
786 destroy_op_array(op_array TSRMLS_CC);
787 efree(op_array);
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...]
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;
530 /* we use refcount to show that op_array is referenced from several places */
663 static int zend_prepare_function_for_execution(zend_op_array *op_array) argument
665 HashTable *shared_statics = op_array->static_variables;
668 op_array->refcount = &zend_accel_refcount;
669 (*op_array->refcount) = ZEND_PROTECTED_REFCOUNT;
673 ALLOC_HASHTABLE(op_array
971 zend_do_delayed_early_binding(zend_op_array *op_array, zend_uint early_binding TSRMLS_DC) argument
995 zend_op_array *op_array; local
[all...]
H A DZendAccelerator.c1298 zend_op_array *op_array; local
1390 /* Save the original values for the op_array, function table and class table */
1409 op_array = *op_array_p = accelerator_orig_compile_file(file_handle, type TSRMLS_CC);
1414 op_array = NULL;
1427 if (!op_array) {
1442 new_persistent_script->main_op_array = *op_array;
1444 efree(op_array); /* we have valid persistent_script, so it's safe to free op_array */
1640 zend_op_array *op_array; local
1655 persistent_script = compile_and_cache_file(file_handle, type, key, key_length, &op_array,
[all...]
/PHP_5_6/main/
H A Dmain.c2702 zend_op_array *op_array; local
2706 op_array = zend_compile_file(file, ZEND_INCLUDE TSRMLS_CC);
2709 if (op_array) {
2710 destroy_op_array(op_array TSRMLS_CC);
2711 efree(op_array);
/PHP_5_6/ext/reflection/
H A Dphp_reflection.c677 static zend_op* _get_recv_op(zend_op_array *op_array, zend_uint offset) argument
679 zend_op *op = op_array->opcodes;
680 zend_op *end = op + op_array->last;
805 if (fptr->type != ZEND_USER_FUNCTION || !fptr->op_array.static_variables) {
809 static_variables = fptr->op_array.static_variables;
841 if (fptr->type == ZEND_USER_FUNCTION && fptr->op_array.doc_comment) {
842 string_printf(str, "%s%s\n", indent, fptr->op_array.doc_comment);
911 if (fptr->op_array.fn_flags & ZEND_ACC_RETURN_REFERENCE) {
918 fptr->op_array.filename,
919 fptr->op_array
[all...]
/PHP_5_6/sapi/phpdbg/
H A Dphpdbg_info.c359 zend_op_array *op_array = &((*pzf)->op_array); local
363 op_array->function_name ? op_array->function_name : "{main}",
364 op_array->filename ? op_array->filename : "(no source code)",
365 op_array->line_start);
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.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 54 milliseconds

12