Chromium Code Reviews| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 108 'FixedArray, data, uintptr_t, kHeaderSize', | 108 'FixedArray, data, uintptr_t, kHeaderSize', |
| 109 'Map, instance_attributes, int, kInstanceAttributesOffset', | 109 'Map, instance_attributes, int, kInstanceAttributesOffset', |
| 110 'Map, instance_descriptors, int, kInstanceDescriptorsOrBitField3Offset', | 110 'Map, instance_descriptors, int, kInstanceDescriptorsOrBitField3Offset', |
| 111 'Map, inobject_properties, int, kInObjectPropertiesOffset', | 111 'Map, inobject_properties, int, kInObjectPropertiesOffset', |
| 112 'Map, instance_size, int, kInstanceSizeOffset', | 112 'Map, instance_size, int, kInstanceSizeOffset', |
| 113 'HeapNumber, value, double, kValueOffset', | 113 'HeapNumber, value, double, kValueOffset', |
| 114 'ConsString, first, String, kFirstOffset', | 114 'ConsString, first, String, kFirstOffset', |
| 115 'ConsString, second, String, kSecondOffset', | 115 'ConsString, second, String, kSecondOffset', |
| 116 'ExternalString, resource, Object, kResourceOffset', | 116 'ExternalString, resource, Object, kResourceOffset', |
| 117 'SeqAsciiString, chars, char, kHeaderSize', | 117 'SeqAsciiString, chars, char, kHeaderSize', |
| 118 'SharedFunctionInfo, code, Code, kCodeOffset', | |
| 119 'Code, instruction_start, int, kHeaderSize', | |
|
Vyacheslav Egorov (Chromium)
2012/02/17 11:31:47
instruction_start is of type Address not of type i
| |
| 120 'Code, instruction_size, int, kInstructionSizeOffset', | |
| 118 ]; | 121 ]; |
| 119 | 122 |
| 120 # | 123 # |
| 121 # The following is a whitelist of classes we expect to find when scanning the | 124 # The following is a whitelist of classes we expect to find when scanning the |
| 122 # source code. This list is not exhaustive, but it's still useful to identify | 125 # source code. This list is not exhaustive, but it's still useful to identify |
| 123 # when this script gets out of sync with the source. See load_objects(). | 126 # when this script gets out of sync with the source. See load_objects(). |
| 124 # | 127 # |
| 125 expected_classes = [ | 128 expected_classes = [ |
| 126 'ConsString', 'FixedArray', 'HeapNumber', 'JSArray', 'JSFunction', | 129 'ConsString', 'FixedArray', 'HeapNumber', 'JSArray', 'JSFunction', |
| 127 'JSObject', 'JSRegExp', 'JSValue', 'Map', 'Oddball', 'Script', | 130 'JSObject', 'JSRegExp', 'JSValue', 'Map', 'Oddball', 'Script', |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 469 | 472 |
| 470 out.write(footer); | 473 out.write(footer); |
| 471 | 474 |
| 472 if (len(sys.argv) < 4): | 475 if (len(sys.argv) < 4): |
| 473 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); | 476 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); |
| 474 sys.exit(2); | 477 sys.exit(2); |
| 475 | 478 |
| 476 load_objects(); | 479 load_objects(); |
| 477 load_fields(); | 480 load_fields(); |
| 478 emit_config(); | 481 emit_config(); |
| OLD | NEW |