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

Unified Diff: runtime/vm/parser.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/pages.cc ('k') | runtime/vm/raw_object.h » ('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 30598)
+++ runtime/vm/parser.h (working copy)
@@ -40,6 +40,7 @@
public:
explicit ParsedFunction(const Function& function)
: function_(function),
+ code_(Code::Handle(function.unoptimized_code())),
node_sequence_(NULL),
instantiator_(NULL),
default_parameter_values_(Array::ZoneHandle()),
@@ -54,6 +55,7 @@
}
const Function& function() const { return function_; }
+ RawCode* code() const { return code_.raw(); }
SequenceNode* node_sequence() const { return node_sequence_; }
void SetNodeSequence(SequenceNode* node_sequence);
@@ -115,6 +117,7 @@
private:
const Function& function_;
+ Code& code_;
SequenceNode* node_sequence_;
AstNode* instantiator_;
Array& default_parameter_values_;
« no previous file with comments | « runtime/vm/pages.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698