| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 'value': 'ScopeInfo::kVariablePartIndex' }, | 143 'value': 'ScopeInfo::kVariablePartIndex' }, |
| 144 ]; | 144 ]; |
| 145 | 145 |
| 146 # | 146 # |
| 147 # The following useful fields are missing accessors, so we define fake ones. | 147 # The following useful fields are missing accessors, so we define fake ones. |
| 148 # | 148 # |
| 149 extras_accessors = [ | 149 extras_accessors = [ |
| 150 'HeapObject, map, Map, kMapOffset', | 150 'HeapObject, map, Map, kMapOffset', |
| 151 'JSObject, elements, Object, kElementsOffset', | 151 'JSObject, elements, Object, kElementsOffset', |
| 152 'FixedArray, data, uintptr_t, kHeaderSize', | 152 'FixedArray, data, uintptr_t, kHeaderSize', |
| 153 'JSTypedArray, length, Object, kLengthOffset', |
| 153 'Map, instance_attributes, int, kInstanceAttributesOffset', | 154 'Map, instance_attributes, int, kInstanceAttributesOffset', |
| 154 'Map, inobject_properties_of_constructor_function_index_offset, int, kInObje
ctPropertiesOrConstructorFunctionIndexOffset', | 155 'Map, inobject_properties_of_constructor_function_index_offset, int, kInObje
ctPropertiesOrConstructorFunctionIndexOffset', |
| 155 'Map, instance_size, int, kInstanceSizeOffset', | 156 'Map, instance_size, int, kInstanceSizeOffset', |
| 156 'Map, bit_field, char, kBitFieldOffset', | 157 'Map, bit_field, char, kBitFieldOffset', |
| 157 'Map, bit_field2, char, kBitField2Offset', | 158 'Map, bit_field2, char, kBitField2Offset', |
| 158 'Map, bit_field3, int, kBitField3Offset', | 159 'Map, bit_field3, int, kBitField3Offset', |
| 159 'Map, prototype, Object, kPrototypeOffset', | 160 'Map, prototype, Object, kPrototypeOffset', |
| 160 'NameDictionaryShape, prefix_size, int, kPrefixSize', | 161 'NameDictionaryShape, prefix_size, int, kPrefixSize', |
| 161 'NameDictionaryShape, entry_size, int, kEntrySize', | 162 'NameDictionaryShape, entry_size, int, kEntrySize', |
| 162 'SeededNumberDictionaryShape, prefix_size, int, kPrefixSize', | 163 'SeededNumberDictionaryShape, prefix_size, int, kPrefixSize', |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 | 533 |
| 533 out.write(footer); | 534 out.write(footer); |
| 534 | 535 |
| 535 if (len(sys.argv) < 4): | 536 if (len(sys.argv) < 4): |
| 536 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); | 537 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); |
| 537 sys.exit(2); | 538 sys.exit(2); |
| 538 | 539 |
| 539 load_objects(); | 540 load_objects(); |
| 540 load_fields(); | 541 load_fields(); |
| 541 emit_config(); | 542 emit_config(); |
| OLD | NEW |