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

123

/PHP_TRUNK/Zend/
H A Dzend_dtrace.h34 ZEND_API void (*zend_dtrace_execute)(zend_op_array *op_array);
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.h31 ZEND_API void zend_create_closure(zval *res, zend_function *op_array, zend_class_entry *scope, zend_class_entry *called_scope, zval *this_ptr);
H A Dzend_closures.c132 my_function.op_array.run_time_cache = emalloc(my_function.op_array.cache_size);
133 memset(my_function.op_array.run_time_cache, 0, my_function.op_array.cache_size);
141 efree(my_function.op_array.run_time_cache);
199 if (ZEND_USER_CODE(closure->func.type) && (closure->func.common.scope != new_closure->func.common.scope || (closure->func.op_array.fn_flags & ZEND_ACC_NO_RT_ARENA))) {
200 new_closure->func.op_array.run_time_cache = emalloc(new_closure->func.op_array.cache_size);
201 memset(new_closure->func.op_array.run_time_cache, 0, new_closure->func.op_array
[all...]
H A Dzend_compile.c57 zend_op_array *op_array = CG(active_op_array); local
58 Z_CACHE_SLOT(op_array->literals[literal]) = op_array->cache_size;
59 op_array->cache_size += sizeof(void*);
65 zend_op_array *op_array = CG(active_op_array); local
66 Z_CACHE_SLOT(op_array->literals[literal]) = op_array->cache_size;
67 op_array->cache_size += POLYMORPHIC_CACHE_SLOT_SIZE * sizeof(void*);
367 static uint32_t get_temporary_variable(zend_op_array *op_array) /* {{{ */ argument
369 return (uint32_t)op_array
373 lookup_cv(zend_op_array *op_array, zend_string* name) argument
399 zend_del_literal(zend_op_array *op_array, int n) argument
411 zend_insert_literal(zend_op_array *op_array, zval *zv, int literal_position) argument
428 zend_add_literal(zend_op_array *op_array, zval *zv) argument
443 zend_add_literal_string(zend_op_array *op_array, zend_string **str) argument
454 zend_add_func_name_literal(zend_op_array *op_array, zend_string *name) argument
467 zend_add_ns_func_name_literal(zend_op_array *op_array, zend_string *name) argument
490 zend_add_class_name_literal(zend_op_array *op_array, zend_string *name) argument
505 zend_add_const_name_literal(zend_op_array *op_array, zend_string *name, zend_bool unqualified) argument
877 zend_resolve_goto_label(zend_op_array *op_array, zend_op *opline, int pass2) argument
957 zend_op_array *op_array = CG(active_op_array); local
977 zend_op_array *op_array = &function->op_array; local
996 do_bind_function(const zend_op_array *op_array, const zend_op *opline, HashTable *function_table, zend_bool compile_time) argument
1037 do_bind_class(const zend_op_array* op_array, const zend_op *opline, HashTable *class_table, zend_bool compile_time) argument
1074 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
1191 zend_do_delayed_early_binding(const zend_op_array *op_array) argument
1698 zend_get_compiled_variable_name(const zend_op_array *op_array, uint32_t var) argument
4274 zend_op_array *op_array = CG(active_op_array); local
4467 zend_begin_method_decl(zend_op_array *op_array, zend_string *name, zend_bool has_body) argument
4637 zend_begin_func_decl(znode *result, zend_op_array *op_array, zend_ast_decl *decl) argument
4677 zend_hash_update_ptr(CG(function_table), key, op_array); local
4694 zend_op_array *op_array = zend_arena_alloc(&CG(arena), sizeof(zend_op_array)); local
5541 zend_op_array *op_array = CG(active_op_array); local
[all...]
H A Dzend_compile.h265 /* op_array has finally blocks */
274 /* op_array uses strict mode types */
416 zend_op_array op_array; member in union:_zend_function
431 zend_function *func; /* executed op_array */
516 #define ZEND_OPLINE_NUM_TO_OFFSET(op_array, opline, opline_num) \
517 ((char*)&(op_array)->opcodes[opline_num] - (char*)(opline))
522 #define ZEND_OFFSET_TO_OPLINE_NUM(op_array, base, offset) \
523 (ZEND_OFFSET_TO_OPLINE(base, offset) - op_array->opcodes)
532 # define ZEND_PASS_TWO_UPDATE_JMP_TARGET(op_array, opline, node) do { \
533 (node).jmp_addr = (op_array)
[all...]
H A Dzend_execute.c64 static void zend_extension_statement_handler(const zend_extension *extension, zend_op_array *op_array);
65 static void zend_extension_fcall_begin_handler(const zend_extension *extension, zend_op_array *op_array);
66 static void zend_extension_fcall_end_handler(const zend_extension *extension, zend_op_array *op_array);
121 #define CV_DEF_OF(i) (EX(func)->op_array.vars[i])
612 ZSTR_VAL(ptr->func->op_array.filename), ptr->opline->lineno);
864 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, ZSTR_VAL(ptr->func->op_array.filename), ptr->opline->lineno);
890 ZSTR_VAL(zf->op_array.filename), EG(current_execute_data)->opline->lineno);
1442 static void zend_extension_statement_handler(const zend_extension *extension, zend_op_array *op_array) argument
1445 extension->statement_handler(op_array);
1450 static void zend_extension_fcall_begin_handler(const zend_extension *extension, zend_op_array *op_array) argument
1458 zend_extension_fcall_end_handler(const zend_extension *extension, zend_op_array *op_array) argument
1942 zend_brk_cont(int nest_levels, int array_offset, const zend_op_array *op_array, const zend_execute_data *execute_data) argument
2075 i_init_func_execute_data(zend_execute_data *execute_data, zend_op_array *op_array, zval *return_value, int check_this) argument
2148 i_init_code_execute_data(zend_execute_data *execute_data, zend_op_array *op_array, zval *return_value) argument
2175 i_init_execute_data(zend_execute_data *execute_data, zend_op_array *op_array, zval *return_value) argument
2257 zend_create_generator_execute_data(zend_execute_data *call, zend_op_array *op_array, zval *return_value) argument
2315 zend_init_execute_data(zend_execute_data *execute_data, zend_op_array *op_array, zval *return_value) argument
[all...]
H A Dzend_opcode.c32 static void zend_extension_op_array_ctor_handler(zend_extension *extension, zend_op_array *op_array) argument
35 extension->op_array_ctor(op_array);
39 static void zend_extension_op_array_dtor_handler(zend_extension *extension, zend_op_array *op_array) argument
42 extension->op_array_dtor(op_array);
46 static void op_array_alloc_ops(zend_op_array *op_array, uint32_t 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) argument
53 op_array->type = type;
54 op_array
133 zend_cleanup_op_array_data(zend_op_array *op_array) argument
338 destroy_op_array(zend_op_array *op_array) argument
426 get_next_op(zend_op_array *op_array) argument
443 get_next_op_number(zend_op_array *op_array) argument
448 get_next_brk_cont_element(zend_op_array *op_array) argument
455 zend_update_extended_info(zend_op_array *op_array) argument
478 zend_extension_op_array_handler(zend_extension *extension, zend_op_array *op_array) argument
485 zend_check_finally_breakout(zend_op_array *op_array, uint32_t op_num, uint32_t dst_num) argument
510 zend_adjust_fast_call(zend_op_array *op_array, uint32_t fast_call, uint32_t start, uint32_t end) argument
531 zend_resolve_fast_call(zend_op_array *op_array, uint32_t fast_call, uint32_t op_num) argument
553 zend_resolve_finally_call(zend_op_array *op_array, uint32_t op_num, uint32_t dst_num) argument
642 zend_resolve_finally_ret(zend_op_array *op_array, uint32_t op_num) argument
670 zend_get_brk_cont_target(const zend_op_array *op_array, const zend_op *opline) argument
684 zend_resolve_finally_calls(zend_op_array *op_array) argument
725 pass_two(zend_op_array *op_array) argument
[all...]
/PHP_TRUNK/ext/opcache/Optimizer/
H A Doptimize_func_calls.c34 Z_TYPE(op_array->literals[(opline)->op2.constant]) == IS_STRING)
41 void optimize_func_calls(zend_op_array *op_array, zend_optimizer_ctx *ctx) argument
43 zend_op *opline = op_array->opcodes;
44 zend_op *end = opline + op_array->last;
49 if (op_array->last < 2) {
54 call_stack = zend_arena_calloc(&ctx->arena, op_array->last / 2, sizeof(optimizer_call_info));
61 zval *function_name = &op_array->literals[opline->op2.constant + 1];
88 Z_CACHE_SLOT(op_array->literals[fcall->op2.constant + 1]) = Z_CACHE_SLOT(op_array->literals[fcall->op2.constant]);
95 Z_CACHE_SLOT(op_array
[all...]
H A Dzend_optimizer_internal.h94 op.constant = zend_optimizer_add_literal(op_array, &_c); \
100 op.constant = zend_optimizer_add_literal(op_array, &_c); \
113 int zend_optimizer_add_literal(zend_op_array *op_array, zval *zv);
117 int zend_optimizer_lookup_cv(zend_op_array *op_array, zend_string* name);
118 void zend_optimizer_update_op1_const(zend_op_array *op_array,
121 void zend_optimizer_update_op2_const(zend_op_array *op_array,
124 int zend_optimizer_replace_by_const(zend_op_array *op_array,
130 void zend_optimizer_pass1(zend_op_array *op_array, zend_optimizer_ctx *ctx);
131 void zend_optimizer_pass2(zend_op_array *op_array);
132 void zend_optimizer_pass3(zend_op_array *op_array);
[all...]
H A Doptimize_temp_vars_5.c41 void optimize_temporary_variables(zend_op_array *op_array, zend_optimizer_ctx *ctx) argument
43 int T = op_array->T;
44 int offset = op_array->last_var;
61 end = op_array->opcodes;
62 opline = &op_array->opcodes[op_array->last - 1];
75 end = op_array->opcodes;
76 opline = &op_array->opcodes[op_array->last - 1];
191 op_array
[all...]
H A Dnop_removal.c34 void zend_optimizer_nop_removal(zend_op_array *op_array) argument
42 shiftlist = (uint32_t *)DO_ALLOCA(sizeof(uint32_t) * op_array->last);
44 end = op_array->opcodes + op_array->last;
45 for (opline = op_array->opcodes; opline < end; opline++) {
58 zend_op *target = op_array->opcodes + ZEND_OP1(opline).opline_num - 1;
74 op_array->opcodes[new_count] = *opline;
81 op_array->last = new_count;
82 end = op_array->opcodes + op_array
[all...]
H A Dpass2.c36 void zend_optimizer_pass2(zend_op_array *op_array) argument
39 zend_op *end = op_array->opcodes + op_array->last;
41 opline = op_array->opcodes;
H A Dpass3.c42 if (jmp_hitlist[i] == ZEND_OP1(&op_array->opcodes[target]).opline_num) { \
46 jmp_hitlist[jmp_hitlist_count++] = ZEND_OP1(&op_array->opcodes[target]).opline_num;
50 if (jmp_hitlist[i] == ZEND_OP2(&op_array->opcodes[target]).opline_num) { \
54 jmp_hitlist[jmp_hitlist_count++] = ZEND_OP2(&op_array->opcodes[target]).opline_num;
56 void zend_optimizer_pass3(zend_op_array *op_array) argument
59 zend_op *end = op_array->opcodes + op_array->last;
66 jmp_hitlist = (uint32_t *)DO_ALLOCA(sizeof(uint32_t)*op_array->last);
67 opline = op_array->opcodes;
165 if (op_array
[all...]
H A Dblock_pass.c70 # define BLOCK_REF(b) b?op_array->opcodes-b->start_opline:-1
107 #define START_BLOCK_OP(opno) blocks[opno].start_opline = &op_array->opcodes[opno]; blocks[opno].start_opline_no = opno; blocks[opno].access = 1
109 /* find code blocks in op_array
112 static int find_code_blocks(zend_op_array *op_array, zend_cfg *cfg, zend_optimizer_ctx *ctx) argument
115 zend_op *end = op_array->opcodes + op_array->last;
120 blocks = cfg->blocks = zend_arena_calloc(&ctx->arena, op_array->last + 2, sizeof(zend_code_block));
121 opline = op_array->opcodes;
188 if (op_array->last_try_catch) {
190 cfg->try = zend_arena_calloc(&ctx->arena, op_array
506 zend_rebuild_access_path(zend_cfg *cfg, zend_op_array *op_array, int find_start, zend_optimizer_ctx *ctx) argument
608 zend_optimize_block(zend_code_block *block, zend_op_array *op_array, char *used_ext, zend_cfg *cfg, zend_optimizer_ctx *ctx) argument
1135 assemble_code_blocks(zend_cfg *cfg, zend_op_array *op_array) argument
1245 zend_jmp_optimization(zend_code_block *block, zend_op_array *op_array, zend_code_block *blocks, zend_cfg *cfg, zend_optimizer_ctx *ctx) argument
1755 zend_t_usage(zend_code_block *block, zend_op_array *op_array, char *used_ext, zend_optimizer_ctx *ctx) argument
1904 optimize_cfg(zend_op_array *op_array, zend_optimizer_ctx *ctx) argument
[all...]
H A Dcompact_literals.c87 zend_op_array *op_array)
93 if (Z_TYPE(op_array->literals[constant]) == IS_STRING &&
95 LITERAL_INFO_OBJ(constant, kind, 1, slots, related, op_array->this_var);
108 zend_op_array *op_array)
117 void zend_optimizer_compact_literals(zend_op_array *op_array, zend_optimizer_ctx *ctx) argument
130 if (op_array->last_literal) {
132 info = (literal_info*)zend_arena_calloc(&ctx->arena, op_array->last_literal, sizeof(literal_info));
135 opline = op_array->opcodes;
136 end = opline + op_array->last;
156 op_array);
80 optimizer_literal_obj_info(literal_info *info, zend_uchar op_type, znode_op op, int constant, uint32_t kind, uint32_t slots, uint32_t related, zend_op_array *op_array) argument
101 optimizer_literal_class_info(literal_info *info, zend_uchar op_type, znode_op op, int constant, uint32_t kind, uint32_t slots, uint32_t related, zend_op_array *op_array) argument
[all...]
H A Dpass1_5.c40 void zend_optimizer_pass1(zend_op_array *op_array, zend_optimizer_ctx *ctx) argument
43 zend_op *opline = op_array->opcodes;
44 zend_op *end = opline + op_array->last;
45 zend_bool collect_constants = (op_array == &ctx->script->main_op_array);
95 if (zend_optimizer_replace_by_const(op_array, opline + 1, IS_TMP_VAR, tv, &result)) {
132 if (zend_optimizer_replace_by_const(op_array, opline + 1, type, tv, &res)) {
160 if (zend_optimizer_replace_by_const(op_array, opline + 1, IS_TMP_VAR, tv, &result)) {
233 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 */
252 fake_execute_data.func = (zend_function*)op_array;
257 if (zend_optimizer_replace_by_const(op_array, oplin
[all...]
H A Dzend_optimizer.c58 int zend_optimizer_lookup_cv(zend_op_array *op_array, zend_string* name) argument
63 while (i < op_array->last_var) {
64 if (op_array->vars[i] == name ||
65 (ZSTR_H(op_array->vars[i]) == hash_value &&
66 ZSTR_LEN(op_array->vars[i]) == ZSTR_LEN(name) &&
67 memcmp(ZSTR_VAL(op_array->vars[i]), ZSTR_VAL(name), ZSTR_LEN(name)) == 0)) {
72 i = op_array->last_var;
73 op_array->last_var++;
74 op_array->vars = erealloc(op_array
103 zend_optimizer_add_literal(zend_op_array *op_array, zval *zv) argument
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
410 zend_optimize(zend_op_array *op_array, zend_optimizer_ctx *ctx) argument
482 zend_accel_optimize(zend_op_array *op_array, zend_optimizer_ctx *ctx) argument
576 zend_accel_adjust_fcall_stack_size(zend_op_array *op_array, zend_optimizer_ctx *ctx) argument
601 zend_op_array *op_array; local
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_opcode.h34 zend_op_array *op_array; member in struct:_phpdbg_oplog_entry
H A Dphpdbg_opcode.c152 char *decode = phpdbg_decode_opline(&execute_data->func->op_array, opline, vars);
161 execute_data->func->op_array.filename ? ZSTR_VAL(execute_data->func->op_array.filename) : "unknown");
170 execute_data->func->op_array.filename ? ZSTR_VAL(execute_data->func->op_array.filename) : "unknown");
181 cur->op_array = &execute_data->func->op_array;
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,
68 op_array->line_end,
71 op_array->filename ? ZSTR_VAL(op_array->filename) : "unknown",
73 op_array
[all...]
/PHP_TRUNK/ext/opcache/
H A Dzend_persist.c412 static void zend_persist_op_array_ex(zend_op_array *op_array, zend_persistent_script* main_persistent_script) argument
418 if (op_array->type != ZEND_USER_FUNCTION) {
422 if (op_array->refcount && --(*op_array->refcount) == 0) {
423 efree(op_array->refcount);
425 op_array->refcount = NULL;
433 fake_execute_data.func = (zend_function*)op_array;
441 if (op_array->static_variables) {
442 HashTable *stored = zend_shared_alloc_get_xlat_entry(op_array->static_variables);
445 op_array
647 zend_op_array *op_array = Z_PTR_P(zv); local
[all...]
H A Dzend_persist_calc.c153 static void zend_persist_op_array_calc_ex(zend_op_array *op_array) argument
155 if (op_array->type != ZEND_USER_FUNCTION) {
159 if (op_array->static_variables) {
160 if (!zend_shared_alloc_get_xlat_entry(op_array->static_variables)) {
161 HashTable *old = op_array->static_variables;
163 ADD_DUP_SIZE(op_array->static_variables, sizeof(HashTable));
164 zend_hash_persist_calc(op_array->static_variables, zend_persist_zval_calc);
165 zend_shared_alloc_register_xlat_entry(old, op_array->static_variables);
169 if (zend_shared_alloc_get_xlat_entry(op_array->opcodes)) {
171 if (op_array
256 zend_op_array *op_array = Z_PTR_P(zv); local
[all...]
H A Dzend_accelerator_util_funcs.c50 if (function->op_array.static_variables) {
51 if (!(GC_FLAGS(function->op_array.static_variables) & IS_ARRAY_IMMUTABLE)) {
52 if (--GC_REFCOUNT(function->op_array.static_variables) == 0) {
53 FREE_HASHTABLE(function->op_array.static_variables);
56 function->op_array.static_variables = NULL;
554 zend_set_compiled_filename(function1->op_array.filename);
555 CG(zend_lineno) = function1->op_array.opcodes[0].lineno;
557 && function2->op_array.last > 0) {
560 ZSTR_VAL(function2->op_array.filename),
561 (int)function2->op_array
678 zend_op_array *op_array; local
[all...]
H A Dzend_file_cache.c342 static void zend_file_cache_serialize_op_array(zend_op_array *op_array, argument
347 if (op_array->static_variables && !IS_SERIALIZED(op_array->static_variables)) {
350 SERIALIZE_PTR(op_array->static_variables);
351 ht = op_array->static_variables;
356 if (op_array->literals && !IS_SERIALIZED(op_array->literals)) {
359 SERIALIZE_PTR(op_array->literals);
360 p = op_array->literals;
362 end = p + op_array
475 zend_op_array *op_array; local
874 zend_file_cache_unserialize_op_array(zend_op_array *op_array, zend_persistent_script *script, void *buf) argument
997 zend_op_array *op_array; local
[all...]

Completed in 29 milliseconds

123