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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 { 'name': 'off_fp_args', | 161 { 'name': 'off_fp_args', |
162 'value': 'JavaScriptFrameConstants::kLastParameterOffset' }, | 162 'value': 'JavaScriptFrameConstants::kLastParameterOffset' }, |
163 | 163 |
164 { 'name': 'scopeinfo_idx_nparams', | 164 { 'name': 'scopeinfo_idx_nparams', |
165 'value': 'ScopeInfo::kParameterCount' }, | 165 'value': 'ScopeInfo::kParameterCount' }, |
166 { 'name': 'scopeinfo_idx_nstacklocals', | 166 { 'name': 'scopeinfo_idx_nstacklocals', |
167 'value': 'ScopeInfo::kStackLocalCount' }, | 167 'value': 'ScopeInfo::kStackLocalCount' }, |
168 { 'name': 'scopeinfo_idx_ncontextlocals', | 168 { 'name': 'scopeinfo_idx_ncontextlocals', |
169 'value': 'ScopeInfo::kContextLocalCount' }, | 169 'value': 'ScopeInfo::kContextLocalCount' }, |
170 { 'name': 'scopeinfo_idx_ncontextglobals', | 170 { 'name': 'scopeinfo_idx_ncontextglobals', |
171 'value': 'ScopeInfo::kContextLocalCount' }, | 171 'value': 'ScopeInfo::kContextGlobalCount' }, |
172 { 'name': 'scopeinfo_idx_first_vars', | 172 { 'name': 'scopeinfo_idx_first_vars', |
173 'value': 'ScopeInfo::kVariablePartIndex' }, | 173 'value': 'ScopeInfo::kVariablePartIndex' }, |
174 | 174 |
175 { 'name': 'sharedfunctioninfo_start_position_mask', | 175 { 'name': 'sharedfunctioninfo_start_position_mask', |
176 'value': 'SharedFunctionInfo::kStartPositionMask' }, | 176 'value': 'SharedFunctionInfo::kStartPositionMask' }, |
177 { 'name': 'sharedfunctioninfo_start_position_shift', | 177 { 'name': 'sharedfunctioninfo_start_position_shift', |
178 'value': 'SharedFunctionInfo::kStartPositionShift' }, | 178 'value': 'SharedFunctionInfo::kStartPositionShift' }, |
179 | 179 |
180 { 'name': 'jsarray_buffer_was_neutered_mask', | 180 { 'name': 'jsarray_buffer_was_neutered_mask', |
181 'value': 'JSArrayBuffer::WasNeutered::kMask' }, | 181 'value': 'JSArrayBuffer::WasNeutered::kMask' }, |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 | 582 |
583 out.write(footer); | 583 out.write(footer); |
584 | 584 |
585 if (len(sys.argv) < 4): | 585 if (len(sys.argv) < 4): |
586 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); | 586 print('usage: %s output.cc objects.h objects-inl.h' % sys.argv[0]); |
587 sys.exit(2); | 587 sys.exit(2); |
588 | 588 |
589 load_objects(); | 589 load_objects(); |
590 load_fields(); | 590 load_fields(); |
591 emit_config(); | 591 emit_config(); |
OLD | NEW |