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

Unified Diff: src/templates.js

Issue 947683002: Reimplement Maps and Sets in JS (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Merged to master Created 5 years, 8 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/runtime/runtime-collections.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/templates.js
diff --git a/src/templates.js b/src/templates.js
index 20f8af5f68cb684bd93c9de86038c30fe55107e3..feb5b0645b19010c232aba0f26622eeb96c7b263 100644
--- a/src/templates.js
+++ b/src/templates.js
@@ -21,7 +21,7 @@ function SameCallSiteElements(rawStrings, other) {
function GetCachedCallSite(siteObj, hash) {
- var obj = %MapGet(callSiteCache, hash);
+ var obj = %_CallFunction(callSiteCache, hash, $MapGet);
if (IS_UNDEFINED(obj)) return;
@@ -33,13 +33,13 @@ function GetCachedCallSite(siteObj, hash) {
function SetCachedCallSite(siteObj, hash) {
- var obj = %MapGet(callSiteCache, hash);
+ var obj = %_CallFunction(callSiteCache, hash, $MapGet);
var array;
if (IS_UNDEFINED(obj)) {
array = new InternalArray(1);
array[0] = siteObj;
- %MapSet(callSiteCache, hash, array);
+ %_CallFunction(callSiteCache, hash, array, $MapSet);
} else {
obj.push(siteObj);
}
« no previous file with comments | « src/runtime/runtime-collections.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698