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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 call_as_constructor_delegate) \ | 149 call_as_constructor_delegate) \ |
150 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ | 150 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ |
151 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ | 151 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ |
152 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ | 152 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ |
153 V(OUT_OF_MEMORY_INDEX, Object, out_of_memory) \ | 153 V(OUT_OF_MEMORY_INDEX, Object, out_of_memory) \ |
154 V(MAP_CACHE_INDEX, Object, map_cache) \ | 154 V(MAP_CACHE_INDEX, Object, map_cache) \ |
155 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ | 155 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ |
156 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ | 156 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ |
157 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \ | 157 V(ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, Object, \ |
158 error_message_for_code_gen_from_strings) \ | 158 error_message_for_code_gen_from_strings) \ |
| 159 V(SYMBOL_DELEGATE_INDEX, JSObject, symbol_delegate) \ |
159 V(TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, JSFunction, \ | 160 V(TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, JSFunction, \ |
160 to_complete_property_descriptor) \ | 161 to_complete_property_descriptor) \ |
161 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ | 162 V(DERIVED_HAS_TRAP_INDEX, JSFunction, derived_has_trap) \ |
162 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ | 163 V(DERIVED_GET_TRAP_INDEX, JSFunction, derived_get_trap) \ |
163 V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \ | 164 V(DERIVED_SET_TRAP_INDEX, JSFunction, derived_set_trap) \ |
164 V(PROXY_ENUMERATE_INDEX, JSFunction, proxy_enumerate) \ | 165 V(PROXY_ENUMERATE_INDEX, JSFunction, proxy_enumerate) \ |
165 V(OBSERVERS_NOTIFY_CHANGE_INDEX, JSFunction, observers_notify_change) \ | 166 V(OBSERVERS_NOTIFY_CHANGE_INDEX, JSFunction, observers_notify_change) \ |
166 V(OBSERVERS_DELIVER_CHANGES_INDEX, JSFunction, observers_deliver_changes) \ | 167 V(OBSERVERS_DELIVER_CHANGES_INDEX, JSFunction, observers_deliver_changes) \ |
167 V(RANDOM_SEED_INDEX, ByteArray, random_seed) | 168 V(RANDOM_SEED_INDEX, ByteArray, random_seed) |
168 | 169 |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 RUNTIME_CONTEXT_INDEX, | 280 RUNTIME_CONTEXT_INDEX, |
280 CALL_AS_FUNCTION_DELEGATE_INDEX, | 281 CALL_AS_FUNCTION_DELEGATE_INDEX, |
281 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, | 282 CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, |
282 SCRIPT_FUNCTION_INDEX, | 283 SCRIPT_FUNCTION_INDEX, |
283 OPAQUE_REFERENCE_FUNCTION_INDEX, | 284 OPAQUE_REFERENCE_FUNCTION_INDEX, |
284 CONTEXT_EXTENSION_FUNCTION_INDEX, | 285 CONTEXT_EXTENSION_FUNCTION_INDEX, |
285 OUT_OF_MEMORY_INDEX, | 286 OUT_OF_MEMORY_INDEX, |
286 EMBEDDER_DATA_INDEX, | 287 EMBEDDER_DATA_INDEX, |
287 ALLOW_CODE_GEN_FROM_STRINGS_INDEX, | 288 ALLOW_CODE_GEN_FROM_STRINGS_INDEX, |
288 ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, | 289 ERROR_MESSAGE_FOR_CODE_GEN_FROM_STRINGS_INDEX, |
| 290 SYMBOL_DELEGATE_INDEX, |
289 TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, | 291 TO_COMPLETE_PROPERTY_DESCRIPTOR_INDEX, |
290 DERIVED_HAS_TRAP_INDEX, | 292 DERIVED_HAS_TRAP_INDEX, |
291 DERIVED_GET_TRAP_INDEX, | 293 DERIVED_GET_TRAP_INDEX, |
292 DERIVED_SET_TRAP_INDEX, | 294 DERIVED_SET_TRAP_INDEX, |
293 PROXY_ENUMERATE_INDEX, | 295 PROXY_ENUMERATE_INDEX, |
294 OBSERVERS_NOTIFY_CHANGE_INDEX, | 296 OBSERVERS_NOTIFY_CHANGE_INDEX, |
295 OBSERVERS_DELIVER_CHANGES_INDEX, | 297 OBSERVERS_DELIVER_CHANGES_INDEX, |
296 RANDOM_SEED_INDEX, | 298 RANDOM_SEED_INDEX, |
297 | 299 |
298 // Properties from here are treated as weak references by the full GC. | 300 // Properties from here are treated as weak references by the full GC. |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 static bool IsBootstrappingOrGlobalObject(Object* object); | 460 static bool IsBootstrappingOrGlobalObject(Object* object); |
459 #endif | 461 #endif |
460 | 462 |
461 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize); | 463 STATIC_CHECK(kHeaderSize == Internals::kContextHeaderSize); |
462 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 464 STATIC_CHECK(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
463 }; | 465 }; |
464 | 466 |
465 } } // namespace v8::internal | 467 } } // namespace v8::internal |
466 | 468 |
467 #endif // V8_CONTEXTS_H_ | 469 #endif // V8_CONTEXTS_H_ |
OLD | NEW |