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

Unified Diff: src/bootstrapper.cc

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/api.cc ('k') | src/collection.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index c38e9da4fb55450679d6351db91c1cb0827b05a4..b0a625775a9576d3808c538601f36463ef6c807a 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1711,6 +1711,13 @@ void Genesis::InstallNativeFunctions() {
INSTALL_NATIVE(JSFunction, "$observeNativeObjectNotifierPerformChange",
native_object_notifier_perform_change);
INSTALL_NATIVE(JSFunction, "$arrayValues", array_values_iterator);
+ INSTALL_NATIVE(JSFunction, "$mapGet", map_get);
+ INSTALL_NATIVE(JSFunction, "$mapSet", map_set);
+ INSTALL_NATIVE(JSFunction, "$mapHas", map_has);
+ INSTALL_NATIVE(JSFunction, "$mapDelete", map_delete);
+ INSTALL_NATIVE(JSFunction, "$setAdd", set_add);
+ INSTALL_NATIVE(JSFunction, "$setHas", set_has);
+ INSTALL_NATIVE(JSFunction, "$setDelete", set_delete);
INSTALL_NATIVE(JSFunction, "$mapFromArray", map_from_array);
INSTALL_NATIVE(JSFunction, "$setFromArray", set_from_array);
}
« no previous file with comments | « src/api.cc ('k') | src/collection.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698