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

Unified Diff: src/collection.js

Issue 1307963002: Native context: alpha sort slots and remove boilerplate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rename Created 5 years, 4 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/bootstrapper.cc ('k') | src/contexts.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/collection.js
diff --git a/src/collection.js b/src/collection.js
index 07d7c5c61b99c4256e2321fdaeb3ad570713fac5..4dff566049d9f01d54374c53cffd0bad93efb94a 100644
--- a/src/collection.js
+++ b/src/collection.js
@@ -503,15 +503,15 @@ function SetFromArray(array) {
// Exports
utils.ExportToRuntime(function(to) {
- to.MapGet = MapGet;
- to.MapSet = MapSet;
- to.MapHas = MapHas;
- to.MapDelete = MapDelete;
- to.SetAdd = SetAdd;
- to.SetHas = SetHas;
- to.SetDelete = SetDelete;
- to.MapFromArray = MapFromArray;
- to.SetFromArray = SetFromArray;
+ to["map_get"] = MapGet;
+ to["map_set"] = MapSet;
+ to["map_has"] = MapHas;
+ to["map_delete"] = MapDelete;
+ to["set_add"] = SetAdd;
+ to["set_has"] = SetHas;
+ to["set_delete"] = SetDelete;
+ to["map_from_array"] = MapFromArray;
+ to["set_from_array"]= SetFromArray;
});
})
« no previous file with comments | « src/bootstrapper.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698