OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright 2012 the V8 project authors. All rights reserved. | 3 # Copyright 2012 the V8 project authors. All rights reserved. |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
6 # met: | 6 # met: |
7 # | 7 # |
8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
862 135: "FREE_SPACE_TYPE", | 862 135: "FREE_SPACE_TYPE", |
863 136: "EXTERNAL_BYTE_ARRAY_TYPE", | 863 136: "EXTERNAL_BYTE_ARRAY_TYPE", |
864 137: "EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE", | 864 137: "EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE", |
865 138: "EXTERNAL_SHORT_ARRAY_TYPE", | 865 138: "EXTERNAL_SHORT_ARRAY_TYPE", |
866 139: "EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE", | 866 139: "EXTERNAL_UNSIGNED_SHORT_ARRAY_TYPE", |
867 140: "EXTERNAL_INT_ARRAY_TYPE", | 867 140: "EXTERNAL_INT_ARRAY_TYPE", |
868 141: "EXTERNAL_UNSIGNED_INT_ARRAY_TYPE", | 868 141: "EXTERNAL_UNSIGNED_INT_ARRAY_TYPE", |
869 142: "EXTERNAL_FLOAT_ARRAY_TYPE", | 869 142: "EXTERNAL_FLOAT_ARRAY_TYPE", |
870 144: "EXTERNAL_PIXEL_ARRAY_TYPE", | 870 144: "EXTERNAL_PIXEL_ARRAY_TYPE", |
871 146: "FILLER_TYPE", | 871 146: "FILLER_TYPE", |
872 147: "ACCESSOR_INFO_TYPE", | 872 147: "DECLARED_ACCESSOR_DESCRIPTOR_TYPE", |
873 148: "ACCESSOR_PAIR_TYPE", | 873 148: "DECLARED_ACCESSOR_INFO_TYPE", |
874 149: "ACCESS_CHECK_INFO_TYPE", | 874 149: "EXECUTABLE_ACCESSOR_INFO_TYPE", |
875 150: "INTERCEPTOR_INFO_TYPE", | 875 150: "ACCESSOR_PAIR_TYPE", |
876 151: "CALL_HANDLER_INFO_TYPE", | 876 151: "ACCESS_CHECK_INFO_TYPE", |
877 152: "FUNCTION_TEMPLATE_INFO_TYPE", | 877 152: "INTERCEPTOR_INFO_TYPE", |
878 153: "OBJECT_TEMPLATE_INFO_TYPE", | 878 153: "CALL_HANDLER_INFO_TYPE", |
879 154: "SIGNATURE_INFO_TYPE", | 879 154: "FUNCTION_TEMPLATE_INFO_TYPE", |
880 155: "TYPE_SWITCH_INFO_TYPE", | 880 155: "OBJECT_TEMPLATE_INFO_TYPE", |
881 156: "ALLOCATION_SITE_INFO_TYPE", | 881 156: "SIGNATURE_INFO_TYPE", |
882 157: "SCRIPT_TYPE", | 882 157: "TYPE_SWITCH_INFO_TYPE", |
883 158: "CODE_CACHE_TYPE", | 883 158: "ALLOCATION_SITE_INFO_TYPE", |
884 159: "POLYMORPHIC_CODE_CACHE_TYPE", | 884 159: "SCRIPT_TYPE", |
885 160: "TYPE_FEEDBACK_INFO_TYPE", | 885 160: "CODE_CACHE_TYPE", |
886 161: "ALIASED_ARGUMENTS_ENTRY_TYPE", | 886 161: "POLYMORPHIC_CODE_CACHE_TYPE", |
887 164: "FIXED_ARRAY_TYPE", | 887 162: "TYPE_FEEDBACK_INFO_TYPE", |
| 888 163: "ALIASED_ARGUMENTS_ENTRY_TYPE", |
| 889 166: "FIXED_ARRAY_TYPE", |
888 145: "FIXED_DOUBLE_ARRAY_TYPE", | 890 145: "FIXED_DOUBLE_ARRAY_TYPE", |
889 165: "SHARED_FUNCTION_INFO_TYPE", | 891 167: "SHARED_FUNCTION_INFO_TYPE", |
890 166: "JS_MESSAGE_OBJECT_TYPE", | 892 168: "JS_MESSAGE_OBJECT_TYPE", |
891 169: "JS_VALUE_TYPE", | 893 171: "JS_VALUE_TYPE", |
892 170: "JS_DATE_TYPE", | 894 172: "JS_DATE_TYPE", |
893 171: "JS_OBJECT_TYPE", | 895 173: "JS_OBJECT_TYPE", |
894 172: "JS_CONTEXT_EXTENSION_OBJECT_TYPE", | 896 174: "JS_CONTEXT_EXTENSION_OBJECT_TYPE", |
895 173: "JS_MODULE_TYPE", | 897 175: "JS_MODULE_TYPE", |
896 174: "JS_GLOBAL_OBJECT_TYPE", | 898 176: "JS_GLOBAL_OBJECT_TYPE", |
897 175: "JS_BUILTINS_OBJECT_TYPE", | 899 177: "JS_BUILTINS_OBJECT_TYPE", |
898 176: "JS_GLOBAL_PROXY_TYPE", | 900 178: "JS_GLOBAL_PROXY_TYPE", |
899 177: "JS_ARRAY_TYPE", | 901 179: "JS_ARRAY_TYPE", |
900 168: "JS_PROXY_TYPE", | 902 170: "JS_PROXY_TYPE", |
901 180: "JS_WEAK_MAP_TYPE", | 903 182: "JS_WEAK_MAP_TYPE", |
902 181: "JS_REGEXP_TYPE", | 904 183: "JS_REGEXP_TYPE", |
903 182: "JS_FUNCTION_TYPE", | 905 184: "JS_FUNCTION_TYPE", |
904 167: "JS_FUNCTION_PROXY_TYPE", | 906 169: "JS_FUNCTION_PROXY_TYPE", |
905 162: "DEBUG_INFO_TYPE", | 907 164: "DEBUG_INFO_TYPE", |
906 163: "BREAK_POINT_INFO_TYPE", | 908 165: "BREAK_POINT_INFO_TYPE", |
907 } | 909 } |
908 | 910 |
909 | 911 |
910 # List of known V8 maps. Used to determine the instance type and name | 912 # List of known V8 maps. Used to determine the instance type and name |
911 # for maps that are part of the root-set and hence on the first page of | 913 # for maps that are part of the root-set and hence on the first page of |
912 # the map-space. Obtained by adding the code below to an IA32 release | 914 # the map-space. Obtained by adding the code below to an IA32 release |
913 # build with enabled snapshots to the end of the Isolate::Init method. | 915 # build with enabled snapshots to the end of the Isolate::Init method. |
914 # | 916 # |
915 # #define ROOT_LIST_CASE(type, name, camel_name) \ | 917 # #define ROOT_LIST_CASE(type, name, camel_name) \ |
916 # if (o == heap_.name()) n = #camel_name; | 918 # if (o == heap_.name()) n = #camel_name; |
917 # #define STRUCT_LIST_CASE(upper_name, camel_name, name) \ | 919 # #define STRUCT_LIST_CASE(upper_name, camel_name, name) \ |
918 # if (o == heap_.name##_map()) n = #camel_name "Map"; | 920 # if (o == heap_.name##_map()) n = #camel_name "Map"; |
919 # HeapObjectIterator it(heap_.map_space()); | 921 # HeapObjectIterator it(heap_.map_space()); |
920 # printf("KNOWN_MAPS = {\n"); | 922 # printf("KNOWN_MAPS = {\n"); |
921 # for (Object* o = it.Next(); o != NULL; o = it.Next()) { | 923 # for (Object* o = it.Next(); o != NULL; o = it.Next()) { |
922 # Map* m = Map::cast(o); | 924 # Map* m = Map::cast(o); |
923 # const char* n = ""; | 925 # const char* n = ""; |
924 # intptr_t p = reinterpret_cast<intptr_t>(m) & 0xfffff; | 926 # intptr_t p = reinterpret_cast<intptr_t>(m) & 0xfffff; |
925 # int t = m->instance_type(); | 927 # int t = m->instance_type(); |
926 # ROOT_LIST(ROOT_LIST_CASE) | 928 # ROOT_LIST(ROOT_LIST_CASE) |
927 # STRUCT_LIST(STRUCT_LIST_CASE) | 929 # STRUCT_LIST(STRUCT_LIST_CASE) |
928 # printf(" 0x%05x: (%d, \"%s\"),\n", p, t, n); | 930 # printf(" 0x%05x: (%d, \"%s\"),\n", p, t, n); |
929 # } | 931 # } |
930 # printf("}\n"); | 932 # printf("}\n"); |
931 KNOWN_MAPS = { | 933 KNOWN_MAPS = { |
932 0x08081: (134, "ByteArrayMap"), | 934 0x08081: (128, "MetaMap"), |
933 0x080a9: (128, "MetaMap"), | 935 0x080a9: (166, "FixedArrayMap"), |
934 0x080d1: (130, "OddballMap"), | 936 0x080d1: (130, "OddballMap"), |
935 0x080f9: (68, "AsciiSymbolMap"), | 937 0x080f9: (166, "FixedCOWArrayMap"), |
936 0x08121: (164, "FixedArrayMap"), | 938 0x08121: (166, "ScopeInfoMap"), |
937 0x08149: (132, "HeapNumberMap"), | 939 0x08149: (132, "HeapNumberMap"), |
938 0x08171: (135, "FreeSpaceMap"), | 940 0x08171: (133, "ForeignMap"), |
939 0x08199: (146, "OnePointerFillerMap"), | 941 0x08199: (64, "SymbolMap"), |
940 0x081c1: (146, "TwoPointerFillerMap"), | 942 0x081c1: (68, "AsciiSymbolMap"), |
941 0x081e9: (131, "GlobalPropertyCellMap"), | 943 0x081e9: (65, "ConsSymbolMap"), |
942 0x08211: (165, "SharedFunctionInfoMap"), | 944 0x08211: (69, "ConsAsciiSymbolMap"), |
943 0x08239: (4, "AsciiStringMap"), | 945 0x08239: (66, "ExternalSymbolMap"), |
944 0x08261: (164, "NativeContextMap"), | 946 0x08261: (74, "ExternalSymbolWithAsciiDataMap"), |
945 0x08289: (129, "CodeMap"), | 947 0x08289: (70, "ExternalAsciiSymbolMap"), |
946 0x082b1: (164, "ScopeInfoMap"), | 948 0x082b1: (82, "ShortExternalSymbolMap"), |
947 0x082d9: (164, "FixedCOWArrayMap"), | 949 0x082d9: (90, "ShortExternalSymbolWithAsciiDataMap"), |
948 0x08301: (145, "FixedDoubleArrayMap"), | 950 0x08301: (86, "ShortExternalAsciiSymbolMap"), |
949 0x08329: (164, "HashTableMap"), | 951 0x08329: (0, "StringMap"), |
950 0x08351: (0, "StringMap"), | 952 0x08351: (4, "AsciiStringMap"), |
951 0x08379: (64, "SymbolMap"), | 953 0x08379: (1, "ConsStringMap"), |
952 0x083a1: (1, "ConsStringMap"), | 954 0x083a1: (5, "ConsAsciiStringMap"), |
953 0x083c9: (5, "ConsAsciiStringMap"), | 955 0x083c9: (3, "SlicedStringMap"), |
954 0x083f1: (3, "SlicedStringMap"), | 956 0x083f1: (7, "SlicedAsciiStringMap"), |
955 0x08419: (7, "SlicedAsciiStringMap"), | 957 0x08419: (2, "ExternalStringMap"), |
956 0x08441: (65, "ConsSymbolMap"), | 958 0x08441: (10, "ExternalStringWithAsciiDataMap"), |
957 0x08469: (69, "ConsAsciiSymbolMap"), | 959 0x08469: (6, "ExternalAsciiStringMap"), |
958 0x08491: (66, "ExternalSymbolMap"), | 960 0x08491: (18, "ShortExternalStringMap"), |
959 0x084b9: (74, "ExternalSymbolWithAsciiDataMap"), | 961 0x084b9: (26, "ShortExternalStringWithAsciiDataMap"), |
960 0x084e1: (70, "ExternalAsciiSymbolMap"), | 962 0x084e1: (22, "ShortExternalAsciiStringMap"), |
961 0x08509: (2, "ExternalStringMap"), | 963 0x08509: (0, "UndetectableStringMap"), |
962 0x08531: (10, "ExternalStringWithAsciiDataMap"), | 964 0x08531: (4, "UndetectableAsciiStringMap"), |
963 0x08559: (6, "ExternalAsciiStringMap"), | 965 0x08559: (145, "FixedDoubleArrayMap"), |
964 0x08581: (82, "ShortExternalSymbolMap"), | 966 0x08581: (134, "ByteArrayMap"), |
965 0x085a9: (90, "ShortExternalSymbolWithAsciiDataMap"), | 967 0x085a9: (135, "FreeSpaceMap"), |
966 0x085d1: (86, "ShortExternalAsciiSymbolMap"), | 968 0x085d1: (144, "ExternalPixelArrayMap"), |
967 0x085f9: (18, "ShortExternalStringMap"), | 969 0x085f9: (136, "ExternalByteArrayMap"), |
968 0x08621: (26, "ShortExternalStringWithAsciiDataMap"), | 970 0x08621: (137, "ExternalUnsignedByteArrayMap"), |
969 0x08649: (22, "ShortExternalAsciiStringMap"), | 971 0x08649: (138, "ExternalShortArrayMap"), |
970 0x08671: (0, "UndetectableStringMap"), | 972 0x08671: (139, "ExternalUnsignedShortArrayMap"), |
971 0x08699: (4, "UndetectableAsciiStringMap"), | 973 0x08699: (140, "ExternalIntArrayMap"), |
972 0x086c1: (144, "ExternalPixelArrayMap"), | 974 0x086c1: (141, "ExternalUnsignedIntArrayMap"), |
973 0x086e9: (136, "ExternalByteArrayMap"), | 975 0x086e9: (142, "ExternalFloatArrayMap"), |
974 0x08711: (137, "ExternalUnsignedByteArrayMap"), | 976 0x08711: (166, "NonStrictArgumentsElementsMap"), |
975 0x08739: (138, "ExternalShortArrayMap"), | 977 0x08739: (143, "ExternalDoubleArrayMap"), |
976 0x08761: (139, "ExternalUnsignedShortArrayMap"), | 978 0x08761: (129, "CodeMap"), |
977 0x08789: (140, "ExternalIntArrayMap"), | 979 0x08789: (131, "GlobalPropertyCellMap"), |
978 0x087b1: (141, "ExternalUnsignedIntArrayMap"), | 980 0x087b1: (146, "OnePointerFillerMap"), |
979 0x087d9: (142, "ExternalFloatArrayMap"), | 981 0x087d9: (146, "TwoPointerFillerMap"), |
980 0x08801: (143, "ExternalDoubleArrayMap"), | 982 0x08801: (147, "DeclaredAccessorDescriptorMap"), |
981 0x08829: (164, "NonStrictArgumentsElementsMap"), | 983 0x08829: (148, "DeclaredAccessorInfoMap"), |
982 0x08851: (164, "FunctionContextMap"), | 984 0x08851: (149, "ExecutableAccessorInfoMap"), |
983 0x08879: (164, "CatchContextMap"), | 985 0x08879: (150, "AccessorPairMap"), |
984 0x088a1: (164, "WithContextMap"), | 986 0x088a1: (151, "AccessCheckInfoMap"), |
985 0x088c9: (164, "BlockContextMap"), | 987 0x088c9: (152, "InterceptorInfoMap"), |
986 0x088f1: (164, "ModuleContextMap"), | 988 0x088f1: (153, "CallHandlerInfoMap"), |
987 0x08919: (164, "GlobalContextMap"), | 989 0x08919: (154, "FunctionTemplateInfoMap"), |
988 0x08941: (166, "JSMessageObjectMap"), | 990 0x08941: (155, "ObjectTemplateInfoMap"), |
989 0x08969: (133, "ForeignMap"), | 991 0x08969: (156, "SignatureInfoMap"), |
990 0x08991: (171, "NeanderMap"), | 992 0x08991: (157, "TypeSwitchInfoMap"), |
991 0x089b9: (156, "AllocationSiteInfoMap"), | 993 0x089b9: (159, "ScriptMap"), |
992 0x089e1: (159, "PolymorphicCodeCacheMap"), | 994 0x089e1: (158, "AllocationSiteInfoMap"), |
993 0x08a09: (157, "ScriptMap"), | 995 0x08a09: (160, "CodeCacheMap"), |
994 0x08a31: (171, ""), | 996 0x08a31: (161, "PolymorphicCodeCacheMap"), |
995 0x08a59: (171, "ExternalMap"), | 997 0x08a59: (162, "TypeFeedbackInfoMap"), |
996 0x08a81: (147, "AccessorInfoMap"), | 998 0x08a81: (163, "AliasedArgumentsEntryMap"), |
997 0x08aa9: (148, "AccessorPairMap"), | 999 0x08aa9: (164, "DebugInfoMap"), |
998 0x08ad1: (149, "AccessCheckInfoMap"), | 1000 0x08ad1: (165, "BreakPointInfoMap"), |
999 0x08af9: (150, "InterceptorInfoMap"), | 1001 0x08af9: (166, "HashTableMap"), |
1000 0x08b21: (151, "CallHandlerInfoMap"), | 1002 0x08b21: (166, "FunctionContextMap"), |
1001 0x08b49: (152, "FunctionTemplateInfoMap"), | 1003 0x08b49: (166, "CatchContextMap"), |
1002 0x08b71: (153, "ObjectTemplateInfoMap"), | 1004 0x08b71: (166, "WithContextMap"), |
1003 0x08b99: (154, "SignatureInfoMap"), | 1005 0x08b99: (166, "BlockContextMap"), |
1004 0x08bc1: (155, "TypeSwitchInfoMap"), | 1006 0x08bc1: (166, "ModuleContextMap"), |
1005 0x08be9: (158, "CodeCacheMap"), | 1007 0x08be9: (166, "GlobalContextMap"), |
1006 0x08c11: (160, "TypeFeedbackInfoMap"), | 1008 0x08c11: (166, "NativeContextMap"), |
1007 0x08c39: (161, "AliasedArgumentsEntryMap"), | 1009 0x08c39: (167, "SharedFunctionInfoMap"), |
1008 0x08c61: (162, "DebugInfoMap"), | 1010 0x08c61: (168, "JSMessageObjectMap"), |
1009 0x08c89: (163, "BreakPointInfoMap"), | 1011 0x08c89: (173, "ExternalMap"), |
| 1012 0x08cb1: (173, "NeanderMap"), |
| 1013 0x08cd9: (173, ""), |
1010 } | 1014 } |
1011 | 1015 |
1012 | 1016 |
1013 # List of known V8 objects. Used to determine name for objects that are | 1017 # List of known V8 objects. Used to determine name for objects that are |
1014 # part of the root-set and hence on the first page of various old-space | 1018 # part of the root-set and hence on the first page of various old-space |
1015 # paged. Obtained by adding the code below to an IA32 release build with | 1019 # paged. Obtained by adding the code below to an IA32 release build with |
1016 # enabled snapshots to the end of the Isolate::Init method. | 1020 # enabled snapshots to the end of the Isolate::Init method. |
1017 # | 1021 # |
1018 # #define ROOT_LIST_CASE(type, name, camel_name) \ | 1022 # #define ROOT_LIST_CASE(type, name, camel_name) \ |
1019 # if (o == heap_.name()) n = #camel_name; | 1023 # if (o == heap_.name()) n = #camel_name; |
1020 # OldSpaces spit; | 1024 # OldSpaces spit; |
1021 # printf("KNOWN_OBJECTS = {\n"); | 1025 # printf("KNOWN_OBJECTS = {\n"); |
1022 # for (PagedSpace* s = spit.next(); s != NULL; s = spit.next()) { | 1026 # for (PagedSpace* s = spit.next(); s != NULL; s = spit.next()) { |
1023 # HeapObjectIterator it(s); | 1027 # HeapObjectIterator it(s); |
1024 # const char* sname = AllocationSpaceName(s->identity()); | 1028 # const char* sname = AllocationSpaceName(s->identity()); |
1025 # for (Object* o = it.Next(); o != NULL; o = it.Next()) { | 1029 # for (Object* o = it.Next(); o != NULL; o = it.Next()) { |
1026 # const char* n = NULL; | 1030 # const char* n = NULL; |
1027 # intptr_t p = reinterpret_cast<intptr_t>(o) & 0xfffff; | 1031 # intptr_t p = reinterpret_cast<intptr_t>(o) & 0xfffff; |
1028 # ROOT_LIST(ROOT_LIST_CASE) | 1032 # ROOT_LIST(ROOT_LIST_CASE) |
1029 # if (n != NULL) { | 1033 # if (n != NULL) { |
1030 # printf(" (\"%s\", 0x%05x): \"%s\",\n", sname, p, n); | 1034 # printf(" (\"%s\", 0x%05x): \"%s\",\n", sname, p, n); |
1031 # } | 1035 # } |
1032 # } | 1036 # } |
1033 # } | 1037 # } |
1034 # printf("}\n"); | 1038 # printf("}\n"); |
1035 KNOWN_OBJECTS = { | 1039 KNOWN_OBJECTS = { |
1036 ("OLD_POINTER_SPACE", 0x08081): "NullValue", | 1040 ("OLD_POINTER_SPACE", 0x08081): "NullValue", |
1037 ("OLD_POINTER_SPACE", 0x08091): "UndefinedValue", | 1041 ("OLD_POINTER_SPACE", 0x08091): "LastScriptId", |
1038 ("OLD_POINTER_SPACE", 0x080a1): "InstanceofCacheMap", | 1042 ("OLD_POINTER_SPACE", 0x080a1): "TrueValue", |
1039 ("OLD_POINTER_SPACE", 0x080b1): "TrueValue", | 1043 ("OLD_POINTER_SPACE", 0x080b1): "FalseValue", |
1040 ("OLD_POINTER_SPACE", 0x080c1): "FalseValue", | 1044 ("OLD_POINTER_SPACE", 0x080c1): "TheHoleValue", |
1041 ("OLD_POINTER_SPACE", 0x080d1): "NoInterceptorResultSentinel", | 1045 ("OLD_POINTER_SPACE", 0x080d1): "ArgumentsMarker", |
1042 ("OLD_POINTER_SPACE", 0x080e1): "ArgumentsMarker", | 1046 ("OLD_POINTER_SPACE", 0x080e1): "NoInterceptorResultSentinel", |
1043 ("OLD_POINTER_SPACE", 0x080f1): "NumberStringCache", | 1047 ("OLD_POINTER_SPACE", 0x080f1): "TerminationException", |
1044 ("OLD_POINTER_SPACE", 0x088f9): "SingleCharacterStringCache", | 1048 ("OLD_POINTER_SPACE", 0x08101): "PolymorphicCodeCache", |
1045 ("OLD_POINTER_SPACE", 0x08b01): "StringSplitCache", | 1049 ("OLD_POINTER_SPACE", 0x08121): "NumberStringCache", |
1046 ("OLD_POINTER_SPACE", 0x08f09): "TerminationException", | 1050 ("OLD_POINTER_SPACE", 0x08929): "SingleCharacterStringCache", |
1047 ("OLD_POINTER_SPACE", 0x08f19): "MessageListeners", | 1051 ("OLD_POINTER_SPACE", 0x08b31): "StringSplitCache", |
1048 ("OLD_POINTER_SPACE", 0x08f35): "CodeStubs", | 1052 ("OLD_POINTER_SPACE", 0x08f39): "RegExpMultipleCache", |
1049 ("OLD_POINTER_SPACE", 0x09b61): "NonMonomorphicCache", | |
1050 ("OLD_POINTER_SPACE", 0x0a175): "PolymorphicCodeCache", | |
1051 ("OLD_POINTER_SPACE", 0x0a17d): "NativesSourceCache", | |
1052 ("OLD_POINTER_SPACE", 0x0a1bd): "EmptyScript", | |
1053 ("OLD_POINTER_SPACE", 0x0a1f9): "IntrinsicFunctionNames", | |
1054 ("OLD_POINTER_SPACE", 0x24a49): "SymbolTable", | |
1055 ("OLD_DATA_SPACE", 0x08081): "EmptyFixedArray", | 1053 ("OLD_DATA_SPACE", 0x08081): "EmptyFixedArray", |
1056 ("OLD_DATA_SPACE", 0x080a1): "NanValue", | 1054 ("OLD_DATA_SPACE", 0x08089): "EmptyDescriptorArray", |
1057 ("OLD_DATA_SPACE", 0x0811d): "EmptyByteArray", | 1055 ("OLD_DATA_SPACE", 0x08091): "EmptyByteArray", |
1058 ("OLD_DATA_SPACE", 0x08125): "EmptyString", | 1056 ("OLD_DATA_SPACE", 0x08099): "MinusZeroValue", |
1059 ("OLD_DATA_SPACE", 0x08131): "EmptyDescriptorArray", | 1057 ("OLD_DATA_SPACE", 0x080a5): "NanValue", |
1060 ("OLD_DATA_SPACE", 0x08259): "InfinityValue", | 1058 ("OLD_DATA_SPACE", 0x080b1): "InfinityValue", |
1061 ("OLD_DATA_SPACE", 0x08265): "MinusZeroValue", | 1059 ("OLD_DATA_SPACE", 0x08185): "EmptyString", |
1062 ("OLD_DATA_SPACE", 0x08271): "PrototypeAccessors", | 1060 ("CODE_SPACE", 0x0a001): "JsEntryCode", |
1063 ("CODE_SPACE", 0x12b81): "JsEntryCode", | 1061 ("CODE_SPACE", 0x0a0e1): "JsConstructEntryCode", |
1064 ("CODE_SPACE", 0x12c61): "JsConstructEntryCode", | |
1065 } | 1062 } |
1066 | 1063 |
1067 | 1064 |
1068 class Printer(object): | 1065 class Printer(object): |
1069 """Printer with indentation support.""" | 1066 """Printer with indentation support.""" |
1070 | 1067 |
1071 def __init__(self): | 1068 def __init__(self): |
1072 self.indent = 0 | 1069 self.indent = 0 |
1073 | 1070 |
1074 def Indent(self): | 1071 def Indent(self): |
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1924 options, args = parser.parse_args() | 1921 options, args = parser.parse_args() |
1925 if os.path.exists(options.objdump): | 1922 if os.path.exists(options.objdump): |
1926 disasm.OBJDUMP_BIN = options.objdump | 1923 disasm.OBJDUMP_BIN = options.objdump |
1927 OBJDUMP_BIN = options.objdump | 1924 OBJDUMP_BIN = options.objdump |
1928 else: | 1925 else: |
1929 print "Cannot find %s, falling back to default objdump" % options.objdump | 1926 print "Cannot find %s, falling back to default objdump" % options.objdump |
1930 if len(args) != 1: | 1927 if len(args) != 1: |
1931 parser.print_help() | 1928 parser.print_help() |
1932 sys.exit(1) | 1929 sys.exit(1) |
1933 AnalyzeMinidump(options, args[0]) | 1930 AnalyzeMinidump(options, args[0]) |
OLD | NEW |