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 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
911 173: "JS_DATE_TYPE", | 911 173: "JS_DATE_TYPE", |
912 174: "JS_OBJECT_TYPE", | 912 174: "JS_OBJECT_TYPE", |
913 175: "JS_CONTEXT_EXTENSION_OBJECT_TYPE", | 913 175: "JS_CONTEXT_EXTENSION_OBJECT_TYPE", |
914 176: "JS_MODULE_TYPE", | 914 176: "JS_MODULE_TYPE", |
915 177: "JS_GLOBAL_OBJECT_TYPE", | 915 177: "JS_GLOBAL_OBJECT_TYPE", |
916 178: "JS_BUILTINS_OBJECT_TYPE", | 916 178: "JS_BUILTINS_OBJECT_TYPE", |
917 179: "JS_GLOBAL_PROXY_TYPE", | 917 179: "JS_GLOBAL_PROXY_TYPE", |
918 180: "JS_ARRAY_TYPE", | 918 180: "JS_ARRAY_TYPE", |
919 171: "JS_PROXY_TYPE", | 919 171: "JS_PROXY_TYPE", |
920 183: "JS_WEAK_MAP_TYPE", | 920 183: "JS_WEAK_MAP_TYPE", |
921 184: "JS_REGEXP_TYPE", | 921 184: "JS_WEAK_SET_TYPE", |
922 185: "JS_FUNCTION_TYPE", | 922 185: "JS_REGEXP_TYPE", |
| 923 186: "JS_FUNCTION_TYPE", |
923 170: "JS_FUNCTION_PROXY_TYPE", | 924 170: "JS_FUNCTION_PROXY_TYPE", |
924 165: "DEBUG_INFO_TYPE", | 925 165: "DEBUG_INFO_TYPE", |
925 166: "BREAK_POINT_INFO_TYPE", | 926 166: "BREAK_POINT_INFO_TYPE", |
926 } | 927 } |
927 | 928 |
928 | 929 |
929 # List of known V8 maps. Used to determine the instance type and name | 930 # List of known V8 maps. Used to determine the instance type and name |
930 # for maps that are part of the root-set and hence on the first page of | 931 # for maps that are part of the root-set and hence on the first page of |
931 # the map-space. Obtained by adding the code below to an IA32 release | 932 # the map-space. Obtained by adding the code below to an IA32 release |
932 # build with enabled snapshots to the end of the Isolate::Init method. | 933 # build with enabled snapshots to the end of the Isolate::Init method. |
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2231 options, args = parser.parse_args() | 2232 options, args = parser.parse_args() |
2232 if os.path.exists(options.objdump): | 2233 if os.path.exists(options.objdump): |
2233 disasm.OBJDUMP_BIN = options.objdump | 2234 disasm.OBJDUMP_BIN = options.objdump |
2234 OBJDUMP_BIN = options.objdump | 2235 OBJDUMP_BIN = options.objdump |
2235 else: | 2236 else: |
2236 print "Cannot find %s, falling back to default objdump" % options.objdump | 2237 print "Cannot find %s, falling back to default objdump" % options.objdump |
2237 if len(args) != 1: | 2238 if len(args) != 1: |
2238 parser.print_help() | 2239 parser.print_help() |
2239 sys.exit(1) | 2240 sys.exit(1) |
2240 AnalyzeMinidump(options, args[0]) | 2241 AnalyzeMinidump(options, args[0]) |
OLD | NEW |