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

Unified Diff: src/js/templates.js

Issue 1419813010: [runtime] Remove the very dangerous %_CallFunction intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/js/string.js ('k') | src/js/v8natives.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/templates.js
diff --git a/src/js/templates.js b/src/js/templates.js
index b273bc39e816e1a828e891506564113b3ae526c3..eee6b7d7e71fc9663c95e5337e8fac9545e56937 100644
--- a/src/js/templates.js
+++ b/src/js/templates.js
@@ -38,7 +38,7 @@ function SameCallSiteElements(rawStrings, other) {
function GetCachedCallSite(siteObj, hash) {
- var obj = %_CallFunction(callSiteCache, hash, mapGetFn);
+ var obj = %_Call(mapGetFn, callSiteCache, hash);
if (IS_UNDEFINED(obj)) return;
@@ -50,13 +50,13 @@ function GetCachedCallSite(siteObj, hash) {
function SetCachedCallSite(siteObj, hash) {
- var obj = %_CallFunction(callSiteCache, hash, mapGetFn);
+ var obj = %_Call(mapGetFn, callSiteCache, hash);
var array;
if (IS_UNDEFINED(obj)) {
array = new InternalArray(1);
array[0] = siteObj;
- %_CallFunction(callSiteCache, hash, array, mapSetFn);
+ %_Call(mapSetFn, callSiteCache, hash, array);
} else {
obj.push(siteObj);
}
« no previous file with comments | « src/js/string.js ('k') | src/js/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698