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

Unified Diff: runtime/vm/parser.h

Issue 11364166: Make sure that ParsedFunction holds onto zone handles. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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/compiler.cc ('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
===================================================================
--- runtime/vm/parser.h (revision 14716)
+++ runtime/vm/parser.h (working copy)
@@ -36,13 +36,15 @@
: function_(function),
node_sequence_(NULL),
instantiator_(NULL),
- default_parameter_values_(Array::Handle()),
+ default_parameter_values_(Array::ZoneHandle()),
saved_context_var_(NULL),
expression_temp_var_(NULL),
first_parameter_index_(0),
first_stack_local_index_(0),
num_copied_params_(0),
- num_stack_locals_(0) { }
+ num_stack_locals_(0) {
+ ASSERT(function.IsZoneHandle());
+ }
const Function& function() const { return function_; }
@@ -59,6 +61,7 @@
return default_parameter_values_;
}
void set_default_parameter_values(const Array& default_parameter_values) {
+ ASSERT(default_parameter_values.IsZoneHandle());
default_parameter_values_ = default_parameter_values.raw();
}
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698