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

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)
@@ -1503,13 +1503,6 @@
// Sets function's code and code's function.
void SetCode(const Code& value) const;
- // Detaches code from the function by setting the code to null, and patches
- // the code to be non-entrant.
- void DetachCode() const;
-
- // Reattaches code to the function, and patches the code to be entrant.
- void ReattachCode(const Code& code) const;
-
// Disables optimized code and switches to unoptimized code.
void SwitchToUnoptimizedCode() const;
@@ -1997,6 +1990,7 @@
FINAL_HEAP_OBJECT_IMPLEMENTATION(Function, Object);
friend class Class;
+ friend class RawFunction;
Ivan Posva 2013/11/19 19:24:48 What is this needed for?
zra 2013/11/22 17:18:54 RawFunction::VisitFunctionPointers needs to access
};
@@ -3354,6 +3348,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 +4977,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