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

Unified Diff: src/js/array.js

Issue 2663033003: [builtins] TurboFan version of Array.prototype.forEach including fast path for FAST_ELEMENTS (Closed)
Patch Set: Review feedback Created 3 years, 10 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/interface-descriptors.h ('k') | src/runtime/runtime-array.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/array.js
diff --git a/src/js/array.js b/src/js/array.js
index fca75a3f65f85f32e3300f3669f056793fbf7973..e350dbcfbf2714b70c07b90a03edcb3f0211cf29 100644
--- a/src/js/array.js
+++ b/src/js/array.js
@@ -1569,6 +1569,8 @@ utils.InstallFunctions(GlobalArray.prototype, DONT_ENUM, [
iteratorSymbol, ArrayValues
]);
+utils.ForEachFunction = GlobalArray.prototype.forEach;
+
%FunctionSetName(ArrayValues, "values");
%FinishArrayPrototypeSetup(GlobalArray.prototype);
« no previous file with comments | « src/interface-descriptors.h ('k') | src/runtime/runtime-array.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698