| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_field', | |
| 97 'value': 'DATA' }, | |
| 98 { 'name': 'prop_type_const_field', | |
| 99 'value': 'DATA_CONSTANT' }, | |
| 100 { 'name': 'prop_type_mask', | 96 { 'name': 'prop_type_mask', |
| 101 'value': 'PropertyDetails::TypeField::kMask' }, | 97 'value': 'PropertyDetails::TypeField::kMask' }, |
| 102 { 'name': 'prop_index_mask', | 98 { 'name': 'prop_index_mask', |
| 103 'value': 'PropertyDetails::FieldIndexField::kMask' }, | 99 'value': 'PropertyDetails::FieldIndexField::kMask' }, |
| 104 { 'name': 'prop_index_shift', | 100 { 'name': 'prop_index_shift', |
| 105 'value': 'PropertyDetails::FieldIndexField::kShift' }, | 101 'value': 'PropertyDetails::FieldIndexField::kShift' }, |
| 106 { 'name': 'prop_representation_mask', | 102 { 'name': 'prop_representation_mask', |
| 107 'value': 'PropertyDetails::RepresentationField::kMask' }, | 103 'value': 'PropertyDetails::RepresentationField::kMask' }, |
| 108 { 'name': 'prop_representation_shift', | 104 { 'name': 'prop_representation_shift', |
| 109 'value': 'PropertyDetails::RepresentationField::kShift' }, | 105 'value': 'PropertyDetails::RepresentationField::kShift' }, |
| (...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 | 626 |
| 631 out.write(footer); | 627 out.write(footer); |
| 632 | 628 |
| 633 if (len(sys.argv) < 4): | 629 if (len(sys.argv) < 4): |
| 634 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); | 630 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); |
| 635 sys.exit(2); | 631 sys.exit(2); |
| 636 | 632 |
| 637 load_objects(); | 633 load_objects(); |
| 638 load_fields(); | 634 load_fields(); |
| 639 emit_config(); | 635 emit_config(); |
| OLD | NEW |