| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 # | 139 # |
| 140 extras_accessors = [ | 140 extras_accessors = [ |
| 141 'HeapObject, map, Map, kMapOffset', | 141 'HeapObject, map, Map, kMapOffset', |
| 142 'JSObject, elements, Object, kElementsOffset', | 142 'JSObject, elements, Object, kElementsOffset', |
| 143 'FixedArray, data, uintptr_t, kHeaderSize', | 143 'FixedArray, data, uintptr_t, kHeaderSize', |
| 144 'Map, instance_attributes, int, kInstanceAttributesOffset', | 144 'Map, instance_attributes, int, kInstanceAttributesOffset', |
| 145 'Map, inobject_properties, int, kInObjectPropertiesOffset', | 145 'Map, inobject_properties, int, kInObjectPropertiesOffset', |
| 146 'Map, instance_size, int, kInstanceSizeOffset', | 146 'Map, instance_size, int, kInstanceSizeOffset', |
| 147 'Map, bit_field, char, kBitFieldOffset', | 147 'Map, bit_field, char, kBitFieldOffset', |
| 148 'Map, bit_field2, char, kBitField2Offset', | 148 'Map, bit_field2, char, kBitField2Offset', |
| 149 'Map, bit_field3, SMI, kBitField3Offset', | 149 'Map, bit_field3, int, kBitField3Offset', |
| 150 'Map, prototype, Object, kPrototypeOffset', | 150 'Map, prototype, Object, kPrototypeOffset', |
| 151 'NameDictionaryShape, prefix_size, int, kPrefixSize', | 151 'NameDictionaryShape, prefix_size, int, kPrefixSize', |
| 152 'NameDictionaryShape, entry_size, int, kEntrySize', | 152 'NameDictionaryShape, entry_size, int, kEntrySize', |
| 153 'SeededNumberDictionaryShape, prefix_size, int, kPrefixSize', | 153 'SeededNumberDictionaryShape, prefix_size, int, kPrefixSize', |
| 154 'UnseededNumberDictionaryShape, prefix_size, int, kPrefixSize', | 154 'UnseededNumberDictionaryShape, prefix_size, int, kPrefixSize', |
| 155 'NumberDictionaryShape, entry_size, int, kEntrySize', | 155 'NumberDictionaryShape, entry_size, int, kEntrySize', |
| 156 'Oddball, kind_offset, int, kKindOffset', | 156 'Oddball, kind_offset, int, kKindOffset', |
| 157 'HeapNumber, value, double, kValueOffset', | 157 'HeapNumber, value, double, kValueOffset', |
| 158 'ConsString, first, String, kFirstOffset', | 158 'ConsString, first, String, kFirstOffset', |
| 159 'ConsString, second, String, kSecondOffset', | 159 'ConsString, second, String, kSecondOffset', |
| (...skipping 363 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 |