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

Unified Diff: src/heap/spaces.cc

Issue 2261513003: Revert of [heap] Improve size profiling for ArrayBuffer tracking (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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') | test/cctest/heap/test-array-buffer-tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/spaces.cc
diff --git a/src/heap/spaces.cc b/src/heap/spaces.cc
index 2bfb1f251f0ecda12769bf689f94864b44563d71..b31aaf3998fd98a370b3a329dcfb992c12f9e112 100644
--- a/src/heap/spaces.cc
+++ b/src/heap/spaces.cc
@@ -1105,7 +1105,7 @@
void PagedSpace::TearDown() {
for (auto it = begin(); it != end();) {
Page* page = *(it++); // Will be erased.
- heap()->array_buffer_tracker()->FreeAll(page);
+ ArrayBufferTracker::FreeAll(page);
heap()->memory_allocator()->Free<MemoryAllocator::kFull>(page);
}
anchor_.set_next_page(&anchor_);
@@ -1593,8 +1593,6 @@
bool NewSpace::AddFreshPage() {
- if (heap()->ShouldDoScavengeForReducingExternalMemory()) return false;
-
Address top = allocation_info_.top();
DCHECK(!Page::IsAtObjectStart(top));
if (!to_space_.AdvancePage()) {
@@ -1787,7 +1785,7 @@
// Properly uncommit memory to keep the allocator counters in sync.
if (is_committed()) {
for (Page* p : *this) {
- heap()->array_buffer_tracker()->FreeAll(p);
+ ArrayBufferTracker::FreeAll(p);
}
Uncommit();
}
« no previous file with comments | « src/heap/mark-compact.cc ('k') | test/cctest/heap/test-array-buffer-tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698