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

Side by Side Diff: src/contexts.h

Issue 1155893003: Add {Map,Set}::FromArray to the API (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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) \ 187 V(JS_MAP_MAP_INDEX, Map, js_map_map) \
188 V(JS_SET_MAP_INDEX, Map, js_set_map) \ 188 V(JS_SET_MAP_INDEX, Map, js_set_map) \
189 V(MAP_FROM_ARRAY_INDEX, JSFunction, map_from_array) \
190 V(SET_FROM_ARRAY_INDEX, JSFunction, set_from_array) \
189 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \ 191 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \
190 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ 192 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \
191 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ 193 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \
192 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ 194 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \
193 V(BUILTIN_EXPORTS_OBJECT_INDEX, Object, builtin_exports_object) \ 195 V(BUILTIN_EXPORTS_OBJECT_INDEX, Object, builtin_exports_object) \
194 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_exports_object) 196 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_exports_object)
195 197
196 198
197 // A table of all script contexts. Every loaded top-level script with top-level 199 // A table of all script contexts. Every loaded top-level script with top-level
198 // lexical declarations contributes its ScriptContext into this table. 200 // lexical declarations contributes its ScriptContext into this table.
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 NATIVE_OBJECT_OBSERVE_INDEX, 421 NATIVE_OBJECT_OBSERVE_INDEX,
420 NATIVE_OBJECT_GET_NOTIFIER_INDEX, 422 NATIVE_OBJECT_GET_NOTIFIER_INDEX,
421 NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, 423 NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE,
422 SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, 424 SLOPPY_GENERATOR_FUNCTION_MAP_INDEX,
423 STRICT_GENERATOR_FUNCTION_MAP_INDEX, 425 STRICT_GENERATOR_FUNCTION_MAP_INDEX,
424 STRONG_GENERATOR_FUNCTION_MAP_INDEX, 426 STRONG_GENERATOR_FUNCTION_MAP_INDEX,
425 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, 427 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX,
426 ITERATOR_RESULT_MAP_INDEX, 428 ITERATOR_RESULT_MAP_INDEX,
427 JS_MAP_MAP_INDEX, 429 JS_MAP_MAP_INDEX,
428 JS_SET_MAP_INDEX, 430 JS_SET_MAP_INDEX,
431 MAP_FROM_ARRAY_INDEX,
432 SET_FROM_ARRAY_INDEX,
429 MAP_ITERATOR_MAP_INDEX, 433 MAP_ITERATOR_MAP_INDEX,
430 SET_ITERATOR_MAP_INDEX, 434 SET_ITERATOR_MAP_INDEX,
431 ARRAY_VALUES_ITERATOR_INDEX, 435 ARRAY_VALUES_ITERATOR_INDEX,
432 SCRIPT_CONTEXT_TABLE_INDEX, 436 SCRIPT_CONTEXT_TABLE_INDEX,
433 MAP_CACHE_INDEX, 437 MAP_CACHE_INDEX,
434 TO_LENGTH_FUN_INDEX, 438 TO_LENGTH_FUN_INDEX,
435 BUILTIN_EXPORTS_OBJECT_INDEX, 439 BUILTIN_EXPORTS_OBJECT_INDEX,
436 EXTRAS_EXPORTS_OBJECT_INDEX, 440 EXTRAS_EXPORTS_OBJECT_INDEX,
437 441
438 // Properties from here are treated as weak references by the full GC. 442 // Properties from here are treated as weak references by the full GC.
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 638 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
635 #endif 639 #endif
636 640
637 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 641 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
638 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 642 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
639 }; 643 };
640 644
641 } } // namespace v8::internal 645 } } // namespace v8::internal
642 646
643 #endif // V8_CONTEXTS_H_ 647 #endif // V8_CONTEXTS_H_
OLDNEW
« src/collection.js ('K') | « src/collection.js ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698