| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 { 'name': 'OddballNull', 'value': 'Oddball::kNull' }, | 84 { 'name': 'OddballNull', 'value': 'Oddball::kNull' }, |
| 85 { 'name': 'OddballArgumentMarker', 'value': 'Oddball::kArgumentMarker' }, | 85 { 'name': 'OddballArgumentMarker', 'value': 'Oddball::kArgumentMarker' }, |
| 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': 'FIELD' }, | 94 'value': 'DATA' }, |
| 95 { 'name': 'prop_type_mask', | 95 { 'name': 'prop_type_mask', |
| 96 'value': 'PropertyDetails::TypeField::kMask' }, | 96 'value': 'PropertyDetails::TypeField::kMask' }, |
| 97 { 'name': 'prop_index_mask', | 97 { 'name': 'prop_index_mask', |
| 98 'value': 'PropertyDetails::FieldIndexField::kMask' }, | 98 'value': 'PropertyDetails::FieldIndexField::kMask' }, |
| 99 { 'name': 'prop_index_shift', | 99 { 'name': 'prop_index_shift', |
| 100 'value': 'PropertyDetails::FieldIndexField::kShift' }, | 100 'value': 'PropertyDetails::FieldIndexField::kShift' }, |
| 101 | 101 |
| 102 { 'name': 'prop_desc_key', | 102 { 'name': 'prop_desc_key', |
| 103 'value': 'DescriptorArray::kDescriptorKey' }, | 103 'value': 'DescriptorArray::kDescriptorKey' }, |
| 104 { 'name': 'prop_desc_details', | 104 { 'name': 'prop_desc_details', |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 | 523 |
| 524 out.write(footer); | 524 out.write(footer); |
| 525 | 525 |
| 526 if (len(sys.argv) < 4): | 526 if (len(sys.argv) < 4): |
| 527 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); | 527 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); |
| 528 sys.exit(2); | 528 sys.exit(2); |
| 529 | 529 |
| 530 load_objects(); | 530 load_objects(); |
| 531 load_fields(); | 531 load_fields(); |
| 532 emit_config(); | 532 emit_config(); |
| OLD | NEW |