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

Unified Diff: Source/heap/ThreadState.cpp

Issue 106423003: [oilpan] Rename visit to mark. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Address comments. Created 7 years 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 | « Source/heap/ThreadState.h ('k') | Source/heap/Visitor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/heap/ThreadState.cpp
diff --git a/Source/heap/ThreadState.cpp b/Source/heap/ThreadState.cpp
index 827ae1f6501db8b1d70df858ea9eac3381299bc2..0afdfcf1190a71e5373a727f432cf1ce9a3c60bc 100644
--- a/Source/heap/ThreadState.cpp
+++ b/Source/heap/ThreadState.cpp
@@ -309,7 +309,7 @@ void ThreadState::visitStack(Visitor* visitor)
{
Address* end = reinterpret_cast<Address*>(m_startOfStack);
for (Address* current = reinterpret_cast<Address*>(m_endOfStack); current < end; ++current) {
- Heap::checkAndVisitPointer(visitor, *current);
+ Heap::checkAndMarkPointer(visitor, *current);
}
}
@@ -367,14 +367,14 @@ bool ThreadState::contains(Address address)
return heapPageFromAddress(address);
}
-bool ThreadState::checkAndVisitPointer(Visitor* visitor, Address address)
+bool ThreadState::checkAndMarkPointer(Visitor* visitor, Address address)
{
BaseHeapPage* page = heapPageFromAddress(address);
if (page)
- return page->checkAndVisitPointer(visitor, address);
+ return page->checkAndMarkPointer(visitor, address);
// Not in heap pages, check large objects
for (int i = 0; i < NumberOfHeaps; i++) {
- if (m_heaps[i]->checkAndVisitLargeHeapObjects(visitor, address))
+ if (m_heaps[i]->checkAndMarkLargeHeapObjects(visitor, address))
return true;
}
return false;
« no previous file with comments | « Source/heap/ThreadState.h ('k') | Source/heap/Visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698