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

Unified Diff: runtime/vm/parser.h

Issue 9664062: Support allocating and calling closures in the new non-optimizing compiler. (Closed) Base URL: https://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
diff --git a/runtime/vm/parser.h b/runtime/vm/parser.h
index 88bd8e74908025b32e2a3e6a6c87ca29e6367b68..a7d6f6bea6c6ff8ce78dce6549614be99469d830 100644
--- a/runtime/vm/parser.h
+++ b/runtime/vm/parser.h
@@ -34,7 +34,11 @@ class ParsedFunction : ValueObject {
: 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 @@ class ParsedFunction : ValueObject {
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