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

Unified Diff: runtime/vm/intermediate_language.h

Issue 70183010: Fixes a couple problems with GC of unoptimized code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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/gc_marker.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 30598)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -6889,7 +6889,7 @@
// Construct an environment by constructing uses from an array of definitions.
static Environment* From(const GrowableArray<Definition*>& definitions,
intptr_t fixed_parameter_count,
- const Function& function);
+ const Code& code);
void set_locations(Location* locations) {
ASSERT(locations_ == NULL);
@@ -6929,7 +6929,7 @@
return fixed_parameter_count_;
}
- const Function& function() const { return function_; }
+ const Code& code() const { return code_; }
Environment* DeepCopy() const { return DeepCopy(Length()); }
@@ -6944,13 +6944,13 @@
Environment(intptr_t length,
intptr_t fixed_parameter_count,
intptr_t deopt_id,
- const Function& function,
+ const Code& code,
Environment* outer)
: values_(length),
locations_(NULL),
fixed_parameter_count_(fixed_parameter_count),
deopt_id_(deopt_id),
- function_(function),
+ code_(code),
outer_(outer) { }
// Deep copy an environment. The 'length' parameter may be less than the
@@ -6962,7 +6962,7 @@
Location* locations_;
const intptr_t fixed_parameter_count_;
intptr_t deopt_id_;
- const Function& function_;
+ const Code& code_;
Environment* outer_;
DISALLOW_COPY_AND_ASSIGN(Environment);
« no previous file with comments | « runtime/vm/gc_marker.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698