Changeset 843 for trunk/processor/processor.m4
- Timestamp:
- 2012-03-25T09:01:16+02:00 (14 months ago)
- File:
-
- 1 edited
-
trunk/processor/processor.m4 (modified) (50 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/processor/processor.m4
r841 r843 18 18 #ifdef IS_CV 19 19 DEF_STRUCT_P_FUNC(`zend_compiled_variable', , `dnl {{{ 20 DISPATCH(int, name_len)20 PROCESS(int, name_len) 21 21 PROC_ZSTRING_L(, name, name_len) 22 DISPATCH(ulong, hash_value)22 PROCESS(ulong, hash_value) 23 23 ') 24 24 dnl }}} … … 46 46 #ifdef ZEND_ENGINE_2 47 47 DEF_STRUCT_P_FUNC(`zend_try_catch_element', , `dnl {{{ 48 DISPATCH(zend_uint, try_op)49 DISPATCH(zend_uint, catch_op)48 PROCESS(zend_uint, try_op) 49 PROCESS(zend_uint, catch_op) 50 50 ') 51 51 dnl }}} … … 53 53 DEF_STRUCT_P_FUNC(`zend_brk_cont_element', , `dnl {{{ 54 54 #ifdef ZEND_ENGINE_2_2 55 DISPATCH(int, start)56 #endif 57 DISPATCH(int, cont)58 DISPATCH(int, brk)59 DISPATCH(int, parent)55 PROCESS(int, start) 56 #endif 57 PROCESS(int, cont) 58 PROCESS(int, brk) 59 PROCESS(int, parent) 60 60 ') 61 61 dnl }}} … … 91 91 case IS_RESOURCE: 92 92 case IS_BOOL: 93 DISPATCH(long, value.lval)93 PROCESS(long, value.lval) 94 94 break; 95 95 case IS_DOUBLE: 96 DISPATCH(double, value.dval)96 PROCESS(double, value.dval) 97 97 break; 98 98 case IS_NULL: … … 110 110 case FLAG_IS_BC: 111 111 #endif 112 DISPATCH(int, value.str.len)112 PROCESS(int, value.str.len) 113 113 PROC_STRING_L(value.str.val, value.str.len) 114 114 break; … … 116 116 case IS_UNICODE: 117 117 proc_unicode: 118 DISPATCH(int32_t, value.uni.len)118 PROCESS(int32_t, value.uni.len) 119 119 PROC_ZSTRING_L(1, value.uni.val, value.uni.len) 120 120 break; … … 141 141 dnl }}} 142 142 DONE(value) 143 DISPATCH(zval_data_type, type)143 PROCESS(xc_zval_data_type, type) 144 144 #ifdef ZEND_ENGINE_2_3 145 DISPATCH(zend_uchar, is_ref__gc)146 #else 147 DISPATCH(zend_uchar, is_ref)145 PROCESS(zend_uchar, is_ref__gc) 146 #else 147 PROCESS(zend_uchar, is_ref) 148 148 #endif 149 149 150 150 #ifdef ZEND_ENGINE_2_3 151 DISPATCH(zend_uint, refcount__gc)151 PROCESS(zend_uint, refcount__gc) 152 152 #elif defined(ZEND_ENGINE_2) 153 DISPATCH(zend_uint, refcount)154 #else 155 DISPATCH(zend_ushort, refcount)153 PROCESS(zend_uint, refcount) 154 #else 155 PROCESS(zend_ushort, refcount) 156 156 #endif 157 157 ')dnl IFDASM … … 224 224 #ifdef ZEND_ENGINE_2 225 225 DEF_STRUCT_P_FUNC(`zend_arg_info', , `dnl {{{ 226 DISPATCH(zend_uint, name_len)226 PROCESS(zend_uint, name_len) 227 227 PROC_ZSTRING_L(, name, name_len) 228 DISPATCH(zend_uint, class_name_len)228 PROCESS(zend_uint, class_name_len) 229 229 PROC_ZSTRING_L(, class_name, class_name_len) 230 230 #ifdef ZEND_ENGINE_2_4 231 DISPATCH(zend_uchar, type_hint)232 #else 233 DISPATCH(zend_bool, array_type_hint)234 #endif 235 DISPATCH(zend_bool, allow_null)236 DISPATCH(zend_bool, pass_by_reference)231 PROCESS(zend_uchar, type_hint) 232 #else 233 PROCESS(zend_bool, array_type_hint) 234 #endif 235 PROCESS(zend_bool, allow_null) 236 PROCESS(zend_bool, pass_by_reference) 237 237 #ifndef ZEND_ENGINE_2_4 238 DISPATCH(zend_bool, return_reference)239 DISPATCH(int, required_num_args)238 PROCESS(zend_bool, return_reference) 239 PROCESS(int, required_num_args) 240 240 #endif 241 241 ') … … 245 245 DEF_STRUCT_P_FUNC(`zend_constant', , `dnl {{{ 246 246 STRUCT(zval, value) 247 DISPATCH(int, flags)248 DISPATCH(uint, name_len)247 PROCESS(int, flags) 248 PROCESS(uint, name_len) 249 249 pushdef(`estrndup', `zend_strndup') 250 250 PROC_ZSTRING_N(, name, name_len) 251 251 popdef(`estrndup') 252 DISPATCH(int, module_number)252 PROCESS(int, module_number) 253 253 ') 254 254 dnl }}} … … 277 277 #ifdef ZEND_ENGINE_2 278 278 DEF_STRUCT_P_FUNC(`zend_property_info', , `dnl {{{ 279 DISPATCH(zend_uint, flags)280 DISPATCH(int, name_length)279 PROCESS(zend_uint, flags) 280 PROCESS(int, name_length) 281 281 PROC_ZSTRING_L(, name, name_length) 282 DISPATCH(ulong, h)283 #ifdef ZEND_ENGINE_2_4 284 DISPATCH(int, offset)282 PROCESS(ulong, h) 283 #ifdef ZEND_ENGINE_2_4 284 PROCESS(int, offset) 285 285 #endif 286 286 #ifdef ZEND_ENGINE_2_1 287 DISPATCH(int, doc_comment_len)287 PROCESS(int, doc_comment_len) 288 288 PROC_ZSTRING_L(, doc_comment, doc_comment_len) 289 289 #endif … … 297 297 #ifdef ZEND_ENGINE_2_4 298 298 DEF_STRUCT_P_FUNC(`zend_trait_method_reference', , `dnl {{{ 299 DISPATCH(unsigned int, mname_len)299 PROCESS(unsigned int, mname_len) 300 300 PROC_STRING_L(method_name, mname_len) 301 301 COPYNULL(ce) 302 DISPATCH(unsigned int, cname_len)302 PROCESS(unsigned int, cname_len) 303 303 PROC_STRING_L(class_name, cname_len) 304 304 ') … … 306 306 DEF_STRUCT_P_FUNC(`zend_trait_alias', , `dnl {{{ 307 307 STRUCT_P(zend_trait_method_reference, trait_method) 308 DISPATCH(unsigned int, alias_len)308 PROCESS(unsigned int, alias_len) 309 309 PROC_STRING_L(alias, alias_len) 310 DISPATCH(zend_uint, modifiers)310 PROCESS(zend_uint, modifiers) 311 311 COPYNULL(function) 312 312 ') … … 314 314 DEF_STRUCT_P_FUNC(`zend_trait_precedence', , `dnl {{{ 315 315 STRUCT_P(zend_trait_method_reference, trait_method) 316 dnl TODO 317 STRUCT_ARRAY(, xc_class_name_t, exclude_from_classes) 316 PROCESS_ARRAY(, xc_ztstring, exclude_from_classes, zend_class_entry*) 318 317 COPYNULL(function) 319 318 ') … … 351 350 IFCOPY(`processor->active_class_entry_dst = dst;') 352 351 ') 353 DISPATCH(char, type)354 DISPATCH(zend_uint, name_length)352 PROCESS(char, type) 353 PROCESS(zend_uint, name_length) 355 354 PROC_ZSTRING_L(, name, name_length) 356 355 IFRESTORE(` … … 365 364 ') 366 365 #ifdef ZEND_ENGINE_2 367 DISPATCH(int, refcount)366 PROCESS(int, refcount) 368 367 #else 369 368 STRUCT_P(int, refcount) 370 369 #endif 371 370 #ifndef ZEND_ENGINE_2_4 372 DISPATCH(zend_bool, constants_updated)373 #endif 374 #ifdef ZEND_ENGINE_2 375 DISPATCH(zend_uint, ce_flags)371 PROCESS(zend_bool, constants_updated) 372 #endif 373 #ifdef ZEND_ENGINE_2 374 PROCESS(zend_uint, ce_flags) 376 375 #endif 377 376 … … 382 381 #ifdef ZEND_ENGINE_2_4 383 382 STRUCT_ARRAY(default_properties_count, zval_ptr_nullable, default_properties_table) 384 DISPATCH(int, default_properties_count)383 PROCESS(int, default_properties_count) 385 384 STRUCT_ARRAY(default_static_members_count, zval_ptr_nullable, default_static_members_table) 386 DISPATCH(int, default_static_members_count)385 PROCESS(int, default_static_members_count) 387 386 IFCOPY(`dst->static_members_table = dst->default_static_members_table;') 388 387 DONE(static_members_table) … … 425 424 DONE(`interfaces') 426 425 ') 427 DISPATCH(zend_uint, num_interfaces)426 PROCESS(zend_uint, num_interfaces) 428 427 #endif 429 428 STRUCT_ARRAY(, zend_trait_alias_ptr, trait_aliases) … … 433 432 DISABLECHECK(` 434 433 IFRESTORE(`dst->info.user.filename = processor->entry_src->filepath;', `PROC_STRING(info.user.filename)') 435 DISPATCH(zend_uint, info.user.line_start)436 DISPATCH(zend_uint, info.user.line_end)437 DISPATCH(zend_uint, info.user.doc_comment_len)434 PROCESS(zend_uint, info.user.line_start) 435 PROCESS(zend_uint, info.user.line_end) 436 PROCESS(zend_uint, info.user.doc_comment_len) 438 437 PROC_ZSTRING_L(, info.user.doc_comment, info.user.doc_comment_len) 439 438 ') … … 441 440 # else 442 441 IFRESTORE(`dst->filename = processor->entry_src->filepath;DONE(filename)', `PROC_STRING(filename)') 443 DISPATCH(zend_uint, line_start)444 DISPATCH(zend_uint, line_end)442 PROCESS(zend_uint, line_start) 443 PROCESS(zend_uint, line_end) 445 444 # ifdef ZEND_ENGINE_2_1 446 DISPATCH(zend_uint, doc_comment_len)445 PROCESS(zend_uint, doc_comment_len) 447 446 PROC_ZSTRING_L(, doc_comment, doc_comment_len) 448 447 # endif … … 519 518 case IS_CONST: 520 519 ifelse($1, `result', ` 521 DISPATCH(zend_uint, $1.constant)520 PROCESS(zend_uint, $1.constant) 522 521 ', ` 523 522 IFDASM(`{ … … 532 531 dst->$1 = src->$1; 533 532 ', ` 534 DISPATCH(zend_uint, $1.constant)533 PROCESS(zend_uint, $1.constant) 535 534 ') 536 535 ') … … 546 545 case IS_TMP_VAR: 547 546 case IS_CV: 548 DISPATCH(zend_uint, $1.var)547 PROCESS(zend_uint, $1.var) 549 548 break; 550 549 case IS_UNUSED: 551 IFDASM(` DISPATCH(zend_uint, $1.var)')552 DISPATCH(zend_uint, $1.opline_num)550 IFDASM(`PROCESS(zend_uint, $1.var)') 551 PROCESS(zend_uint, $1.opline_num) 553 552 break; 554 553 ') … … 560 559 #else 561 560 DEF_STRUCT_P_FUNC(`znode', , `dnl {{{ 562 DISPATCH(int, op_type)561 PROCESS(xc_op_type, op_type) 563 562 564 563 #ifdef IS_CV … … 588 587 case IS_TMP_VAR: 589 588 case XCACHE_IS_CV: 590 DISPATCH(zend_uint, u.var)591 DISPATCH(zend_uint, u.EA.type)589 PROCESS(zend_uint, u.var) 590 PROCESS(zend_uint, u.EA.type) 592 591 break; 593 592 case IS_UNUSED: 594 IFDASM(` DISPATCH(zend_uint, u.var)')595 DISPATCH(zend_uint, u.opline_num)593 IFDASM(`PROCESS(zend_uint, u.var)') 594 PROCESS(zend_uint, u.opline_num) 596 595 #ifndef ZEND_ENGINE_2 597 DISPATCH(zend_uint, u.fetch_type)598 #endif 599 DISPATCH(zend_uint, u.EA.type)596 PROCESS(zend_uint, u.fetch_type) 597 #endif 598 PROCESS(zend_uint, u.EA.type) 600 599 break; 601 600 ') … … 611 610 #endif 612 611 DEF_STRUCT_P_FUNC(`zend_op', , `dnl {{{ 613 DISPATCH(zend_uchar, opcode)612 PROCESS(xc_opcode, opcode) 614 613 #ifdef ZEND_ENGINE_2_4 615 614 IFRESTORE(`', ` … … 628 627 STRUCT(znode, op2) 629 628 #endif 630 DISPATCH(ulong, extended_value)631 DISPATCH(uint, lineno)629 PROCESS(ulong, extended_value) 630 PROCESS(uint, lineno) 632 631 #ifdef ZEND_ENGINE_2_1 633 632 #ifdef ZEND_ENGINE_2_4 634 DISPATCH(zend_uchar, op1_type)635 DISPATCH(zend_uchar, op2_type)636 DISPATCH(zend_uchar, result_type)633 PROCESS(zend_uchar, op1_type) 634 PROCESS(zend_uchar, op2_type) 635 PROCESS(zend_uchar, result_type) 637 636 #endif 638 637 IFCOPY(` … … 674 673 } 675 674 ') 676 DISPATCH(opcode_handler_t, handler)675 PROCESS(opcode_handler_t, handler) 677 676 #endif 678 677 ') … … 681 680 DEF_STRUCT_P_FUNC(`zend_literal', , `dnl {{{ 682 681 STRUCT(zval, constant) 683 DISPATCH(zend_ulong, hash_value)684 DISPATCH(zend_uint, cache_slot)682 PROCESS(zend_ulong, hash_value) 683 PROCESS(zend_uint, cache_slot) 685 684 ') 686 685 dnl }}} … … 777 776 778 777 /* Common elements */ 779 DISPATCH(zend_uchar, type)778 PROCESS(zend_uchar, type) 780 779 PROC_ZSTRING(, function_name) 781 780 #ifdef ZEND_ENGINE_2 782 DISPATCH(zend_uint, fn_flags)781 PROCESS(zend_uint, fn_flags) 783 782 STRUCT_ARRAY(num_args, zend_arg_info, arg_info) 784 DISPATCH(zend_uint, num_args)785 DISPATCH(zend_uint, required_num_args)783 PROCESS(zend_uint, num_args) 784 PROCESS(zend_uint, required_num_args) 786 785 # ifndef ZEND_ENGINE_2_4 787 DISPATCH(zend_bool, pass_rest_by_reference)786 PROCESS(zend_bool, pass_rest_by_reference) 788 787 # endif 789 788 #else … … 808 807 #endif 809 808 #ifndef ZEND_ENGINE_2_4 810 DISPATCH(unsigned char, return_reference)809 PROCESS(unsigned char, return_reference) 811 810 #endif 812 811 /* END of common elements */ … … 822 821 dnl before copying opcodes 823 822 STRUCT_ARRAY(last_literal, zend_literal, literals) 824 DISPATCH(int, last_literal)823 PROCESS(int, last_literal) 825 824 #endif 826 825 … … 835 834 STRUCT_ARRAY(last, zend_op, opcodes) 836 835 popdef(`AFTER_ALLOC') 837 DISPATCH(zend_uint, last)836 PROCESS(zend_uint, last) 838 837 #ifndef ZEND_ENGINE_2_4 839 IFCOPY(`dst->size = src->last;DONE(size)', ` DISPATCH(zend_uint, size)')838 IFCOPY(`dst->size = src->last;DONE(size)', `PROCESS(zend_uint, size)') 840 839 #endif 841 840 842 841 #ifdef IS_CV 843 842 STRUCT_ARRAY(last_var, zend_compiled_variable, vars) 844 DISPATCH(int, last_var)843 PROCESS(int, last_var) 845 844 # ifndef ZEND_ENGINE_2_4 846 IFCOPY(`dst->size_var = src->last_var;DONE(size_var)', ` DISPATCH(zend_uint, size_var)')845 IFCOPY(`dst->size_var = src->last_var;DONE(size_var)', `PROCESS(zend_uint, size_var)') 847 846 # endif 848 847 #else … … 853 852 #endif 854 853 855 DISPATCH(zend_uint, T)854 PROCESS(zend_uint, T) 856 855 857 856 STRUCT_ARRAY(last_brk_cont, zend_brk_cont_element, brk_cont_array) 858 DISPATCH(zend_uint, last_brk_cont)857 PROCESS(zend_uint, last_brk_cont) 859 858 #ifndef ZEND_ENGINE_2_4 860 DISPATCH(zend_uint, current_brk_cont)859 PROCESS(zend_uint, current_brk_cont) 861 860 #endif 862 861 #ifndef ZEND_ENGINE_2 863 DISPATCH(zend_bool, uses_globals)862 PROCESS(zend_bool, uses_globals) 864 863 #endif 865 864 866 865 #ifdef ZEND_ENGINE_2 867 866 STRUCT_ARRAY(last_try_catch, zend_try_catch_element, try_catch_array) 868 DISPATCH(int, last_try_catch)867 PROCESS(int, last_try_catch) 869 868 #endif 870 869 … … 873 872 #ifndef ZEND_ENGINE_2_4 874 873 COPY(start_op) 875 DISPATCH(int, backpatch_count)874 PROCESS(int, backpatch_count) 876 875 #endif 877 876 #ifdef ZEND_ENGINE_2_3 878 DISPATCH(zend_uint, this_var)877 PROCESS(zend_uint, this_var) 879 878 #endif 880 879 881 880 #ifndef ZEND_ENGINE_2_4 882 DISPATCH(zend_bool, done_pass_two)881 PROCESS(zend_bool, done_pass_two) 883 882 #endif 884 883 /* 5.0 <= ver < 5.3 */ 885 884 #if defined(ZEND_ENGINE_2) && !defined(ZEND_ENGINE_2_3) 886 DISPATCH(zend_bool, uses_this)885 PROCESS(zend_bool, uses_this) 887 886 #endif 888 887 … … 896 895 #endif 897 896 #ifdef ZEND_ENGINE_2 898 DISPATCH(zend_uint, line_start)899 DISPATCH(zend_uint, line_end)900 DISPATCH(int, doc_comment_len)897 PROCESS(zend_uint, line_start) 898 PROCESS(zend_uint, line_end) 899 PROCESS(int, doc_comment_len) 901 900 PROC_ZSTRING_L(, doc_comment, doc_comment_len) 902 901 #endif 903 902 #ifdef ZEND_COMPILE_DELAYED_BINDING 904 DISPATCH(zend_uint, early_binding);903 PROCESS(zend_uint, early_binding); 905 904 #endif 906 905 … … 908 907 DONE(reserved) 909 908 #if defined(HARDENING_PATCH) && HARDENING_PATCH 910 DISPATCH(zend_bool, created_by_eval)909 PROCESS(zend_bool, created_by_eval) 911 910 #endif 912 911 #ifdef ZEND_ENGINE_2_4 913 912 SETNULL(run_time_cache) 914 DISPATCH(int, last_cache_slot)913 PROCESS(int, last_cache_slot) 915 914 #endif 916 915 } while (0); … … 967 966 #ifdef HAVE_XCACHE_CONSTANT 968 967 DEF_STRUCT_P_FUNC(`xc_constinfo_t', , `dnl {{{ 969 DISPATCH(zend_uint, key_size)968 PROCESS(zend_uint, key_size) 970 969 #ifdef IS_UNICODE 971 DISPATCH(zend_uchar, type)970 PROCESS(zend_uchar, type) 972 971 #endif 973 972 IFRESTORE(`COPY(key)', ` 974 973 PROC_ZSTRING_N(type, key, key_size) 975 974 ') 976 DISPATCH(ulong, h)975 PROCESS(ulong, h) 977 976 STRUCT(zend_constant, constant) 978 977 ') … … 980 979 #endif 981 980 DEF_STRUCT_P_FUNC(`xc_op_array_info_detail_t', , `dnl {{{ 982 DISPATCH(zend_uint, index)983 DISPATCH(zend_uint, info)981 PROCESS(zend_uint, index) 982 PROCESS(zend_uint, info) 984 983 ') 985 984 dnl }}} 986 985 DEF_STRUCT_P_FUNC(`xc_op_array_info_t', , `dnl {{{ 987 986 #ifdef ZEND_ENGINE_2_4 988 DISPATCH(zend_uint, literalinfo_cnt)987 PROCESS(zend_uint, literalinfo_cnt) 989 988 STRUCT_ARRAY(literalinfo_cnt, xc_op_array_info_detail_t, literalinfos) 990 989 #else 991 DISPATCH(zend_uint, oplineinfo_cnt)990 PROCESS(zend_uint, oplineinfo_cnt) 992 991 STRUCT_ARRAY(oplineinfo_cnt, xc_op_array_info_detail_t, oplineinfos) 993 992 #endif … … 995 994 dnl }}} 996 995 DEF_STRUCT_P_FUNC(`xc_funcinfo_t', , `dnl {{{ 997 DISPATCH(zend_uint, key_size)996 PROCESS(zend_uint, key_size) 998 997 #ifdef IS_UNICODE 999 DISPATCH(zend_uchar, type)998 PROCESS(zend_uchar, type) 1000 999 #endif 1001 1000 IFRESTORE(`COPY(key)', ` 1002 1001 PROC_ZSTRING_N(type, key, key_size) 1003 1002 ') 1004 DISPATCH(ulong, h)1003 PROCESS(ulong, h) 1005 1004 IFRESTORE(`COPY(op_array_info)', ` 1006 1005 STRUCT(xc_op_array_info_t, op_array_info) … … 1014 1013 dnl }}} 1015 1014 DEF_STRUCT_P_FUNC(`xc_classinfo_t', , `dnl {{{ 1016 DISPATCH(zend_uint, key_size)1015 PROCESS(zend_uint, key_size) 1017 1016 #ifdef IS_UNICODE 1018 DISPATCH(zend_uchar, type)1017 PROCESS(zend_uchar, type) 1019 1018 #endif 1020 1019 IFRESTORE(`COPY(key)', ` 1021 1020 PROC_ZSTRING_N(type, key, key_size) 1022 1021 ') 1023 DISPATCH(ulong, h)1024 DISPATCH(zend_uint, methodinfo_cnt)1022 PROCESS(ulong, h) 1023 PROCESS(zend_uint, methodinfo_cnt) 1025 1024 IFRESTORE(`COPY(methodinfos)', ` 1026 1025 STRUCT_ARRAY(methodinfo_cnt, xc_op_array_info_t, methodinfos) … … 1036 1035 #endif 1037 1036 #ifndef ZEND_COMPILE_DELAYED_BINDING 1038 DISPATCH(int, oplineno)1037 PROCESS(int, oplineno) 1039 1038 #endif 1040 1039 ') … … 1042 1041 #ifdef ZEND_ENGINE_2_1 1043 1042 DEF_STRUCT_P_FUNC(`xc_autoglobal_t', , `dnl {{{ 1044 DISPATCH(zend_uint, key_len)1043 PROCESS(zend_uint, key_len) 1045 1044 #ifdef IS_UNICODE 1046 DISPATCH(zend_uchar, type)1045 PROCESS(zend_uchar, type) 1047 1046 #endif 1048 1047 IFRESTORE(`COPY(key)', ` 1049 1048 PROC_ZSTRING_L(type, key, key_len) 1050 1049 ') 1051 DISPATCH(ulong, h)1050 PROCESS(ulong, h) 1052 1051 ') 1053 1052 dnl }}} … … 1055 1054 #ifdef E_STRICT 1056 1055 DEF_STRUCT_P_FUNC(`xc_compilererror_t', , `dnl {{{ 1057 DISPATCH(int, type)1058 DISPATCH(uint, lineno)1059 DISPATCH(int, error_len)1056 PROCESS(int, type) 1057 PROCESS(uint, lineno) 1058 PROCESS(int, error_len) 1060 1059 PROC_STRING_L(error, error_len) 1061 1060 ') … … 1068 1067 ') 1069 1068 1070 DISPATCH(xc_hash_value_t, hvalue)1069 PROCESS(xc_hash_value_t, hvalue) 1071 1070 /* skip */ 1072 1071 DONE(next) 1073 1072 COPY(cache) 1074 DISPATCH(xc_md5sum_t, md5)1075 DISPATCH(zend_ulong, refcount)1076 1077 DISPATCH(size_t, sourcesize)1078 DISPATCH(zend_ulong, hits)1079 DISPATCH(size_t, size)1073 PROCESS(xc_md5sum_t, md5) 1074 PROCESS(zend_ulong, refcount) 1075 1076 PROCESS(size_t, sourcesize) 1077 PROCESS(zend_ulong, hits) 1078 PROCESS(size_t, size) 1080 1079 1081 1080 IFRESTORE(`COPY(op_array_info)', ` … … 1089 1088 1090 1089 #ifdef HAVE_XCACHE_CONSTANT 1091 DISPATCH(zend_uint, constinfo_cnt)1090 PROCESS(zend_uint, constinfo_cnt) 1092 1091 STRUCT_ARRAY(constinfo_cnt, xc_constinfo_t, constinfos) 1093 1092 #endif 1094 1093 1095 DISPATCH(zend_uint, funcinfo_cnt)1094 PROCESS(zend_uint, funcinfo_cnt) 1096 1095 STRUCT_ARRAY(funcinfo_cnt, xc_funcinfo_t, funcinfos) 1097 1096 1098 DISPATCH(zend_uint, classinfo_cnt)1097 PROCESS(zend_uint, classinfo_cnt) 1099 1098 STRUCT_ARRAY(classinfo_cnt, xc_classinfo_t, classinfos, , IFRESTORE(`processor->active_class_index')) 1100 1099 #ifdef ZEND_ENGINE_2_1 1101 DISPATCH(zend_uint, autoglobal_cnt)1100 PROCESS(zend_uint, autoglobal_cnt) 1102 1101 IFRESTORE(` 1103 1102 COPY(autoglobals) … … 1107 1106 #endif 1108 1107 #ifdef E_STRICT 1109 DISPATCH(zend_uint, compilererror_cnt)1108 PROCESS(zend_uint, compilererror_cnt) 1110 1109 IFRESTORE(` 1111 1110 COPY(compilererrors) … … 1115 1114 #endif 1116 1115 #ifndef ZEND_COMPILE_DELAYED_BINDING 1117 DISPATCH(zend_bool, have_early_binding)1118 #endif 1119 DISPATCH(zend_bool, have_references)1116 PROCESS(zend_bool, have_early_binding) 1117 #endif 1118 PROCESS(zend_bool, have_references) 1120 1119 ') 1121 1120 dnl }}} … … 1123 1122 IFDPRINT(`INDENT()`'fprintf(stderr, "zval:value");') 1124 1123 STRUCT_P_EX(zval_ptr, dst->value, src->value, `value', `', `&') 1125 DISPATCH(zend_bool, have_references)1124 PROCESS(zend_bool, have_references) 1126 1125 DONE(value) 1127 1126 ') 1128 1127 dnl }}} 1129 1128 DEF_STRUCT_P_FUNC(`xc_entry_t', , `dnl {{{ 1130 DISPATCH(xc_entry_type_t, type)1131 DISPATCH(size_t, size)1132 1133 DISPATCH(xc_hash_value_t, hvalue)1129 PROCESS(xc_entry_type_t, type) 1130 PROCESS(size_t, size) 1131 1132 PROCESS(xc_hash_value_t, hvalue) 1134 1133 COPY(cache) 1135 1134 /* skip */ 1136 1135 DONE(next) 1137 1136 1138 IFSTORE(`dst->refcount = 0; DONE(refcount)', ` DISPATCH(long, refcount)')1139 1140 DISPATCH(time_t, ctime)1141 DISPATCH(time_t, atime)1142 DISPATCH(time_t, dtime)1143 DISPATCH(long, ttl)1144 DISPATCH(zend_ulong, hits)1137 IFSTORE(`dst->refcount = 0; DONE(refcount)', `PROCESS(long, refcount)') 1138 1139 PROCESS(time_t, ctime) 1140 PROCESS(time_t, atime) 1141 PROCESS(time_t, dtime) 1142 PROCESS(long, ttl) 1143 PROCESS(zend_ulong, hits) 1145 1144 #ifdef IS_UNICODE 1146 DISPATCH(zend_uchar, name_type)1145 PROCESS(zend_uchar, name_type) 1147 1146 #endif 1148 1147 dnl {{{ name … … 1150 1149 #ifdef IS_UNICODE 1151 1150 if (src->name_type == IS_UNICODE) { 1152 DISPATCH(int32_t, name.ustr.len)1151 PROCESS(int32_t, name.ustr.len) 1153 1152 } 1154 1153 else { 1155 DISPATCH(int, name.str.len)1154 PROCESS(int, name.str.len) 1156 1155 } 1157 1156 #else 1158 DISPATCH(int, name.str.len)1157 PROCESS(int, name.str.len) 1159 1158 #endif 1160 1159 IFRESTORE(`COPY(name.str.val)', ` … … 1186 1185 DONE(data) 1187 1186 dnl }}} 1188 DISPATCH(time_t, mtime)1187 PROCESS(time_t, mtime) 1189 1188 #ifdef HAVE_INODE 1190 DISPATCH(int, device)1191 DISPATCH(int, inode)1189 PROCESS(int, device) 1190 PROCESS(int, inode) 1192 1191 #endif 1193 1192 1194 1193 if (src->type == XC_TYPE_PHP) { 1195 DISPATCH(int, filepath_len)1194 PROCESS(int, filepath_len) 1196 1195 IFRESTORE(`COPY(filepath)', `PROC_STRING_L(filepath, filepath_len)') 1197 DISPATCH(int, dirpath_len)1196 PROCESS(int, dirpath_len) 1198 1197 IFRESTORE(`COPY(dirpath)', `PROC_STRING_L(dirpath, dirpath_len)') 1199 1198 #ifdef IS_UNICODE 1200 DISPATCH(int, ufilepath_len)1199 PROCESS(int, ufilepath_len) 1201 1200 IFRESTORE(`COPY(ufilepath)', `PROC_USTRING_L(ufilepath, ufilepath_len)') 1202 DISPATCH(int, udirpath_len)1201 PROCESS(int, udirpath_len) 1203 1202 IFRESTORE(`COPY(udirpath)', `PROC_USTRING_L(udirpath, udirpath_len)') 1204 1203 #endif
Note: See TracChangeset
for help on using the changeset viewer.

