OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 call_as_constructor_delegate) \ | 159 call_as_constructor_delegate) \ |
160 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ | 160 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ |
161 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ | 161 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ |
162 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ | 162 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ |
163 V(OUT_OF_MEMORY_INDEX, Object, out_of_memory) \ | 163 V(OUT_OF_MEMORY_INDEX, Object, out_of_memory) \ |
164 V(MAP_CACHE_INDEX, Object, map_cache) \ | 164 V(MAP_CACHE_INDEX, Object, map_cache) \ |
165 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ | 165 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ |
166 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ | 166 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ |
167 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \ | 167 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \ |
168 error_message_for_code_gen_from_strings) \ | 168 error_message_for_code_gen_from_strings) \ |
| 169 V(RUN_MICROTASKS_INDEX, JSFunction, run_microtasks) \ |
169 V(TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, JSFunction, \ | 170 V(TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, JSFunction, \ |
170 to_complete_property_descriptor) \ | 171 to_complete_property_descriptor) \ |
171 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ | 172 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ |
172 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ | 173 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ |
173 V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \ | 174 V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \ |
174 V(PROXY_ENUMERATE_INDEX, JSFunction, proxy_enumerate) \ | 175 V(PROXY_ENUMERATE_INDEX, JSFunction, proxy_enumerate) \ |
175 V(OBSERVERS_NOTIFY_CHANGE_INDEX, JSFunction, observers_notify_change) \ | 176 V(OBSERVERS_NOTIFY_CHANGE_INDEX, JSFunction, observers_notify_change) \ |
176 V(OBSERVERS_ENQUEUE_SPLICE_INDEX, JSFunction, observers_enqueue_splice) \ | 177 V(OBSERVERS_ENQUEUE_SPLICE_INDEX, JSFunction, observers_enqueue_splice) \ |
177 V(OBSERVERS_BEGIN_SPLICE_INDEX, JSFunction, \ | 178 V(OBSERVERS_BEGIN_SPLICE_INDEX, JSFunction, \ |
178 observers_begin_perform_splice) \ | 179 observers_begin_perform_splice) \ |
179 V(OBSERVERS_END_SPLICE_INDEX, JSFunction, \ | 180 V(OBSERVERS_END_SPLICE_INDEX, JSFunction, \ |
180 observers_end_perform_splice) \ | 181 observers_end_perform_splice) \ |
181 V(OBSERVERS_DELIVER_CHANGES_INDEX, JSFunction, observers_deliver_changes) \ | |
182 V(GENERATOR_FUNCTION_MAP_INDEX, Map, generator_function_map) \ | 182 V(GENERATOR_FUNCTION_MAP_INDEX, Map, generator_function_map) \ |
183 V(STRICT_MODE_GENERATOR_FUNCTION_MAP_INDEX, Map, \ | 183 V(STRICT_MODE_GENERATOR_FUNCTION_MAP_INDEX, Map, \ |
184 strict_mode_generator_function_map) \ | 184 strict_mode_generator_function_map) \ |
185 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, \ | 185 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, \ |
186 generator_object_prototype_map) \ | 186 generator_object_prototype_map) \ |
187 V(GENERATOR_RESULT_MAP_INDEX, Map, generator_result_map) \ | 187 V(GENERATOR_RESULT_MAP_INDEX, Map, generator_result_map) \ |
188 V(RANDOM_SEED_INDEX, ByteArray, random_seed) | 188 V(RANDOM_SEED_INDEX, ByteArray, random_seed) |
189 | 189 |
190 // JSFunctions are pairs (context, function code), sometimes also called | 190 // JSFunctions are pairs (context, function code), sometimes also called |
191 // closures. A Context object is used to represent function contexts and | 191 // closures. A Context object is used to represent function contexts and |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 RUNTIME_CONTEXT_INDEX, | 311 RUNTIME_CONTEXT_INDEX, |
312 CALL_AS_FUNCTION_DELEGATE_INDEX, | 312 CALL_AS_FUNCTION_DELEGATE_INDEX, |
313 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, | 313 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, |
314 SCRIPT_FUNCTION_INDEX, | 314 SCRIPT_FUNCTION_INDEX, |
315 OPAQUE_REFERENCE_FUNCTION_INDEX, | 315 OPAQUE_REFERENCE_FUNCTION_INDEX, |
316 CONTEXT_EXTENSION_FUNCTION_INDEX, | 316 CONTEXT_EXTENSION_FUNCTION_INDEX, |
317 OUT_OF_MEMORY_INDEX, | 317 OUT_OF_MEMORY_INDEX, |
318 EMBEDDER_DATA_INDEX, | 318 EMBEDDER_DATA_INDEX, |
319 ALLOW_CODE_GEN_FROM_STRINGS_INDEX, | 319 ALLOW_CODE_GEN_FROM_STRINGS_INDEX, |
320 ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, | 320 ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, |
| 321 RUN_MICROTASKS_INDEX, |
321 TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, | 322 TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, |
322 DERIVED_HAS_TRAP_INDEX, | 323 DERIVED_HAS_TRAP_INDEX, |
323 DERIVED_GET_TRAP_INDEX, | 324 DERIVED_GET_TRAP_INDEX, |
324 DERIVED_SET_TRAP_INDEX, | 325 DERIVED_SET_TRAP_INDEX, |
325 PROXY_ENUMERATE_INDEX, | 326 PROXY_ENUMERATE_INDEX, |
326 OBSERVERS_NOTIFY_CHANGE_INDEX, | 327 OBSERVERS_NOTIFY_CHANGE_INDEX, |
327 OBSERVERS_ENQUEUE_SPLICE_INDEX, | 328 OBSERVERS_ENQUEUE_SPLICE_INDEX, |
328 OBSERVERS_BEGIN_SPLICE_INDEX, | 329 OBSERVERS_BEGIN_SPLICE_INDEX, |
329 OBSERVERS_END_SPLICE_INDEX, | 330 OBSERVERS_END_SPLICE_INDEX, |
330 OBSERVERS_DELIVER_CHANGES_INDEX, | |
331 GENERATOR_FUNCTION_MAP_INDEX, | 331 GENERATOR_FUNCTION_MAP_INDEX, |
332 STRICT_MODE_GENERATOR_FUNCTION_MAP_INDEX, | 332 STRICT_MODE_GENERATOR_FUNCTION_MAP_INDEX, |
333 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, | 333 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, |
334 GENERATOR_RESULT_MAP_INDEX, | 334 GENERATOR_RESULT_MAP_INDEX, |
335 RANDOM_SEED_INDEX, | 335 RANDOM_SEED_INDEX, |
336 | 336 |
337 // Properties from here are treated as weak references by the full GC. | 337 // Properties from here are treated as weak references by the full GC. |
338 // Scavenge treats them as strong references. | 338 // Scavenge treats them as strong references. |
339 OPTIMIZED_FUNCTIONS_LIST, // Weak. | 339 OPTIMIZED_FUNCTIONS_LIST, // Weak. |
340 OPTIMIZED_CODE_LIST, // Weak. | 340 OPTIMIZED_CODE_LIST, // Weak. |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); | 521 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); |
522 #endif | 522 #endif |
523 | 523 |
524 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize); | 524 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize); |
525 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 525 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
526 }; | 526 }; |
527 | 527 |
528 } } // namespace v8::internal | 528 } } // namespace v8::internal |
529 | 529 |
530 #endif // V8_CONTEXTS_H_ | 530 #endif // V8_CONTEXTS_H_ |
OLD | NEW |