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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/collection.js ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/contexts.h
diff --git a/src/contexts.h b/src/contexts.h
index 82aa8ca830fbe6de99e0d58e057fb37aae8b043c..51869e8dc61cb3b1bf4c3936e01f4210e27737ce 100644
--- a/src/contexts.h
+++ b/src/contexts.h
@@ -189,6 +189,8 @@ enum BindingFlags {
V(ITERATOR_RESULT_MAP_INDEX, Map, iterator_result_map) \
V(JS_MAP_MAP_INDEX, Map, js_map_map) \
V(JS_SET_MAP_INDEX, Map, js_set_map) \
+ V(MAP_FROM_ARRAY_INDEX, JSFunction, map_from_array) \
+ V(SET_FROM_ARRAY_INDEX, JSFunction, set_from_array) \
V(MAP_ITERATOR_MAP_INDEX, Map, map_iterator_map) \
V(SET_ITERATOR_MAP_INDEX, Map, set_iterator_map) \
V(ARRAY_VALUES_ITERATOR_INDEX, JSFunction, array_values_iterator) \
@@ -431,6 +433,8 @@ class Context: public FixedArray {
ITERATOR_RESULT_MAP_INDEX,
JS_MAP_MAP_INDEX,
JS_SET_MAP_INDEX,
+ MAP_FROM_ARRAY_INDEX,
+ SET_FROM_ARRAY_INDEX,
MAP_ITERATOR_MAP_INDEX,
SET_ITERATOR_MAP_INDEX,
ARRAY_VALUES_ITERATOR_INDEX,
« 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