OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_CONTEXTS_H_ | 5 #ifndef V8_CONTEXTS_H_ |
6 #define V8_CONTEXTS_H_ | 6 #define V8_CONTEXTS_H_ |
7 | 7 |
8 #include "src/heap/heap.h" | 8 #include "src/heap/heap.h" |
9 #include "src/objects.h" | 9 #include "src/objects.h" |
10 | 10 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 V(STRICT_FUNCTION_MAP_INDEX, Map, strict_function_map) \ | 131 V(STRICT_FUNCTION_MAP_INDEX, Map, strict_function_map) \ |
132 V(STRONG_FUNCTION_MAP_INDEX, Map, strong_function_map) \ | 132 V(STRONG_FUNCTION_MAP_INDEX, Map, strong_function_map) \ |
133 V(SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ | 133 V(SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ |
134 sloppy_function_without_prototype_map) \ | 134 sloppy_function_without_prototype_map) \ |
135 V(STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ | 135 V(STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ |
136 strict_function_without_prototype_map) \ | 136 strict_function_without_prototype_map) \ |
137 V(STRONG_CONSTRUCTOR_MAP_INDEX, Map, strong_constructor_map) \ | 137 V(STRONG_CONSTRUCTOR_MAP_INDEX, Map, strong_constructor_map) \ |
138 V(BOUND_FUNCTION_MAP_INDEX, Map, bound_function_map) \ | 138 V(BOUND_FUNCTION_MAP_INDEX, Map, bound_function_map) \ |
139 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \ | 139 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \ |
140 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ | 140 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ |
141 V(ALIASED_ARGUMENTS_MAP_INDEX, Map, aliased_arguments_map) \ | 141 V(FAST_ALIASED_ARGUMENTS_MAP_INDEX, Map, fast_aliased_arguments_map) \ |
| 142 V(SLOW_ALIASED_ARGUMENTS_MAP_INDEX, Map, slow_aliased_arguments_map) \ |
142 V(STRICT_ARGUMENTS_MAP_INDEX, Map, strict_arguments_map) \ | 143 V(STRICT_ARGUMENTS_MAP_INDEX, Map, strict_arguments_map) \ |
143 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ | 144 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ |
144 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ | 145 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ |
145 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ | 146 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ |
146 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ | 147 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ |
147 V(FUNCTION_CACHE_INDEX, ObjectHashTable, function_cache) \ | 148 V(FUNCTION_CACHE_INDEX, ObjectHashTable, function_cache) \ |
148 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \ | 149 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \ |
149 V(NORMALIZED_MAP_CACHE_INDEX, Object, normalized_map_cache) \ | 150 V(NORMALIZED_MAP_CACHE_INDEX, Object, normalized_map_cache) \ |
150 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ | 151 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ |
151 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ | 152 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 GLOBAL_OBJECT_INDEX, | 331 GLOBAL_OBJECT_INDEX, |
331 MIN_CONTEXT_SLOTS, | 332 MIN_CONTEXT_SLOTS, |
332 | 333 |
333 // This slot holds the thrown value in catch contexts. | 334 // This slot holds the thrown value in catch contexts. |
334 THROWN_OBJECT_INDEX = MIN_CONTEXT_SLOTS, | 335 THROWN_OBJECT_INDEX = MIN_CONTEXT_SLOTS, |
335 | 336 |
336 // These slots are only in native contexts. | 337 // These slots are only in native contexts. |
337 GLOBAL_PROXY_INDEX = MIN_CONTEXT_SLOTS, | 338 GLOBAL_PROXY_INDEX = MIN_CONTEXT_SLOTS, |
338 SECURITY_TOKEN_INDEX, | 339 SECURITY_TOKEN_INDEX, |
339 SLOPPY_ARGUMENTS_MAP_INDEX, | 340 SLOPPY_ARGUMENTS_MAP_INDEX, |
340 ALIASED_ARGUMENTS_MAP_INDEX, | 341 FAST_ALIASED_ARGUMENTS_MAP_INDEX, |
| 342 SLOW_ALIASED_ARGUMENTS_MAP_INDEX, |
341 STRICT_ARGUMENTS_MAP_INDEX, | 343 STRICT_ARGUMENTS_MAP_INDEX, |
342 REGEXP_RESULT_MAP_INDEX, | 344 REGEXP_RESULT_MAP_INDEX, |
343 SLOPPY_FUNCTION_MAP_INDEX, | 345 SLOPPY_FUNCTION_MAP_INDEX, |
344 SLOPPY_FUNCTION_WITH_READONLY_PROTOTYPE_MAP_INDEX, | 346 SLOPPY_FUNCTION_WITH_READONLY_PROTOTYPE_MAP_INDEX, |
345 STRICT_FUNCTION_MAP_INDEX, | 347 STRICT_FUNCTION_MAP_INDEX, |
346 STRONG_FUNCTION_MAP_INDEX, | 348 STRONG_FUNCTION_MAP_INDEX, |
347 SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, | 349 SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, |
348 STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, | 350 STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, |
349 STRONG_CONSTRUCTOR_MAP_INDEX, | 351 STRONG_CONSTRUCTOR_MAP_INDEX, |
350 BOUND_FUNCTION_MAP_INDEX, | 352 BOUND_FUNCTION_MAP_INDEX, |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
662 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); | 664 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); |
663 #endif | 665 #endif |
664 | 666 |
665 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 667 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
666 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 668 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
667 }; | 669 }; |
668 | 670 |
669 } } // namespace v8::internal | 671 } } // namespace v8::internal |
670 | 672 |
671 #endif // V8_CONTEXTS_H_ | 673 #endif // V8_CONTEXTS_H_ |
OLD | NEW |