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

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

Issue 1308113007: fix gen-postmortem-metadata.py for kInObjectPropertiesOffset (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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 ]; 135 ];
136 136
137 # 137 #
138 # The following useful fields are missing accessors, so we define fake ones. 138 # The following useful fields are missing accessors, so we define fake ones.
139 # 139 #
140 extras_accessors = [ 140 extras_accessors = [
141 'HeapObject, map, Map, kMapOffset', 141 'HeapObject, map, Map, kMapOffset',
142 'JSObject, elements, Object, kElementsOffset', 142 'JSObject, elements, Object, kElementsOffset',
143 'FixedArray, data, uintptr_t, kHeaderSize', 143 'FixedArray, data, uintptr_t, kHeaderSize',
144 'Map, instance_attributes, int, kInstanceAttributesOffset', 144 'Map, instance_attributes, int, kInstanceAttributesOffset',
145 'Map, inobject_properties, int, kInObjectPropertiesOffset', 145 'Map, inobject_properties_of_constructor_function_index_offset, int, kInObje ctPropertiesOrConstructorFunctionIndexOffset',
146 'Map, instance_size, int, kInstanceSizeOffset', 146 'Map, instance_size, int, kInstanceSizeOffset',
147 'Map, bit_field, char, kBitFieldOffset', 147 'Map, bit_field, char, kBitFieldOffset',
148 'Map, bit_field2, char, kBitField2Offset', 148 'Map, bit_field2, char, kBitField2Offset',
149 'Map, bit_field3, SMI, kBitField3Offset', 149 'Map, bit_field3, SMI, kBitField3Offset',
150 'Map, prototype, Object, kPrototypeOffset', 150 'Map, prototype, Object, kPrototypeOffset',
151 'NameDictionaryShape, prefix_size, int, kPrefixSize', 151 'NameDictionaryShape, prefix_size, int, kPrefixSize',
152 'NameDictionaryShape, entry_size, int, kEntrySize', 152 'NameDictionaryShape, entry_size, int, kEntrySize',
153 'SeededNumberDictionaryShape, prefix_size, int, kPrefixSize', 153 'SeededNumberDictionaryShape, prefix_size, int, kPrefixSize',
154 'UnseededNumberDictionaryShape, prefix_size, int, kPrefixSize', 154 'UnseededNumberDictionaryShape, prefix_size, int, kPrefixSize',
155 'NumberDictionaryShape, entry_size, int, kEntrySize', 155 'NumberDictionaryShape, entry_size, int, kEntrySize',
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 523
524 out.write(footer); 524 out.write(footer);
525 525
526 if (len(sys.argv) < 4): 526 if (len(sys.argv) < 4):
527 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); 527 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]);
528 sys.exit(2); 528 sys.exit(2);
529 529
530 load_objects(); 530 load_objects();
531 load_fields(); 531 load_fields();
532 emit_config(); 532 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