Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Side by Side Diff: tools/gen-postmortem-metadata.py

Issue 1542753002: postmortem: Remove Context::GLOBAL_OBJECT_INDEX (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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();
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698