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

Unified Diff: src/builtins/builtins.h

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/builtins/builtins.h
diff --git a/src/builtins/builtins.h b/src/builtins/builtins.h
index 945b2511cad3b4c5150cbd21c111604b0d89f1b0..5cda38dac53c280925aa4137e4c186e28278cc5d 100644
--- a/src/builtins/builtins.h
+++ b/src/builtins/builtins.h
@@ -296,6 +296,9 @@ class Isolate;
/* ES6 #sec-array.prototype.filter */ \
TFJ(ArrayFilterLoopContinuation, 6) \
TFJ(ArrayFilter, 2, kCallbackFn, kThisArg) \
+ /* ES6 #sec-array.prototype.reduce */ \
+ TFJ(ArrayReduceLoopContinuation, 6) \
+ TFJ(ArrayReduce, 2, kCallbackFn, kInitialValue) \
/* ES6 #sec-array.prototype.entries */ \
TFJ(ArrayPrototypeEntries, 0) \
/* ES6 #sec-array.prototype.keys */ \

Powered by Google App Engine
This is Rietveld 408576698