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

Unified Diff: src/code-factory.cc

Issue 2752273003: [builtins] Implement Array.prototype.reduce in the CSA (Closed)
Patch Set: Simplify Created 3 years, 9 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/code-factory.cc
diff --git a/src/code-factory.cc b/src/code-factory.cc
index 87caa5f151203bf71c8286cff4e4418faa0c4753..7755d2bd319f6381723b96c7526c28192d41f495 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -513,6 +513,12 @@ Callable CodeFactory::ArrayEveryLoopContinuation(Isolate* isolate) {
}
// static
+Callable CodeFactory::ArrayReduceLoopContinuation(Isolate* isolate) {
+ return Callable(isolate->builtins()->ArrayReduceLoopContinuation(),
+ IteratingArrayBuiltinLoopContinuationDescriptor(isolate));
+}
+
+// static
Callable CodeFactory::FunctionPrototypeBind(Isolate* isolate) {
return Callable(isolate->builtins()->FunctionPrototypeBind(),
BuiltinDescriptor(isolate));

Powered by Google App Engine
This is Rietveld 408576698