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

Side by Side Diff: src/contexts.h

Issue 1157453002: Add basic API support for Map & Set (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 V(OBSERVERS_END_SPLICE_INDEX, JSFunction, observers_end_perform_splice) \ 177 V(OBSERVERS_END_SPLICE_INDEX, JSFunction, observers_end_perform_splice) \
178 V(NATIVE_OBJECT_OBSERVE_INDEX, JSFunction, native_object_observe) \ 178 V(NATIVE_OBJECT_OBSERVE_INDEX, JSFunction, native_object_observe) \
179 V(NATIVE_OBJECT_GET_NOTIFIER_INDEX, JSFunction, native_object_get_notifier) \ 179 V(NATIVE_OBJECT_GET_NOTIFIER_INDEX, JSFunction, native_object_get_notifier) \
180 V(NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, JSFunction, \ 180 V(NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, JSFunction, \
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(JS_MAP_MAP_INDEX, Map, js_map_map) \
188 V(JS_SET_MAP_INDEX, Map, js_set_map) \
187 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \ 189 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \
188 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ 190 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \
189 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ 191 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \
190 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ 192 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \
191 V(BUILTIN_EXPORTS_OBJECT_INDEX, Object, builtin_exports_object) \ 193 V(BUILTIN_EXPORTS_OBJECT_INDEX, Object, builtin_exports_object) \
192 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_exports_object) 194 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_exports_object)
193 195
194 196
195 // A table of all script contexts. Every loaded top-level script with top-level 197 // A table of all script contexts. Every loaded top-level script with top-level
196 // lexical declarations contributes its ScriptContext into this table. 198 // lexical declarations contributes its ScriptContext into this table.
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 OBSERVERS_BEGIN_SPLICE_INDEX, 417 OBSERVERS_BEGIN_SPLICE_INDEX,
416 OBSERVERS_END_SPLICE_INDEX, 418 OBSERVERS_END_SPLICE_INDEX,
417 NATIVE_OBJECT_OBSERVE_INDEX, 419 NATIVE_OBJECT_OBSERVE_INDEX,
418 NATIVE_OBJECT_GET_NOTIFIER_INDEX, 420 NATIVE_OBJECT_GET_NOTIFIER_INDEX,
419 NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, 421 NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE,
420 SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, 422 SLOPPY_GENERATOR_FUNCTION_MAP_INDEX,
421 STRICT_GENERATOR_FUNCTION_MAP_INDEX, 423 STRICT_GENERATOR_FUNCTION_MAP_INDEX,
422 STRONG_GENERATOR_FUNCTION_MAP_INDEX, 424 STRONG_GENERATOR_FUNCTION_MAP_INDEX,
423 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, 425 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX,
424 ITERATOR_RESULT_MAP_INDEX, 426 ITERATOR_RESULT_MAP_INDEX,
427 JS_MAP_MAP_INDEX,
428 JS_SET_MAP_INDEX,
425 MAP_ITERATOR_MAP_INDEX, 429 MAP_ITERATOR_MAP_INDEX,
426 SET_ITERATOR_MAP_INDEX, 430 SET_ITERATOR_MAP_INDEX,
427 ARRAY_VALUES_ITERATOR_INDEX, 431 ARRAY_VALUES_ITERATOR_INDEX,
428 SCRIPT_CONTEXT_TABLE_INDEX, 432 SCRIPT_CONTEXT_TABLE_INDEX,
429 MAP_CACHE_INDEX, 433 MAP_CACHE_INDEX,
430 TO_LENGTH_FUN_INDEX, 434 TO_LENGTH_FUN_INDEX,
431 BUILTIN_EXPORTS_OBJECT_INDEX, 435 BUILTIN_EXPORTS_OBJECT_INDEX,
432 EXTRAS_EXPORTS_OBJECT_INDEX, 436 EXTRAS_EXPORTS_OBJECT_INDEX,
433 437
434 // Properties from here are treated as weak references by the full GC. 438 // Properties from here are treated as weak references by the full GC.
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 634 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
631 #endif 635 #endif
632 636
633 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 637 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
634 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 638 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
635 }; 639 };
636 640
637 } } // namespace v8::internal 641 } } // namespace v8::internal
638 642
639 #endif // V8_CONTEXTS_H_ 643 #endif // V8_CONTEXTS_H_
OLDNEW
« src/bootstrapper.cc ('K') | « src/bootstrapper.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698