| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 V(FAST_TEMPLATE_INSTANTIATIONS_CACHE_INDEX, FixedArray, \ | 141 V(FAST_TEMPLATE_INSTANTIATIONS_CACHE_INDEX, FixedArray, \ |
| 142 fast_template_instantiations_cache) \ | 142 fast_template_instantiations_cache) \ |
| 143 V(SLOW_TEMPLATE_INSTANTIATIONS_CACHE_INDEX, UnseededNumberDictionary, \ | 143 V(SLOW_TEMPLATE_INSTANTIATIONS_CACHE_INDEX, UnseededNumberDictionary, \ |
| 144 slow_template_instantiations_cache) \ | 144 slow_template_instantiations_cache) \ |
| 145 V(FUNCTION_FUNCTION_INDEX, JSFunction, function_function) \ | 145 V(FUNCTION_FUNCTION_INDEX, JSFunction, function_function) \ |
| 146 V(GENERATOR_FUNCTION_FUNCTION_INDEX, JSFunction, \ | 146 V(GENERATOR_FUNCTION_FUNCTION_INDEX, JSFunction, \ |
| 147 generator_function_function) \ | 147 generator_function_function) \ |
| 148 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, generator_object_prototype_map) \ | 148 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, generator_object_prototype_map) \ |
| 149 V(INITIAL_ARRAY_PROTOTYPE_INDEX, JSObject, initial_array_prototype) \ | 149 V(INITIAL_ARRAY_PROTOTYPE_INDEX, JSObject, initial_array_prototype) \ |
| 150 V(INITIAL_GENERATOR_PROTOTYPE_INDEX, JSObject, initial_generator_prototype) \ | 150 V(INITIAL_GENERATOR_PROTOTYPE_INDEX, JSObject, initial_generator_prototype) \ |
| 151 V(INITIAL_ITERATOR_PROTOTYPE_INDEX, JSObject, initial_iterator_prototype) \ |
| 151 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \ | 152 V(INITIAL_OBJECT_PROTOTYPE_INDEX, JSObject, initial_object_prototype) \ |
| 152 V(INT16_ARRAY_FUN_INDEX, JSFunction, int16_array_fun) \ | 153 V(INT16_ARRAY_FUN_INDEX, JSFunction, int16_array_fun) \ |
| 153 V(INT16X8_FUNCTION_INDEX, JSFunction, int16x8_function) \ | 154 V(INT16X8_FUNCTION_INDEX, JSFunction, int16x8_function) \ |
| 154 V(INT32_ARRAY_FUN_INDEX, JSFunction, int32_array_fun) \ | 155 V(INT32_ARRAY_FUN_INDEX, JSFunction, int32_array_fun) \ |
| 155 V(INT32X4_FUNCTION_INDEX, JSFunction, int32x4_function) \ | 156 V(INT32X4_FUNCTION_INDEX, JSFunction, int32x4_function) \ |
| 156 V(INT8_ARRAY_FUN_INDEX, JSFunction, int8_array_fun) \ | 157 V(INT8_ARRAY_FUN_INDEX, JSFunction, int8_array_fun) \ |
| 157 V(INT8X16_FUNCTION_INDEX, JSFunction, int8x16_function) \ | 158 V(INT8X16_FUNCTION_INDEX, JSFunction, int8x16_function) \ |
| 158 V(INTERNAL_ARRAY_FUNCTION_INDEX, JSFunction, internal_array_function) \ | 159 V(INTERNAL_ARRAY_FUNCTION_INDEX, JSFunction, internal_array_function) \ |
| 159 V(ITERATOR_RESULT_MAP_INDEX, Map, iterator_result_map) \ | 160 V(ITERATOR_RESULT_MAP_INDEX, Map, iterator_result_map) \ |
| 160 V(JS_ARRAY_FAST_SMI_ELEMENTS_MAP_INDEX, Map, \ | 161 V(JS_ARRAY_FAST_SMI_ELEMENTS_MAP_INDEX, Map, \ |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 #endif | 552 #endif |
| 552 | 553 |
| 553 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 554 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
| 554 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 555 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
| 555 }; | 556 }; |
| 556 | 557 |
| 557 } // namespace internal | 558 } // namespace internal |
| 558 } // namespace v8 | 559 } // namespace v8 |
| 559 | 560 |
| 560 #endif // V8_CONTEXTS_H_ | 561 #endif // V8_CONTEXTS_H_ |
| OLD | NEW |