Index: runtime/vm/object.h |
=================================================================== |
--- runtime/vm/object.h (revision 9601) |
+++ runtime/vm/object.h (working copy) |
@@ -1460,10 +1460,21 @@ |
bool HasOptimizedCode() const; |
intptr_t NumberOfParameters() const; |
+ intptr_t NumberOfImplicitParameters() const; |
- bool AreValidArgumentCounts(int num_arguments, int num_named_arguments) const; |
- bool AreValidArguments(int num_arguments, const Array& argument_names) const; |
+ // Returns true if the argument counts are valid for calling this function. |
+ // Otherwise, it returns false and the reason (if error_message is not NULL). |
+ bool AreValidArgumentCounts(int num_arguments, |
+ int num_named_arguments, |
+ String* error_message) const; |
+ // Returns true if the total argument count and the names of optional |
+ // arguments are valid for calling this function. |
+ // Otherwise, it returns false and the reason (if error_message is not NULL). |
+ bool AreValidArguments(int num_arguments, |
+ const Array& argument_names, |
+ String* error_message) const; |
+ |
// Fully qualified name uniquely identifying the function under gdb and during |
// ast printing. The special ':' character, if present, is replaced by '_'. |
const char* ToFullyQualifiedCString() const; |