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

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: Incorporated review comments. 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
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.h
diff --git a/runtime/vm/parser.h b/runtime/vm/parser.h
index 88bd8e74908025b32e2a3e6a6c87ca29e6367b68..24894641440324dd2bb6a21b1a6368bb7405852e 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_stack_local_index_(0),
+ copied_parameter_count_(0),
+ stack_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_stack_local_index() const { return first_stack_local_index_; }
+ int copied_parameter_count() const { return copied_parameter_count_; }
+ int stack_local_count() const { return stack_local_count_; }
+
+ void AllocateVariables();
+
private:
const Function& function_;
SequenceNode* node_sequence_;
AstNode* instantiator_;
Array& default_parameter_values_;
+ int first_parameter_index_;
+ int first_stack_local_index_;
+ int copied_parameter_count_;
+ int stack_local_count_;
+
DISALLOW_COPY_AND_ASSIGN(ParsedFunction);
};
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698