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

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

Issue 2028503003: Revert of Reland "[heap] Fine-grained JSArrayBuffer tracking" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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/mark-compact.cc ('k') | src/heap/scavenger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/objects-visiting-inl.h
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h
index 4366831aa9615bca3aa7d3066e511bc140392e62..c504988436f79f562eb73530db3ff4b30da489da 100644
--- a/src/heap/objects-visiting-inl.h
+++ b/src/heap/objects-visiting-inl.h
@@ -105,6 +105,11 @@
Map* map, HeapObject* object) {
typedef FlexibleBodyVisitor<StaticVisitor, JSArrayBuffer::BodyDescriptor, int>
JSArrayBufferBodyVisitor;
+
+ if (!JSArrayBuffer::cast(object)->is_external()) {
+ Heap* heap = map->GetHeap();
+ heap->array_buffer_tracker()->MarkLive(JSArrayBuffer::cast(object));
+ }
return JSArrayBufferBodyVisitor::Visit(map, object);
}
@@ -528,7 +533,7 @@
if (!JSArrayBuffer::cast(object)->is_external() &&
!heap->InNewSpace(object)) {
- ArrayBufferTracker::MarkLive(heap, JSArrayBuffer::cast(object));
+ heap->array_buffer_tracker()->MarkLive(JSArrayBuffer::cast(object));
}
}
« no previous file with comments | « src/heap/mark-compact.cc ('k') | src/heap/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698