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

Unified Diff: runtime/vm/isolate.cc

Issue 9655011: Implement prologue weak persistent handles. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: minor pre-review changes Created 8 years, 9 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/isolate.cc
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index fbf78b31a8ccc8182e104cfc1010c0f3397484b8..26124f7130340713ac18ee11ed8b4afaa3f868b6 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -423,6 +423,7 @@ RawError* Isolate::StandardRunLoop() {
void Isolate::VisitObjectPointers(ObjectPointerVisitor* visitor,
+ bool visit_prologue_weak_handles,
bool validate_frames) {
ASSERT(visitor != NULL);
@@ -445,7 +446,7 @@ void Isolate::VisitObjectPointers(ObjectPointerVisitor* visitor,
// Visit the dart api state for all local and persistent handles.
if (api_state() != NULL) {
- api_state()->VisitObjectPointers(visitor);
+ api_state()->VisitObjectPointers(visitor, visit_prologue_weak_handles);
}
// Visit all objects in the code index table.
@@ -461,9 +462,10 @@ void Isolate::VisitObjectPointers(ObjectPointerVisitor* visitor,
}
-void Isolate::VisitWeakPersistentHandles(HandleVisitor* visitor) {
+void Isolate::VisitWeakPersistentHandles(HandleVisitor* visitor,
+ bool visit_prologue_weak_handles) {
if (api_state() != NULL) {
- api_state()->VisitWeakHandles(visitor);
+ api_state()->VisitWeakHandles(visitor, visit_prologue_weak_handles);
}
}

Powered by Google App Engine
This is Rietveld 408576698