Index: src/builtins/builtins.cc |
diff --git a/src/builtins/builtins.cc b/src/builtins/builtins.cc |
index b3cd1c653c880aeb8673d85cdb916b5089d54334..44a6ae68820cbc0881dc17b7198eab45e830aa53 100644 |
--- a/src/builtins/builtins.cc |
+++ b/src/builtins/builtins.cc |
@@ -116,6 +116,22 @@ Handle<Code> Builtins::OrdinaryToPrimitive(OrdinaryToPrimitiveHint hint) { |
} |
// static |
+int Builtins::GetBuiltinParameterCount(Name name) { |
+ switch (name) { |
+#define TFJ_CASE(Name, ParamCount, ...) \ |
+ case k##Name: { \ |
+ return ParamCount; \ |
+ } |
+ BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, TFJ_CASE, IGNORE_BUILTIN, |
+ IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN) |
+#undef CASE |
+ default: |
+ UNREACHABLE(); |
+ return 0; |
+ } |
+} |
+ |
+// static |
Callable Builtins::CallableFor(Isolate* isolate, Name name) { |
switch (name) { |
#define CASE(Name, ...) \ |