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

Unified Diff: src/contexts.h

Issue 1204623002: Expose Map/Set methods through the API (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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') | src/runtime/runtime.h » ('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 670f5a7c0ef693329eb1116a4df742965b39b145..78d4bc4255c5194d374fcf1c38cca902978b8a14 100644
--- a/src/contexts.h
+++ b/src/contexts.h
@@ -191,6 +191,13 @@ enum BindingFlags {
V(JS_MAP_MAP_INDEX, Map, js_map_map) \
V(JS_SET_FUN_INDEX, JSFunction, js_set_fun) \
V(JS_SET_MAP_INDEX, Map, js_set_map) \
+ V(MAP_GET_METHOD_INDEX, JSFunction, map_get) \
+ V(MAP_SET_METHOD_INDEX, JSFunction, map_set) \
+ V(MAP_HAS_METHOD_INDEX, JSFunction, map_has) \
+ V(MAP_DELETE_METHOD_INDEX, JSFunction, map_delete) \
+ V(SET_ADD_METHOD_INDEX, JSFunction, set_add) \
+ V(SET_HAS_METHOD_INDEX, JSFunction, set_has) \
+ V(SET_DELETE_METHOD_INDEX, JSFunction, set_delete) \
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) \
@@ -437,6 +444,13 @@ class Context: public FixedArray {
JS_MAP_MAP_INDEX,
JS_SET_FUN_INDEX,
JS_SET_MAP_INDEX,
+ MAP_GET_METHOD_INDEX,
+ MAP_SET_METHOD_INDEX,
+ MAP_HAS_METHOD_INDEX,
+ MAP_DELETE_METHOD_INDEX,
+ SET_ADD_METHOD_INDEX,
+ SET_HAS_METHOD_INDEX,
+ SET_DELETE_METHOD_INDEX,
MAP_FROM_ARRAY_INDEX,
SET_FROM_ARRAY_INDEX,
MAP_ITERATOR_MAP_INDEX,
« no previous file with comments | « src/collection.js ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698