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

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

Issue 2842843004: Update postmortem metadata generator. (Closed)
Patch Set: Created 3 years, 7 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 { 'name': 'OddballException', 'value': 'Oddball::kException' }, 92 { 'name': 'OddballException', 'value': 'Oddball::kException' },
93 93
94 { 'name': 'prop_idx_first', 94 { 'name': 'prop_idx_first',
95 'value': 'DescriptorArray::kFirstIndex' }, 95 'value': 'DescriptorArray::kFirstIndex' },
96 { 'name': 'prop_kind_Data', 96 { 'name': 'prop_kind_Data',
97 'value': 'kData' }, 97 'value': 'kData' },
98 { 'name': 'prop_kind_Accessor', 98 { 'name': 'prop_kind_Accessor',
99 'value': 'kAccessor' }, 99 'value': 'kAccessor' },
100 { 'name': 'prop_kind_mask', 100 { 'name': 'prop_kind_mask',
101 'value': 'PropertyDetails::KindField::kMask' }, 101 'value': 'PropertyDetails::KindField::kMask' },
102 { 'name': 'prop_location_Descriptor',
103 'value': 'kDescriptor' },
104 { 'name': 'prop_location_Field',
105 'value': 'kField' },
106 { 'name': 'prop_location_mask',
107 'value': 'PropertyDetails::LocationField::kMask' },
108 { 'name': 'prop_location_shift',
109 'value': 'PropertyDetails::LocationField::kShift' },
110 { 'name': 'prop_attributes_NONE', 'value': 'NONE' },
111 { 'name': 'prop_attributes_READ_ONLY', 'value': 'READ_ONLY' },
112 { 'name': 'prop_attributes_DONT_ENUM', 'value': 'DONT_ENUM' },
113 { 'name': 'prop_attributes_DONT_DELETE', 'value': 'DONT_DELETE' },
114 { 'name': 'prop_attributes_mask',
115 'value': 'PropertyDetails::AttributesField::kMask' },
116 { 'name': 'prop_attributes_shift',
117 'value': 'PropertyDetails::AttributesField::kShift' },
102 { 'name': 'prop_index_mask', 118 { 'name': 'prop_index_mask',
103 'value': 'PropertyDetails::FieldIndexField::kMask' }, 119 'value': 'PropertyDetails::FieldIndexField::kMask' },
104 { 'name': 'prop_index_shift', 120 { 'name': 'prop_index_shift',
105 'value': 'PropertyDetails::FieldIndexField::kShift' }, 121 'value': 'PropertyDetails::FieldIndexField::kShift' },
106 { 'name': 'prop_representation_mask', 122 { 'name': 'prop_representation_mask',
107 'value': 'PropertyDetails::RepresentationField::kMask' }, 123 'value': 'PropertyDetails::RepresentationField::kMask' },
108 { 'name': 'prop_representation_shift', 124 { 'name': 'prop_representation_shift',
109 'value': 'PropertyDetails::RepresentationField::kShift' }, 125 'value': 'PropertyDetails::RepresentationField::kShift' },
110 { 'name': 'prop_representation_integer8', 126 { 'name': 'prop_representation_integer8',
111 'value': 'Representation::Kind::kInteger8' }, 127 'value': 'Representation::Kind::kInteger8' },
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 648
633 out.write(footer); 649 out.write(footer);
634 650
635 if (len(sys.argv) < 4): 651 if (len(sys.argv) < 4):
636 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); 652 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]);
637 sys.exit(2); 653 sys.exit(2);
638 654
639 load_objects(); 655 load_objects();
640 load_fields(); 656 load_fields();
641 emit_config(); 657 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