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

Unified Diff: runtime/vm/parser.h

Issue 774763002: Cleanups. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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/intrinsifier.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.h
===================================================================
--- runtime/vm/parser.h (revision 42068)
+++ runtime/vm/parser.h (working copy)
@@ -51,6 +51,7 @@
expression_temp_var_(NULL),
finally_return_temp_var_(NULL),
deferred_prefixes_(new ZoneGrowableArray<const LibraryPrefix*>()),
+ guarded_fields_(new ZoneGrowableArray<const Field*>()),
first_parameter_index_(0),
first_stack_local_index_(0),
num_copied_params_(0),
@@ -132,10 +133,18 @@
}
void AddDeferredPrefix(const LibraryPrefix& prefix);
+ ZoneGrowableArray<const Field*>* guarded_fields() const {
+ return guarded_fields_;
+ }
+
int first_parameter_index() const { return first_parameter_index_; }
int first_stack_local_index() const { return first_stack_local_index_; }
int num_copied_params() const { return num_copied_params_; }
int num_stack_locals() const { return num_stack_locals_; }
+ int num_non_copied_params() const {
+ return (num_copied_params_ == 0)
+ ? function().num_fixed_parameters() : 0;
+ }
void AllocateVariables();
void AllocateIrregexpVariables(intptr_t num_stack_locals);
@@ -174,6 +183,7 @@
LocalVariable* expression_temp_var_;
LocalVariable* finally_return_temp_var_;
ZoneGrowableArray<const LibraryPrefix*>* deferred_prefixes_;
+ ZoneGrowableArray<const Field*>* guarded_fields_;
int first_parameter_index_;
int first_stack_local_index_;
« no previous file with comments | « runtime/vm/intrinsifier.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698