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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 strict_function_without_prototype_map) \ | 209 strict_function_without_prototype_map) \ |
210 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \ | 210 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \ |
211 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \ | 211 V(STRING_FUNCTION_INDEX, JSFunction, string_function) \ |
212 V(STRING_FUNCTION_PROTOTYPE_MAP_INDEX, Map, string_function_prototype_map) \ | 212 V(STRING_FUNCTION_PROTOTYPE_MAP_INDEX, Map, string_function_prototype_map) \ |
213 V(STRONG_CONSTRUCTOR_MAP_INDEX, Map, strong_constructor_map) \ | 213 V(STRONG_CONSTRUCTOR_MAP_INDEX, Map, strong_constructor_map) \ |
214 V(STRONG_FUNCTION_MAP_INDEX, Map, strong_function_map) \ | 214 V(STRONG_FUNCTION_MAP_INDEX, Map, strong_function_map) \ |
215 V(STRONG_GENERATOR_FUNCTION_MAP_INDEX, Map, strong_generator_function_map) \ | 215 V(STRONG_GENERATOR_FUNCTION_MAP_INDEX, Map, strong_generator_function_map) \ |
216 V(STRONG_MAP_CACHE_INDEX, Object, strong_map_cache) \ | 216 V(STRONG_MAP_CACHE_INDEX, Object, strong_map_cache) \ |
217 V(SYMBOL_FUNCTION_INDEX, JSFunction, symbol_function) \ | 217 V(SYMBOL_FUNCTION_INDEX, JSFunction, symbol_function) \ |
218 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \ | 218 V(UINT16_ARRAY_FUN_INDEX, JSFunction, uint16_array_fun) \ |
| 219 V(UINT16X8_FUNCTION_INDEX, JSFunction, uint16x8_function) \ |
219 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ | 220 V(UINT32_ARRAY_FUN_INDEX, JSFunction, uint32_array_fun) \ |
| 221 V(UINT32X4_FUNCTION_INDEX, JSFunction, uint32x4_function) \ |
220 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \ | 222 V(UINT8_ARRAY_FUN_INDEX, JSFunction, uint8_array_fun) \ |
221 V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \ | 223 V(UINT8_CLAMPED_ARRAY_FUN_INDEX, JSFunction, uint8_clamped_array_fun) \ |
| 224 V(UINT8X16_FUNCTION_INDEX, JSFunction, uint8x16_function) \ |
222 NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ | 225 NATIVE_CONTEXT_IMPORTED_FIELDS(V) \ |
223 NATIVE_CONTEXT_IMPORTED_FIELDS_FOR_PROXY(V) | 226 NATIVE_CONTEXT_IMPORTED_FIELDS_FOR_PROXY(V) |
224 | 227 |
225 // A table of all script contexts. Every loaded top-level script with top-level | 228 // A table of all script contexts. Every loaded top-level script with top-level |
226 // lexical declarations contributes its ScriptContext into this table. | 229 // lexical declarations contributes its ScriptContext into this table. |
227 // | 230 // |
228 // The table is a fixed array, its first slot is the current used count and | 231 // The table is a fixed array, its first slot is the current used count and |
229 // the subsequent slots 1..used contain ScriptContexts. | 232 // the subsequent slots 1..used contain ScriptContexts. |
230 class ScriptContextTable : public FixedArray { | 233 class ScriptContextTable : public FixedArray { |
231 public: | 234 public: |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); | 566 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); |
564 #endif | 567 #endif |
565 | 568 |
566 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 569 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
567 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 570 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
568 }; | 571 }; |
569 | 572 |
570 } } // namespace v8::internal | 573 } } // namespace v8::internal |
571 | 574 |
572 #endif // V8_CONTEXTS_H_ | 575 #endif // V8_CONTEXTS_H_ |
OLD | NEW |