| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 { 'name': 'off_fp_context', | 125 { 'name': 'off_fp_context', |
| 126 'value': 'StandardFrameConstants::kContextOffset' }, | 126 'value': 'StandardFrameConstants::kContextOffset' }, |
| 127 { 'name': 'off_fp_constant_pool', | 127 { 'name': 'off_fp_constant_pool', |
| 128 'value': 'StandardFrameConstants::kConstantPoolOffset' }, | 128 'value': 'StandardFrameConstants::kConstantPoolOffset' }, |
| 129 { 'name': 'off_fp_marker', | 129 { 'name': 'off_fp_marker', |
| 130 'value': 'StandardFrameConstants::kMarkerOffset' }, | 130 'value': 'StandardFrameConstants::kMarkerOffset' }, |
| 131 { 'name': 'off_fp_function', | 131 { 'name': 'off_fp_function', |
| 132 'value': 'JavaScriptFrameConstants::kFunctionOffset' }, | 132 'value': 'JavaScriptFrameConstants::kFunctionOffset' }, |
| 133 { 'name': 'off_fp_args', | 133 { 'name': 'off_fp_args', |
| 134 'value': 'JavaScriptFrameConstants::kLastParameterOffset' }, | 134 'value': 'JavaScriptFrameConstants::kLastParameterOffset' }, |
| 135 |
| 136 { 'name': 'scopeinfo_idx_nparams', |
| 137 'value': 'ScopeInfo::kParameterCount' }, |
| 138 { 'name': 'scopeinfo_idx_nstacklocals', |
| 139 'value': 'ScopeInfo::kStackLocalCount' }, |
| 140 { 'name': 'scopeinfo_idx_ncontextlocals', |
| 141 'value': 'ScopeInfo::kContextLocalCount' }, |
| 142 { 'name': 'scopeinfo_idx_first_vars', |
| 143 'value': 'ScopeInfo::kVariablePartIndex' }, |
| 135 ]; | 144 ]; |
| 136 | 145 |
| 137 # | 146 # |
| 138 # 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. |
| 139 # | 148 # |
| 140 extras_accessors = [ | 149 extras_accessors = [ |
| 141 'HeapObject, map, Map, kMapOffset', | 150 'HeapObject, map, Map, kMapOffset', |
| 142 'JSObject, elements, Object, kElementsOffset', | 151 'JSObject, elements, Object, kElementsOffset', |
| 143 'FixedArray, data, uintptr_t, kHeaderSize', | 152 'FixedArray, data, uintptr_t, kHeaderSize', |
| 144 'Map, instance_attributes, int, kInstanceAttributesOffset', | 153 'Map, instance_attributes, int, kInstanceAttributesOffset', |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 523 | 532 |
| 524 out.write(footer); | 533 out.write(footer); |
| 525 | 534 |
| 526 if (len(sys.argv) < 4): | 535 if (len(sys.argv) < 4): |
| 527 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); | 536 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); |
| 528 sys.exit(2); | 537 sys.exit(2); |
| 529 | 538 |
| 530 load_objects(); | 539 load_objects(); |
| 531 load_fields(); | 540 load_fields(); |
| 532 emit_config(); | 541 emit_config(); |
| OLD | NEW |