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

Unified Diff: runtime/vm/parser.h

Issue 9693020: Optional arguments in new compiler. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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: runtime/vm/parser.h
===================================================================
--- runtime/vm/parser.h (revision 5369)
+++ runtime/vm/parser.h (working copy)
@@ -34,7 +34,11 @@
: function_(function),
node_sequence_(NULL),
instantiator_(NULL),
- default_parameter_values_(Array::Handle()) { }
+ default_parameter_values_(Array::Handle()),
+ first_parameter_index_(0),
+ first_local_index_(0),
+ copied_parameter_count_(0),
+ local_count_(0) { }
const Function& function() const { return function_; }
@@ -57,12 +61,24 @@
default_parameter_values_ = default_parameter_values.raw();
}
+ int first_parameter_index() const { return first_parameter_index_; }
+ int first_local_index() const { return first_local_index_; }
+ int copied_parameter_count() const { return copied_parameter_count_; }
+ int local_count() const { return local_count_; }
+
+ void AllocateVariables();
+
private:
const Function& function_;
SequenceNode* node_sequence_;
AstNode* instantiator_;
Array& default_parameter_values_;
+ int first_parameter_index_;
+ int first_local_index_;
+ int copied_parameter_count_;
+ int local_count_;
+
DISALLOW_COPY_AND_ASSIGN(ParsedFunction);
};

Powered by Google App Engine
This is Rietveld 408576698