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

Unified Diff: src/interface-descriptors.h

Issue 2680153005: [builtins] Array.prototype.filter implemented as a TurboFan code stub. (Closed)
Patch Set: Flag and build fix. 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/interface-descriptors.h
diff --git a/src/interface-descriptors.h b/src/interface-descriptors.h
index 016ae62d24c04feb0b25660f8248367d27866936..02cc9b95599df3b2bc297ba00146b08eda11dcbc 100644
--- a/src/interface-descriptors.h
+++ b/src/interface-descriptors.h
@@ -56,6 +56,7 @@ class PlatformInterfaceDescriptor;
V(TransitionElementsKind) \
V(AllocateHeapNumber) \
V(Builtin) \
+ V(ArrayFilter) \
V(ArrayConstructor) \
V(IteratingArrayBuiltin) \
V(IteratingArrayBuiltinLoopContinuation) \
@@ -716,6 +717,14 @@ class IteratingArrayBuiltinLoopContinuationDescriptor
DECLARE_BUILTIN_DESCRIPTOR(IteratingArrayBuiltinLoopContinuationDescriptor)
};
+// TODO(mvstanton): It's the same as ForEach and some other array descriptors.
+// Sharing is probably better.
+class ArrayFilterDescriptor : public BuiltinDescriptor {
+ public:
+ DEFINE_BUILTIN_PARAMETERS(kCallback, kThisArg)
+ DECLARE_BUILTIN_DESCRIPTOR(ArrayFilterDescriptor)
+};
+
class ArrayConstructorDescriptor : public CallInterfaceDescriptor {
public:
DEFINE_PARAMETERS(kTarget, kNewTarget, kActualArgumentsCount, kAllocationSite)

Powered by Google App Engine
This is Rietveld 408576698