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

Unified Diff: src/debug/debug.cc

Issue 2801073006: Decouple root visitors from object visitors. (Closed)
Patch Set: rebase Created 3 years, 8 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
« no previous file with comments | « src/debug/debug.h ('k') | src/frames.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug.cc
diff --git a/src/debug/debug.cc b/src/debug/debug.cc
index 76aae40f5d552aa3ce832e39f7f0338313a21cd0..096f39765e1ae16e6c1691bae54990877eaca075 100644
--- a/src/debug/debug.cc
+++ b/src/debug/debug.cc
@@ -417,10 +417,10 @@ char* Debug::RestoreDebug(char* storage) {
int Debug::ArchiveSpacePerThread() { return 0; }
-void Debug::Iterate(ObjectVisitor* v) {
- v->VisitPointer(&thread_local_.return_value_);
- v->VisitPointer(&thread_local_.suspended_generator_);
- v->VisitPointer(&thread_local_.ignore_step_into_function_);
+void Debug::Iterate(RootVisitor* v) {
+ v->VisitRootPointer(Root::kDebug, &thread_local_.return_value_);
+ v->VisitRootPointer(Root::kDebug, &thread_local_.suspended_generator_);
+ v->VisitRootPointer(Root::kDebug, &thread_local_.ignore_step_into_function_);
}
DebugInfoListNode::DebugInfoListNode(DebugInfo* debug_info): next_(NULL) {
« no previous file with comments | « src/debug/debug.h ('k') | src/frames.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698