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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 V(JS_SET_FUN_INDEX, JSFunction, js_set_fun) \ | 212 V(JS_SET_FUN_INDEX, JSFunction, js_set_fun) \ |
213 V(JS_SET_MAP_INDEX, Map, js_set_map) \ | 213 V(JS_SET_MAP_INDEX, Map, js_set_map) \ |
214 V(MAP_CACHE_INDEX, Object, map_cache) \ | 214 V(MAP_CACHE_INDEX, Object, map_cache) \ |
215 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \ | 215 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \ |
216 V(STRING_ITERATOR_MAP_INDEX, Map, string_iterator_map) \ | 216 V(STRING_ITERATOR_MAP_INDEX, Map, string_iterator_map) \ |
217 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ | 217 V(MESSAGE_LISTENERS_INDEX, JSObject, message_listeners) \ |
218 V(NATIVES_UTILS_OBJECT_INDEX, Object, natives_utils_object) \ | 218 V(NATIVES_UTILS_OBJECT_INDEX, Object, natives_utils_object) \ |
219 V(NORMALIZED_MAP_CACHE_INDEX, Object, normalized_map_cache) \ | 219 V(NORMALIZED_MAP_CACHE_INDEX, Object, normalized_map_cache) \ |
220 V(NUMBER_FUNCTION_INDEX, JSFunction, number_function) \ | 220 V(NUMBER_FUNCTION_INDEX, JSFunction, number_function) \ |
221 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \ | 221 V(OBJECT_FUNCTION_INDEX, JSFunction, object_function) \ |
| 222 V(OBJECT_FUNCTION_PROTOTYPE_MAP_INDEX, Map, object_function_prototype_map) \ |
222 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ | 223 V(OPAQUE_REFERENCE_FUNCTION_INDEX, JSFunction, opaque_reference_function) \ |
223 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \ | 224 V(REGEXP_FUNCTION_INDEX, JSFunction, regexp_function) \ |
224 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \ | 225 V(REGEXP_RESULT_MAP_INDEX, Map, regexp_result_map) \ |
225 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ | 226 V(RUNTIME_CONTEXT_INDEX, Context, runtime_context) \ |
226 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ | 227 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ |
227 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ | 228 V(SCRIPT_FUNCTION_INDEX, JSFunction, script_function) \ |
228 V(SECURITY_TOKEN_INDEX, Object, security_token) \ | 229 V(SECURITY_TOKEN_INDEX, Object, security_token) \ |
229 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ | 230 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ |
230 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \ | 231 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \ |
231 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ | 232 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); | 552 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); |
552 #endif | 553 #endif |
553 | 554 |
554 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 555 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
555 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 556 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
556 }; | 557 }; |
557 | 558 |
558 } } // namespace v8::internal | 559 } } // namespace v8::internal |
559 | 560 |
560 #endif // V8_CONTEXTS_H_ | 561 #endif // V8_CONTEXTS_H_ |
OLD | NEW |