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

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: Rebased 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.js ('k') | test/cctest/test-api.cc » ('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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 V(NATIVE_OBJECT_GET_NOTIFIER_INDEX, JSFunction, native_object_get_notifier) \ 182 V(NATIVE_OBJECT_GET_NOTIFIER_INDEX, JSFunction, native_object_get_notifier) \
183 V(NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, JSFunction, \ 183 V(NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, JSFunction, \
184 native_object_notifier_perform_change) \ 184 native_object_notifier_perform_change) \
185 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \ 185 V(SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, Map, sloppy_generator_function_map) \
186 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \ 186 V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \
187 V(STRONG_GENERATOR_FUNCTION_MAP_INDEX, Map, strong_generator_function_map) \ 187 V(STRONG_GENERATOR_FUNCTION_MAP_INDEX, Map, strong_generator_function_map) \
188 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, generator_object_prototype_map) \ 188 V(GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, Map, generator_object_prototype_map) \
189 V(ITERATOR_RESULT_MAP_INDEX, Map, iterator_result_map) \ 189 V(ITERATOR_RESULT_MAP_INDEX, Map, iterator_result_map) \
190 V(JS_MAP_MAP_INDEX, Map, js_map_map) \ 190 V(JS_MAP_MAP_INDEX, Map, js_map_map) \
191 V(JS_SET_MAP_INDEX, Map, js_set_map) \ 191 V(JS_SET_MAP_INDEX, Map, js_set_map) \
192 V(MAP_FROM_ARRAY_INDEX, JSFunction, map_from_array) \
193 V(SET_FROM_ARRAY_INDEX, JSFunction, set_from_array) \
192 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \ 194 V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \
193 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \ 195 V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \
194 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \ 196 V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \
195 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \ 197 V(SCRIPT_CONTEXT_TABLE_INDEX, ScriptContextTable, script_context_table) \
196 V(NATIVES_UTILS_OBJECT_INDEX, Object, natives_utils_object) \ 198 V(NATIVES_UTILS_OBJECT_INDEX, Object, natives_utils_object) \
197 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_exports_object) 199 V(EXTRAS_EXPORTS_OBJECT_INDEX, JSObject, extras_exports_object)
198 200
199 201
200 // A table of all script contexts. Every loaded top-level script with top-level 202 // A table of all script contexts. Every loaded top-level script with top-level
201 // lexical declarations contributes its ScriptContext into this table. 203 // lexical declarations contributes its ScriptContext into this table.
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 NATIVE_OBJECT_OBSERVE_INDEX, 426 NATIVE_OBJECT_OBSERVE_INDEX,
425 NATIVE_OBJECT_GET_NOTIFIER_INDEX, 427 NATIVE_OBJECT_GET_NOTIFIER_INDEX,
426 NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE, 428 NATIVE_OBJECT_NOTIFIER_PERFORM_CHANGE,
427 SLOPPY_GENERATOR_FUNCTION_MAP_INDEX, 429 SLOPPY_GENERATOR_FUNCTION_MAP_INDEX,
428 STRICT_GENERATOR_FUNCTION_MAP_INDEX, 430 STRICT_GENERATOR_FUNCTION_MAP_INDEX,
429 STRONG_GENERATOR_FUNCTION_MAP_INDEX, 431 STRONG_GENERATOR_FUNCTION_MAP_INDEX,
430 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX, 432 GENERATOR_OBJECT_PROTOTYPE_MAP_INDEX,
431 ITERATOR_RESULT_MAP_INDEX, 433 ITERATOR_RESULT_MAP_INDEX,
432 JS_MAP_MAP_INDEX, 434 JS_MAP_MAP_INDEX,
433 JS_SET_MAP_INDEX, 435 JS_SET_MAP_INDEX,
436 MAP_FROM_ARRAY_INDEX,
437 SET_FROM_ARRAY_INDEX,
434 MAP_ITERATOR_MAP_INDEX, 438 MAP_ITERATOR_MAP_INDEX,
435 SET_ITERATOR_MAP_INDEX, 439 SET_ITERATOR_MAP_INDEX,
436 ARRAY_VALUES_ITERATOR_INDEX, 440 ARRAY_VALUES_ITERATOR_INDEX,
437 SCRIPT_CONTEXT_TABLE_INDEX, 441 SCRIPT_CONTEXT_TABLE_INDEX,
438 MAP_CACHE_INDEX, 442 MAP_CACHE_INDEX,
439 STRONG_MAP_CACHE_INDEX, 443 STRONG_MAP_CACHE_INDEX,
440 TO_LENGTH_FUN_INDEX, 444 TO_LENGTH_FUN_INDEX,
441 NATIVES_UTILS_OBJECT_INDEX, 445 NATIVES_UTILS_OBJECT_INDEX,
442 EXTRAS_EXPORTS_OBJECT_INDEX, 446 EXTRAS_EXPORTS_OBJECT_INDEX,
443 447
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object); 644 static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);
641 #endif 645 #endif
642 646
643 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize); 647 STATIC_ASSERT(kHeaderSize == Internals::kContextHeaderSize);
644 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex); 648 STATIC_ASSERT(EMBEDDER_DATA_INDEX == Internals::kContextEmbedderDataIndex);
645 }; 649 };
646 650
647 } } // namespace v8::internal 651 } } // namespace v8::internal
648 652
649 #endif // V8_CONTEXTS_H_ 653 #endif // V8_CONTEXTS_H_
OLDNEW
« no previous file with comments | « src/collection.js ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698