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

Unified Diff: src/heap/heap.cc

Issue 2006183003: Revert of [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/heap.h ('k') | src/heap/incremental-marking.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index 3c8b876bf5d1e5b529001a985fe5ecabfdd92085..bc8bfe3215383fa4a03a6664286dcd51bef0ec00 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -1626,6 +1626,8 @@
scavenge_collector_->SelectScavengingVisitorsTable();
+ array_buffer_tracker()->PrepareDiscoveryInNewSpace();
+
// Flip the semispaces. After flipping, to space is empty, from space has
// live objects.
new_space_.Flip();
@@ -1742,7 +1744,7 @@
// Set age mark.
new_space_.set_age_mark(new_space_.top());
- array_buffer_tracker()->FreeDeadInNewSpace();
+ array_buffer_tracker()->FreeDead(true);
// Update how much has survived scavenge.
IncrementYoungSurvivorsCounter(static_cast<int>(
@@ -2022,8 +2024,7 @@
void Heap::RegisterNewArrayBuffer(JSArrayBuffer* buffer) {
- const bool track_live = Marking::IsBlack(Marking::MarkBitFrom(buffer));
- return array_buffer_tracker()->RegisterNew(buffer, track_live);
+ return array_buffer_tracker()->RegisterNew(buffer);
}
« no previous file with comments | « src/heap/heap.h ('k') | src/heap/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698