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

Unified Diff: src/heap/objects-visiting.cc

Issue 890663005: Introduce a flag for tracing retaining path in GC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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: src/heap/objects-visiting.cc
diff --git a/src/heap/objects-visiting.cc b/src/heap/objects-visiting.cc
index 7b2e2d9a388939440e0aac0bb5c3263fedc4676f..1c790d18576c5e34471fae864508e2cf670b235e 100644
--- a/src/heap/objects-visiting.cc
+++ b/src/heap/objects-visiting.cc
@@ -186,6 +186,17 @@ static bool MustRecordSlots(Heap* heap) {
}
+#ifdef TRACE_RETAINING_PATH
+void SetCurrentRetainer(HeapObject* obj) {
+ obj->GetHeap()->SetCurrentRetainer(obj);
+}
+
+
+void ResetCurrentRetainer(HeapObject* obj) {
+ obj->GetHeap()->SetCurrentRetainer(NULL);
+}
+#endif
+
template <class T>
struct WeakListVisitor;
« src/heap/heap.cc ('K') | « src/heap/objects-visiting.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698