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

Unified Diff: runtime/vm/object.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/object.h
===================================================================
--- runtime/vm/object.h (revision 30197)
+++ runtime/vm/object.h (working copy)
@@ -1997,6 +1997,7 @@
FINAL_HEAP_OBJECT_IMPLEMENTATION(Function, Object);
friend class Class;
+ friend class RawFunction;
};
@@ -3354,6 +3355,10 @@
FINAL_HEAP_OBJECT_IMPLEMENTATION(Code, Object);
friend class Class;
+
+ // So that the RawFunction pointer visitor can determine whether code the
+ // function points to is optimized.
+ friend class RawFunction;
};
@@ -4979,6 +4984,8 @@
friend class TwoByteString;
friend class ExternalOneByteString;
friend class ExternalTwoByteString;
+ // So that the MarkingVisitor can print a debug string from a NoHandleScope.
+ friend class MarkingVisitor;
};

Powered by Google App Engine
This is Rietveld 408576698