Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: tools/gen-postmortem-metadata.py

Issue 1363403003: Update post-mortem metadata generation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # 3 #
4 # Copyright 2012 the V8 project authors. All rights reserved. 4 # Copyright 2012 the V8 project authors. All rights reserved.
5 # Redistribution and use in source and binary forms, with or without 5 # Redistribution and use in source and binary forms, with or without
6 # modification, are permitted provided that the following conditions are 6 # modification, are permitted provided that the following conditions are
7 # met: 7 # met:
8 # 8 #
9 # * Redistributions of source code must retain the above copyright 9 # * Redistributions of source code must retain the above copyright
10 # notice, this list of conditions and the following disclaimer. 10 # notice, this list of conditions and the following disclaimer.
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 'value': 'ScopeInfo::kVariablePartIndex' }, 143 'value': 'ScopeInfo::kVariablePartIndex' },
144 ]; 144 ];
145 145
146 # 146 #
147 # The following useful fields are missing accessors, so we define fake ones. 147 # The following useful fields are missing accessors, so we define fake ones.
148 # 148 #
149 extras_accessors = [ 149 extras_accessors = [
150 'HeapObject, map, Map, kMapOffset', 150 'HeapObject, map, Map, kMapOffset',
151 'JSObject, elements, Object, kElementsOffset', 151 'JSObject, elements, Object, kElementsOffset',
152 'FixedArray, data, uintptr_t, kHeaderSize', 152 'FixedArray, data, uintptr_t, kHeaderSize',
153 'JSArrayBuffer, backing_store, Object, kBackingStoreOffset',
154 'JSArrayBufferView, byte_offset, Object, kByteOffsetOffset',
153 'JSTypedArray, length, Object, kLengthOffset', 155 'JSTypedArray, length, Object, kLengthOffset',
154 'Map, instance_attributes, int, kInstanceAttributesOffset', 156 'Map, instance_attributes, int, kInstanceAttributesOffset',
155 'Map, inobject_properties_of_constructor_function_index_offset, int, kInObje ctPropertiesOrConstructorFunctionIndexOffset', 157 'Map, inobject_properties_or_constructor_function_index, int, kInObjectPrope rtiesOrConstructorFunctionIndexOffset',
156 'Map, instance_size, int, kInstanceSizeOffset', 158 'Map, instance_size, int, kInstanceSizeOffset',
157 'Map, bit_field, char, kBitFieldOffset', 159 'Map, bit_field, char, kBitFieldOffset',
158 'Map, bit_field2, char, kBitField2Offset', 160 'Map, bit_field2, char, kBitField2Offset',
159 'Map, bit_field3, int, kBitField3Offset', 161 'Map, bit_field3, int, kBitField3Offset',
160 'Map, prototype, Object, kPrototypeOffset', 162 'Map, prototype, Object, kPrototypeOffset',
161 'NameDictionaryShape, prefix_size, int, kPrefixSize', 163 'NameDictionaryShape, prefix_size, int, kPrefixSize',
162 'NameDictionaryShape, entry_size, int, kEntrySize', 164 'NameDictionaryShape, entry_size, int, kEntrySize',
163 'SeededNumberDictionaryShape, prefix_size, int, kPrefixSize', 165 'SeededNumberDictionaryShape, prefix_size, int, kPrefixSize',
164 'UnseededNumberDictionaryShape, prefix_size, int, kPrefixSize', 166 'UnseededNumberDictionaryShape, prefix_size, int, kPrefixSize',
165 'NumberDictionaryShape, entry_size, int, kEntrySize', 167 'NumberDictionaryShape, entry_size, int, kEntrySize',
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 535
534 out.write(footer); 536 out.write(footer);
535 537
536 if (len(sys.argv) < 4): 538 if (len(sys.argv) < 4):
537 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); 539 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]);
538 sys.exit(2); 540 sys.exit(2);
539 541
540 load_objects(); 542 load_objects();
541 load_fields(); 543 load_fields();
542 emit_config(); 544 emit_config();
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698