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

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
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 30197)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -6847,6 +6847,8 @@
const Function& function() const { return function_; }
+ const Code& code() const { return code_; }
+
Environment* DeepCopy() const { return DeepCopy(Length()); }
void DeepCopyTo(Instruction* instr) const;
@@ -6867,6 +6869,7 @@
fixed_parameter_count_(fixed_parameter_count),
deopt_id_(deopt_id),
function_(function),
+ code_(Code::Handle(function.unoptimized_code())),
outer_(outer) { }
// Deep copy an environment. The 'length' parameter may be less than the
@@ -6879,6 +6882,7 @@
const intptr_t fixed_parameter_count_;
intptr_t deopt_id_;
const Function& function_;
srdjan 2013/11/19 19:18:29 Do we need function, should we use code_ to return
zra 2013/11/22 17:18:54 Removed.
+ const Code& code_;
Environment* outer_;
DISALLOW_COPY_AND_ASSIGN(Environment);

Powered by Google App Engine
This is Rietveld 408576698