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

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

Issue 2636893002: [runtime] Fix postmortem metadata generator. (Closed)
Patch Set: Created 3 years, 11 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 { 'name': 'OddballTheHole', 'value': 'Oddball::kTheHole' }, 86 { 'name': 'OddballTheHole', 'value': 'Oddball::kTheHole' },
87 { 'name': 'OddballNull', 'value': 'Oddball::kNull' }, 87 { 'name': 'OddballNull', 'value': 'Oddball::kNull' },
88 { 'name': 'OddballArgumentsMarker', 'value': 'Oddball::kArgumentsMarker' }, 88 { 'name': 'OddballArgumentsMarker', 'value': 'Oddball::kArgumentsMarker' },
89 { 'name': 'OddballUndefined', 'value': 'Oddball::kUndefined' }, 89 { 'name': 'OddballUndefined', 'value': 'Oddball::kUndefined' },
90 { 'name': 'OddballUninitialized', 'value': 'Oddball::kUninitialized' }, 90 { 'name': 'OddballUninitialized', 'value': 'Oddball::kUninitialized' },
91 { 'name': 'OddballOther', 'value': 'Oddball::kOther' }, 91 { 'name': 'OddballOther', 'value': 'Oddball::kOther' },
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_type_mask', 96 { 'name': 'prop_kind_Data',
97 'value': 'PropertyDetails::TypeField::kMask' }, 97 'value': 'kData' },
98 { 'name': 'prop_kind_Accessor',
99 'value': 'kAccessor' },
100 { 'name': 'prop_kind_mask',
101 'value': 'PropertyDetails::KindField::kMask' },
98 { 'name': 'prop_index_mask', 102 { 'name': 'prop_index_mask',
99 'value': 'PropertyDetails::FieldIndexField::kMask' }, 103 'value': 'PropertyDetails::FieldIndexField::kMask' },
100 { 'name': 'prop_index_shift', 104 { 'name': 'prop_index_shift',
101 'value': 'PropertyDetails::FieldIndexField::kShift' }, 105 'value': 'PropertyDetails::FieldIndexField::kShift' },
102 { 'name': 'prop_representation_mask', 106 { 'name': 'prop_representation_mask',
103 'value': 'PropertyDetails::RepresentationField::kMask' }, 107 'value': 'PropertyDetails::RepresentationField::kMask' },
104 { 'name': 'prop_representation_shift', 108 { 'name': 'prop_representation_shift',
105 'value': 'PropertyDetails::RepresentationField::kShift' }, 109 'value': 'PropertyDetails::RepresentationField::kShift' },
106 { 'name': 'prop_representation_integer8', 110 { 'name': 'prop_representation_integer8',
107 'value': 'Representation::Kind::kInteger8' }, 111 'value': 'Representation::Kind::kInteger8' },
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 630
627 out.write(footer); 631 out.write(footer);
628 632
629 if (len(sys.argv) < 4): 633 if (len(sys.argv) < 4):
630 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); 634 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]);
631 sys.exit(2); 635 sys.exit(2);
632 636
633 load_objects(); 637 load_objects();
634 load_fields(); 638 load_fields();
635 emit_config(); 639 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