From f2df6a4a3ee7d1cff29dfc3326b50eb9d2818a05 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 15 Sep 2010 07:38:52 +0000 Subject: - Improved memory usage . zend_function.pass_rest_by_reference is replaced by ZEND_ACC_PASS_REST_BY_REFERENCE in zend_function.fn_flags . zend_function.return_reference is replaced by ZEND_ACC_RETURN_REFERENCE in zend_function.fn_flags . zend_arg_info.required_num_args removed. it was needed only for internal functions. Now the first arg_info for internal function (which has special meaning) is represented by zend_internal_function_info structure. . zend_op_array.size, size_var, size_literal, current_brk_cont, backpatch_count moved into CG(context), because they are used only during compilation. . zend_op_array.start_op is moved into EG(start_op), because it's used only for 'interactive' execution of single top-level op-array. . zend_op_array.done_pass_two is replaced by ZEND_ACC_DONE_PASS_TWO in zend_op_array.fn_flags. . op_array.vars array is trimmed (reallocated) during pass_two. . zend_class_entry.constants_updated is replaced by ZEND_ACC_CONSTANTS_UPDATED in zend_class_entry.ce_flags . the size of zend_class_entry is reduced by sharing the same memory space by different information for internal and user classes. See zend_class_inttry.info union. --- Zend/zend_globals.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Zend/zend_globals.h') diff --git a/Zend/zend_globals.h b/Zend/zend_globals.h index dfc8075bdd..c66ef64c4d 100644 --- a/Zend/zend_globals.h +++ b/Zend/zend_globals.h @@ -139,8 +139,8 @@ struct _zend_compiler_globals { zend_bool in_namespace; zend_bool has_bracketed_namespaces; - HashTable *labels; - zend_stack labels_stack; + zend_compiler_context context; + zend_stack context_stack; /* interned strings */ char *interned_strings_start; @@ -265,6 +265,8 @@ struct _zend_executor_globals { zend_bool active; + zend_op *start_op; + void *saved_fpu_cw_ptr; #if XPFPA_HAVE_CW XPFPA_CW_DATATYPE saved_fpu_cw; -- cgit v1.2.1