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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ | 194 V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \ |
195 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ | 195 V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \ |
196 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ | 196 V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \ |
197 V(MAP_FROM_ARRAY_INDEX, JSFunction, map_from_array) \ | 197 V(MAP_FROM_ARRAY_INDEX, JSFunction, map_from_array) \ |
198 V(SET_FROM_ARRAY_INDEX, JSFunction, set_from_array) \ | 198 V(SET_FROM_ARRAY_INDEX, JSFunction, set_from_array) \ |
199 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \ | 199 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \ |
200 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ | 200 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ |
201 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ | 201 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ |
202 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ | 202 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ |
203 V(NATIVES_UTILS_OBJECT_INDEX, Object, natives_utils_object) \ | 203 V(NATIVES_UTILS_OBJECT_INDEX, Object, natives_utils_object) \ |
204 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_exports_object) | 204 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_binding_object) |
205 | 205 |
206 | 206 |
207 // A table of all script contexts. Every loaded top-level script with top-level | 207 // A table of all script contexts. Every loaded top-level script with top-level |
208 // lexical declarations contributes its ScriptContext into this table. | 208 // lexical declarations contributes its ScriptContext into this table. |
209 // | 209 // |
210 // The table is a fixed array, its first slot is the current used count and | 210 // The table is a fixed array, its first slot is the current used count and |
211 // the subsequent slots 1..used contain ScriptContexts. | 211 // the subsequent slots 1..used contain ScriptContexts. |
212 class ScriptContextTable : public FixedArray { | 212 class ScriptContextTable : public FixedArray { |
213 public: | 213 public: |
214 // Conversions. | 214 // Conversions. |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); | 669 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); |
670 #endif | 670 #endif |
671 | 671 |
672 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); | 672 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); |
673 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); | 673 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); |
674 }; | 674 }; |
675 | 675 |
676 } } // namespace v8::internal | 676 } } // namespace v8::internal |
677 | 677 |
678 #endif // V8_CONTEXTS_H_ | 678 #endif // V8_CONTEXTS_H_ |
OLD | NEW |