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

Unified Diff: src/heap/heap-inl.h

Issue 2102243002: [heap] Iterate handles with special left-trim visitor (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comment Created 4 years, 6 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/heap/heap.cc ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap-inl.h
diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h
index 137be9865513dd4e7c8e61fb0bdb01dff953de48..a58a2b74b57ef28158422a7a8cf0b1bbe87bb670 100644
--- a/src/heap/heap-inl.h
+++ b/src/heap/heap-inl.h
@@ -482,31 +482,6 @@ void Heap::CopyBlock(Address dst, Address src, int byte_size) {
static_cast<size_t>(byte_size / kPointerSize));
}
-bool Heap::PurgeLeftTrimmedObject(Object** object) {
- HeapObject* current = reinterpret_cast<HeapObject*>(*object);
- const MapWord map_word = current->map_word();
- if (current->IsFiller() && !map_word.IsForwardingAddress()) {
-#ifdef DEBUG
- // We need to find a FixedArrayBase map after walking the fillers.
- while (current->IsFiller()) {
- Address next = reinterpret_cast<Address>(current);
- if (current->map() == one_pointer_filler_map()) {
- next += kPointerSize;
- } else if (current->map() == two_pointer_filler_map()) {
- next += 2 * kPointerSize;
- } else {
- next += current->Size();
- }
- current = reinterpret_cast<HeapObject*>(next);
- }
- DCHECK(current->IsFixedArrayBase());
-#endif // DEBUG
- *object = nullptr;
- return true;
- }
- return false;
-}
-
template <Heap::FindMementoMode mode>
AllocationMemento* Heap::FindAllocationMemento(HeapObject* object) {
// Check if there is potentially a memento behind the object. If
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698