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

Unified Diff: src/weak-collection.js

Issue 1325573004: [runtime] Replace many buggy uses of %_CallFunction with %_Call. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address feedback. Created 5 years, 3 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/typedarray.js ('k') | src/x64/interface-descriptors-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/weak-collection.js
diff --git a/src/weak-collection.js b/src/weak-collection.js
index 67deddb95ee57491b585bf8d1f0cebe4be800d3d..1c60a2f47a695b19f69b2ea4fc2c1a1486b9002e 100644
--- a/src/weak-collection.js
+++ b/src/weak-collection.js
@@ -32,7 +32,7 @@ function WeakMapConstructor(iterable) {
if (!IS_SPEC_OBJECT(nextItem)) {
throw MakeTypeError(kIteratorValueNotAnObject, nextItem);
}
- %_CallFunction(this, nextItem[0], nextItem[1], adder);
+ %_Call(adder, this, nextItem[0], nextItem[1]);
}
}
}
@@ -118,7 +118,7 @@ function WeakSetConstructor(iterable) {
throw MakeTypeError(kPropertyNotFunction, 'add', this);
}
for (var value of iterable) {
- %_CallFunction(this, value, adder);
+ %_Call(adder, this, value);
}
}
}
« no previous file with comments | « src/typedarray.js ('k') | src/x64/interface-descriptors-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698