| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 { 'name': 'jsarray_buffer_was_neutered_shift', | 182 { 'name': 'jsarray_buffer_was_neutered_shift', |
| 183 'value': 'JSArrayBuffer::WasNeutered::kShift' }, | 183 'value': 'JSArrayBuffer::WasNeutered::kShift' }, |
| 184 ]; | 184 ]; |
| 185 | 185 |
| 186 # | 186 # |
| 187 # The following useful fields are missing accessors, so we define fake ones. | 187 # The following useful fields are missing accessors, so we define fake ones. |
| 188 # | 188 # |
| 189 extras_accessors = [ | 189 extras_accessors = [ |
| 190 'JSFunction, context, Context, kContextOffset', | 190 'JSFunction, context, Context, kContextOffset', |
| 191 'Context, closure_index, int, CLOSURE_INDEX', | 191 'Context, closure_index, int, CLOSURE_INDEX', |
| 192 'Context, global_object_index, int, GLOBAL_OBJECT_INDEX', | 192 'Context, native_context_index, int, NATIVE_CONTEXT_INDEX', |
| 193 'Context, previous_index, int, PREVIOUS_INDEX', | 193 'Context, previous_index, int, PREVIOUS_INDEX', |
| 194 'Context, min_context_slots, int, MIN_CONTEXT_SLOTS', | 194 'Context, min_context_slots, int, MIN_CONTEXT_SLOTS', |
| 195 'HeapObject, map, Map, kMapOffset', | 195 'HeapObject, map, Map, kMapOffset', |
| 196 'JSObject, elements, Object, kElementsOffset', | 196 'JSObject, elements, Object, kElementsOffset', |
| 197 'FixedArray, data, uintptr_t, kHeaderSize', | 197 'FixedArray, data, uintptr_t, kHeaderSize', |
| 198 'JSArrayBuffer, backing_store, Object, kBackingStoreOffset', | 198 'JSArrayBuffer, backing_store, Object, kBackingStoreOffset', |
| 199 'JSArrayBufferView, byte_offset, Object, kByteOffsetOffset', | 199 'JSArrayBufferView, byte_offset, Object, kByteOffsetOffset', |
| 200 'JSTypedArray, length, Object, kLengthOffset', | 200 'JSTypedArray, length, Object, kLengthOffset', |
| 201 'Map, instance_attributes, int, kInstanceAttributesOffset', | 201 'Map, instance_attributes, int, kInstanceAttributesOffset', |
| 202 'Map, inobject_properties_or_constructor_function_index, int, kInObjectPrope
rtiesOrConstructorFunctionIndexOffset', | 202 'Map, inobject_properties_or_constructor_function_index, int, kInObjectPrope
rtiesOrConstructorFunctionIndexOffset', |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 | 601 |
| 602 out.write(footer); | 602 out.write(footer); |
| 603 | 603 |
| 604 if (len(sys.argv) < 4): | 604 if (len(sys.argv) < 4): |
| 605 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); | 605 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); |
| 606 sys.exit(2); | 606 sys.exit(2); |
| 607 | 607 |
| 608 load_objects(); | 608 load_objects(); |
| 609 load_fields(); | 609 load_fields(); |
| 610 emit_config(); | 610 emit_config(); |
| OLD | NEW |