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

Unified Diff: src/js/array.js

Issue 2663033003: [builtins] TurboFan version of Array.prototype.forEach including fast path for FAST_ELEMENTS (Closed)
Patch Set: Disable Created 3 years, 11 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
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);

Powered by Google App Engine
This is Rietveld 408576698