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

Unified Diff: runtime/vm/raw_object.h

Issue 311963002: In class Function replace current code field with current instruction field, that way we save one l… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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/raw_object.h
===================================================================
--- runtime/vm/raw_object.h (revision 36916)
+++ runtime/vm/raw_object.h (working copy)
@@ -612,7 +612,7 @@
RawArray* parameter_types_;
RawArray* parameter_names_;
RawObject* data_; // Additional data specific to the function kind.
- RawCode* code_; // Compiled code for the function.
+ RawInstructions* instructions_; // Instructions of currently active code.
RawCode* unoptimized_code_; // Unoptimized code, keep it after optimization.
RawObject** to() {
return reinterpret_cast<RawObject**>(&ptr()->unoptimized_code_);
@@ -844,6 +844,8 @@
int32_t data_[0];
friend class StackFrame;
+ friend class MarkingVisitor;
+ friend class Function;
};
@@ -871,6 +873,8 @@
friend class RawCode;
friend class Code;
friend class StackFrame;
+ friend class MarkingVisitor;
+ friend class Function;
};

Powered by Google App Engine
This is Rietveld 408576698