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

Unified Diff: src/code-factory.cc

Issue 2752273003: [builtins] Implement Array.prototype.reduce in the CSA (Closed)
Patch Set: Cleanup 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 8901c481b0509fc52b240b806aeeb05dc5fcbd03..f154fe5dc2460bc51fdd9a60ef291edc7c3eb090 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -527,6 +527,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