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

Unified Diff: src/collection.js

Issue 777233003: Revert of Optimize add/set/delete operations for string keys in Maps and Sets (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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 | « no previous file | src/hydrogen.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 d1b16beda6772b7c9fa7072d7a5526152a2ab47d..d93b8f82012a91e5d796ba369656c2b9fbe58295 100644
--- a/src/collection.js
+++ b/src/collection.js
@@ -56,7 +56,7 @@
if (key === 0) {
key = 0;
}
- return %_SetAdd(this, key);
+ return %SetAdd(this, key);
}
@@ -74,7 +74,7 @@
throw MakeTypeError('incompatible_method_receiver',
['Set.prototype.delete', this]);
}
- return %_SetDelete(this, key);
+ return %SetDelete(this, key);
}
@@ -209,7 +209,7 @@
if (key === 0) {
key = 0;
}
- return %_MapSet(this, key, value);
+ return %MapSet(this, key, value);
}
@@ -227,7 +227,7 @@
throw MakeTypeError('incompatible_method_receiver',
['Map.prototype.delete', this]);
}
- return %_MapDelete(this, key);
+ return %MapDelete(this, key);
}
« no previous file with comments | « no previous file | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698