| OLD | NEW |
| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 { 'name': 'OddballArgumentsMarker', 'value': 'Oddball::kArgumentsMarker' }, | 85 { 'name': 'OddballArgumentsMarker', 'value': 'Oddball::kArgumentsMarker' }, |
| 86 { 'name': 'OddballUndefined', 'value': 'Oddball::kUndefined' }, | 86 { 'name': 'OddballUndefined', 'value': 'Oddball::kUndefined' }, |
| 87 { 'name': 'OddballUninitialized', 'value': 'Oddball::kUninitialized' }, | 87 { 'name': 'OddballUninitialized', 'value': 'Oddball::kUninitialized' }, |
| 88 { 'name': 'OddballOther', 'value': 'Oddball::kOther' }, | 88 { 'name': 'OddballOther', 'value': 'Oddball::kOther' }, |
| 89 { 'name': 'OddballException', 'value': 'Oddball::kException' }, | 89 { 'name': 'OddballException', 'value': 'Oddball::kException' }, |
| 90 | 90 |
| 91 { 'name': 'prop_idx_first', | 91 { 'name': 'prop_idx_first', |
| 92 'value': 'DescriptorArray::kFirstIndex' }, | 92 'value': 'DescriptorArray::kFirstIndex' }, |
| 93 { 'name': 'prop_type_field', | 93 { 'name': 'prop_type_field', |
| 94 'value': 'DATA' }, | 94 'value': 'DATA' }, |
| 95 { 'name': 'prop_type_const_field', |
| 96 'value': 'DATA_CONSTANT' }, |
| 95 { 'name': 'prop_type_mask', | 97 { 'name': 'prop_type_mask', |
| 96 'value': 'PropertyDetails::TypeField::kMask' }, | 98 'value': 'PropertyDetails::TypeField::kMask' }, |
| 97 { 'name': 'prop_index_mask', | 99 { 'name': 'prop_index_mask', |
| 98 'value': 'PropertyDetails::FieldIndexField::kMask' }, | 100 'value': 'PropertyDetails::FieldIndexField::kMask' }, |
| 99 { 'name': 'prop_index_shift', | 101 { 'name': 'prop_index_shift', |
| 100 'value': 'PropertyDetails::FieldIndexField::kShift' }, | 102 'value': 'PropertyDetails::FieldIndexField::kShift' }, |
| 101 { 'name': 'prop_representation_mask', | 103 { 'name': 'prop_representation_mask', |
| 102 'value': 'PropertyDetails::RepresentationField::kMask' }, | 104 'value': 'PropertyDetails::RepresentationField::kMask' }, |
| 103 { 'name': 'prop_representation_shift', | 105 { 'name': 'prop_representation_shift', |
| 104 'value': 'PropertyDetails::RepresentationField::kShift' }, | 106 'value': 'PropertyDetails::RepresentationField::kShift' }, |
| (...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 | 603 |
| 602 out.write(footer); | 604 out.write(footer); |
| 603 | 605 |
| 604 if (len(sys.argv) < 4): | 606 if (len(sys.argv) < 4): |
| 605 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); | 607 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); |
| 606 sys.exit(2); | 608 sys.exit(2); |
| 607 | 609 |
| 608 load_objects(); | 610 load_objects(); |
| 609 load_fields(); | 611 load_fields(); |
| 610 emit_config(); | 612 emit_config(); |
| OLD | NEW |