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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \ | 153 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \ |
154 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ | 154 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ |
155 V(ALIASED_ARGUMENTS_MAP_INDEX, Map, aliased_arguments_map) \ | 155 V(ALIASED_ARGUMENTS_MAP_INDEX, Map, aliased_arguments_map) \ |
156 V(STRICT_ARGUMENTS_MAP_INDEX, Map, strict_arguments_map) \ | 156 V(STRICT_ARGUMENTS_MAP_INDEX, Map, strict_arguments_map) \ |
157 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ | 157 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ |
158 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ | 158 V(MAKE_MESSAGE_FUN_INDEX, JSFunction, make_message_fun) \ |
159 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ | 159 V(GET_STACK_TRACE_LINE_INDEX, JSFunction, get_stack_trace_line_fun) \ |
160 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ | 160 V(CONFIGURE_GLOBAL_INDEX, JSFunction, configure_global_fun) \ |
161 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ | 161 V(FUNCTION_CACHE_INDEX, JSObject, function_cache) \ |
162 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \ | 162 V(JSFUNCTION_RESULT_CACHES_INDEX, FixedArray, jsfunction_result_caches) \ |
163 V(NORMALIZED_MAP_CACHE_INDEX, NormalizedMapCache, normalized_map_cache) \ | 163 V(NORMALIZED_MAP_CACHE_INDEX, Object, normalized_map_cache) \ |
164 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ | 164 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ |
165 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ | 165 V(CALL_AS_FUNCTION_DELEGATE_INDEX, JSFunction, call_as_function_delegate) \ |
166 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ | 166 V(CALL_AS_CONSTRUCTOR_DELEGATE_INDEX, JSFunction, \ |
167 call_as_constructor_delegate) \ | 167 call_as_constructor_delegate) \ |
168 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ | 168 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ |
169 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ | 169 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ |
170 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ | 170 V(CONTEXT_EXTENSION_FUNCTION_INDEX, JSFunction, context_extension_function) \ |
171 V(MAP_CACHE_INDEX, Object, map_cache) \ | 171 V(MAP_CACHE_INDEX, Object, map_cache) \ |
172 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ | 172 V(EMBEDDER_DATA_INDEX, FixedArray, embedder_data) \ |
173 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ | 173 V(ALLOW_CODE_GEN_FROM_STRINGS_INDEX, Object, allow_code_gen_from_strings) \ |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); | 582 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); |
583 #endif | 583 #endif |
584 | 584 |
585 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 585 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
586 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 586 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
587 }; | 587 }; |
588 | 588 |
589 } } // namespace v8::internal | 589 } } // namespace v8::internal |
590 | 590 |
591 #endif // V8_CONTEXTS_H_ | 591 #endif // V8_CONTEXTS_H_ |
OLD | NEW |