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

Unified Diff: runtime/vm/object.h

Issue 10695137: Provide better error message when passing wrong number of arguments. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 9574)
+++ runtime/vm/object.h (working copy)
@@ -1460,9 +1460,16 @@
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;
+ bool AreValidArgumentCounts(int num_arguments,
srdjan 2012/07/12 00:06:37 Add comment what message_buffer contains and that
regis 2012/07/12 17:37:36 Done
+ int num_named_arguments,
+ char* message_buffer,
+ intptr_t message_buffer_size) const;
+ bool AreValidArguments(int num_arguments,
+ const Array& argument_names,
+ char* message_buffer,
+ intptr_t message_buffer_size) const;
srdjan 2012/07/12 00:06:37 Instead of passing the and allocating the message_
regis 2012/07/12 17:37:36 Both functions now take a pointer to a String hand
// Fully qualified name uniquely identifying the function under gdb and during
// ast printing. The special ':' character, if present, is replaced by '_'.
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698