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

Unified Diff: runtime/vm/parser.h

Issue 313403004: Fix deferred library code disabling for inlined functions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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 37101)
+++ runtime/vm/parser.h (working copy)
@@ -47,7 +47,7 @@
saved_current_context_var_(NULL),
saved_entry_context_var_(NULL),
expression_temp_var_(NULL),
- deferred_prefixes_(NULL),
+ deferred_prefixes_(new ZoneGrowableArray<const LibraryPrefix*>()),
hausner 2014/06/06 22:07:44 I didn't want to allocate anything for the 99.99%
first_parameter_index_(0),
first_stack_local_index_(0),
num_copied_params_(0),
@@ -110,8 +110,10 @@
static LocalVariable* CreateExpressionTempVar(intptr_t token_pos);
LocalVariable* EnsureExpressionTemp();
- bool HasDeferredPrefixes() const { return deferred_prefixes_ != NULL; }
- GrowableObjectArray* DeferredPrefixes() const { return deferred_prefixes_; }
+ bool HasDeferredPrefixes() const { return deferred_prefixes_->length() != 0; }
+ ZoneGrowableArray<const LibraryPrefix*>* deferred_prefixes() const {
+ return deferred_prefixes_;
+ }
void AddDeferredPrefix(const LibraryPrefix& prefix);
int first_parameter_index() const { return first_parameter_index_; }
@@ -132,7 +134,7 @@
LocalVariable* saved_current_context_var_;
LocalVariable* saved_entry_context_var_;
LocalVariable* expression_temp_var_;
- GrowableObjectArray* deferred_prefixes_;
+ ZoneGrowableArray<const LibraryPrefix*>* deferred_prefixes_;
int first_parameter_index_;
int first_stack_local_index_;

Powered by Google App Engine
This is Rietveld 408576698