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

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

Issue 2105553006: Update tools/gen-postmortem-metadata.py after recent modifications. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 'value': 'Context::PREVIOUS_INDEX' }, 191 'value': 'Context::PREVIOUS_INDEX' },
192 { 'name': 'context_idx_ext', 192 { 'name': 'context_idx_ext',
193 'value': 'Context::EXTENSION_INDEX' }, 193 'value': 'Context::EXTENSION_INDEX' },
194 { 'name': 'context_min_slots', 194 { 'name': 'context_min_slots',
195 'value': 'Context::MIN_CONTEXT_SLOTS' }, 195 'value': 'Context::MIN_CONTEXT_SLOTS' },
196 196
197 { 'name': 'namedictionaryshape_prefix_size', 197 { 'name': 'namedictionaryshape_prefix_size',
198 'value': 'NameDictionaryShape::kPrefixSize' }, 198 'value': 'NameDictionaryShape::kPrefixSize' },
199 { 'name': 'namedictionaryshape_entry_size', 199 { 'name': 'namedictionaryshape_entry_size',
200 'value': 'NameDictionaryShape::kEntrySize' }, 200 'value': 'NameDictionaryShape::kEntrySize' },
201 { 'name': 'globaldictionaryshape_entry_size',
202 'value': 'GlobalDictionaryShape::kEntrySize' },
201 203
202 { 'name': 'namedictionary_prefix_start_index', 204 { 'name': 'namedictionary_prefix_start_index',
203 'value': 'NameDictionary::kPrefixStartIndex' }, 205 'value': 'NameDictionary::kPrefixStartIndex' },
204 206
205 { 'name': 'seedednumberdictionaryshape_prefix_size', 207 { 'name': 'seedednumberdictionaryshape_prefix_size',
206 'value': 'SeededNumberDictionaryShape::kPrefixSize' }, 208 'value': 'SeededNumberDictionaryShape::kPrefixSize' },
209 { 'name': 'seedednumberdictionaryshape_entry_size',
210 'value': 'SeededNumberDictionaryShape::kEntrySize' },
207 211
208 { 'name': 'unseedednumberdictionaryshape_prefix_size', 212 { 'name': 'unseedednumberdictionaryshape_prefix_size',
209 'value': 'UnseededNumberDictionaryShape::kPrefixSize' }, 213 'value': 'UnseededNumberDictionaryShape::kPrefixSize' },
210 214 { 'name': 'unseedednumberdictionaryshape_entry_size',
211 { 'name': 'numberdictionaryshape_entry_size', 215 'value': 'UnseededNumberDictionaryShape::kEntrySize' }
212 'value': 'NumberDictionaryShape::kEntrySize' }
213 ]; 216 ];
214 217
215 # 218 #
216 # The following useful fields are missing accessors, so we define fake ones. 219 # The following useful fields are missing accessors, so we define fake ones.
217 # Please note that extra accessors should _only_ be added to expose offsets that 220 # Please note that extra accessors should _only_ be added to expose offsets that
218 # can be used to access actual V8 objects' properties. They should not be added 221 # can be used to access actual V8 objects' properties. They should not be added
219 # for exposing other values. For instance, enumeration values or class' 222 # for exposing other values. For instance, enumeration values or class'
220 # constants should be exposed by adding an entry in the "consts_misc" table, not 223 # constants should be exposed by adding an entry in the "consts_misc" table, not
221 # in this "extras_accessors" table. 224 # in this "extras_accessors" table.
222 # 225 #
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 629
627 out.write(footer); 630 out.write(footer);
628 631
629 if (len(sys.argv) < 4): 632 if (len(sys.argv) < 4):
630 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); 633 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]);
631 sys.exit(2); 634 sys.exit(2);
632 635
633 load_objects(); 636 load_objects();
634 load_fields(); 637 load_fields();
635 emit_config(); 638 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