Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: src/contexts.h

Issue 1143993003: Use shared container to manage imports/exports. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixed test for no-snap Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/collection-iterator.js ('k') | src/date.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 native_object_notifier_perform_change) \ 181 native_object_notifier_perform_change) \
182 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \ 182 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \
183 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \ 183 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \
184 V(STRONG_GENERATOR_FUNCTION_MAP_INDEX, Map, strong_generator_function_map) \ 184 V(STRONG_GENERATOR_FUNCTION_MAP_INDEX, Map, strong_generator_function_map) \
185 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, generator_object_prototype_map) \ 185 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, generator_object_prototype_map) \
186 V(ITERATOR_RESULT_MAP_INDEX, Map, iterator_result_map) \ 186 V(ITERATOR_RESULT_MAP_INDEX, Map, iterator_result_map) \
187 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \ 187 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \
188 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ 188 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \
189 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ 189 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \
190 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ 190 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \
191 V(BUILTIN_EXPORTS_OBJECT_INDEX, Object, builtin_exports_object) \ 191 V(NATIVES_UTILS_OBJECT_INDEX, Object, natives_utils_object) \
192 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_exports_object) 192 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_exports_object)
193 193
194 194
195 // A table of all script contexts. Every loaded top-level script with top-level 195 // A table of all script contexts. Every loaded top-level script with top-level
196 // lexical declarations contributes its ScriptContext into this table. 196 // lexical declarations contributes its ScriptContext into this table.
197 // 197 //
198 // The table is a fixed array, its first slot is the current used count and 198 // The table is a fixed array, its first slot is the current used count and
199 // the subsequent slots 1..used contain ScriptContexts. 199 // the subsequent slots 1..used contain ScriptContexts.
200 class ScriptContextTable : public FixedArray { 200 class ScriptContextTable : public FixedArray {
201 public: 201 public:
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 STRICT_GENERATOR_FUNCTION_MAP_INDEX, 421 STRICT_GENERATOR_FUNCTION_MAP_INDEX,
422 STRONG_GENERATOR_FUNCTION_MAP_INDEX, 422 STRONG_GENERATOR_FUNCTION_MAP_INDEX,
423 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, 423 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX,
424 ITERATOR_RESULT_MAP_INDEX, 424 ITERATOR_RESULT_MAP_INDEX,
425 MAP_ITERATOR_MAP_INDEX, 425 MAP_ITERATOR_MAP_INDEX,
426 SET_ITERATOR_MAP_INDEX, 426 SET_ITERATOR_MAP_INDEX,
427 ARRAY_VALUES_ITERATOR_INDEX, 427 ARRAY_VALUES_ITERATOR_INDEX,
428 SCRIPT_CONTEXT_TABLE_INDEX, 428 SCRIPT_CONTEXT_TABLE_INDEX,
429 MAP_CACHE_INDEX, 429 MAP_CACHE_INDEX,
430 TO_LENGTH_FUN_INDEX, 430 TO_LENGTH_FUN_INDEX,
431 BUILTIN_EXPORTS_OBJECT_INDEX, 431 NATIVES_UTILS_OBJECT_INDEX,
432 EXTRAS_EXPORTS_OBJECT_INDEX, 432 EXTRAS_EXPORTS_OBJECT_INDEX,
433 433
434 // Properties from here are treated as weak references by the full GC. 434 // Properties from here are treated as weak references by the full GC.
435 // Scavenge treats them as strong references. 435 // Scavenge treats them as strong references.
436 OPTIMIZED_FUNCTIONS_LIST, // Weak. 436 OPTIMIZED_FUNCTIONS_LIST, // Weak.
437 OPTIMIZED_CODE_LIST, // Weak. 437 OPTIMIZED_CODE_LIST, // Weak.
438 DEOPTIMIZED_CODE_LIST, // Weak. 438 DEOPTIMIZED_CODE_LIST, // Weak.
439 NEXT_CONTEXT_LINK, // Weak. 439 NEXT_CONTEXT_LINK, // Weak.
440 440
441 // Total number of slots. 441 // Total number of slots.
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 630 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
631 #endif 631 #endif
632 632
633 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 633 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
634 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 634 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
635 }; 635 };
636 636
637 } } // namespace v8::internal 637 } } // namespace v8::internal
638 638
639 #endif // V8_CONTEXTS_H_ 639 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/collection-iterator.js ('k') | src/date.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698