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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \ | 322 V(SHARED_ARRAY_BUFFER_FUN_INDEX, JSFunction, shared_array_buffer_fun) \ |
323 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ | 323 V(SLOPPY_ARGUMENTS_MAP_INDEX, Map, sloppy_arguments_map) \ |
324 V(SLOPPY_FUNCTION_MAP_INDEX, Map, sloppy_function_map) \ | 324 V(SLOPPY_FUNCTION_MAP_INDEX, Map, sloppy_function_map) \ |
325 V(SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ | 325 V(SLOPPY_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ |
326 sloppy_function_without_prototype_map) \ | 326 sloppy_function_without_prototype_map) \ |
327 V(SLOPPY_FUNCTION_WITH_READONLY_PROTOTYPE_MAP_INDEX, Map, \ | 327 V(SLOPPY_FUNCTION_WITH_READONLY_PROTOTYPE_MAP_INDEX, Map, \ |
328 sloppy_function_with_readonly_prototype_map) \ | 328 sloppy_function_with_readonly_prototype_map) \ |
329 V(SLOW_ALIASED_ARGUMENTS_MAP_INDEX, Map, slow_aliased_arguments_map) \ | 329 V(SLOW_ALIASED_ARGUMENTS_MAP_INDEX, Map, slow_aliased_arguments_map) \ |
330 V(SLOW_OBJECT_WITH_NULL_PROTOTYPE_MAP, Map, \ | 330 V(SLOW_OBJECT_WITH_NULL_PROTOTYPE_MAP, Map, \ |
331 slow_object_with_null_prototype_map) \ | 331 slow_object_with_null_prototype_map) \ |
| 332 V(SLOW_OBJECT_WITH_OBJECT_PROTOTYPE_MAP, Map, \ |
| 333 slow_object_with_object_prototype_map) \ |
332 V(SLOW_TEMPLATE_INSTANTIATIONS_CACHE_INDEX, UnseededNumberDictionary, \ | 334 V(SLOW_TEMPLATE_INSTANTIATIONS_CACHE_INDEX, UnseededNumberDictionary, \ |
333 slow_template_instantiations_cache) \ | 335 slow_template_instantiations_cache) \ |
334 V(STRICT_ARGUMENTS_MAP_INDEX, Map, strict_arguments_map) \ | 336 V(STRICT_ARGUMENTS_MAP_INDEX, Map, strict_arguments_map) \ |
335 V(ASYNC_FUNCTION_MAP_INDEX, Map, async_function_map) \ | 337 V(ASYNC_FUNCTION_MAP_INDEX, Map, async_function_map) \ |
336 V(STRICT_FUNCTION_MAP_INDEX, Map, strict_function_map) \ | 338 V(STRICT_FUNCTION_MAP_INDEX, Map, strict_function_map) \ |
337 V(STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ | 339 V(STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \ |
338 strict_function_without_prototype_map) \ | 340 strict_function_without_prototype_map) \ |
339 V(GENERATOR_FUNCTION_MAP_INDEX, Map, generator_function_map) \ | 341 V(GENERATOR_FUNCTION_MAP_INDEX, Map, generator_function_map) \ |
340 V(CLASS_FUNCTION_MAP_INDEX, Map, class_function_map) \ | 342 V(CLASS_FUNCTION_MAP_INDEX, Map, class_function_map) \ |
341 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \ | 343 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \ |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 703 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
702 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 704 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
703 }; | 705 }; |
704 | 706 |
705 typedef Context::Field ContextField; | 707 typedef Context::Field ContextField; |
706 | 708 |
707 } // namespace internal | 709 } // namespace internal |
708 } // namespace v8 | 710 } // namespace v8 |
709 | 711 |
710 #endif // V8_CONTEXTS_H_ | 712 #endif // V8_CONTEXTS_H_ |
OLD | NEW |