summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/platform/heap/heap_compact.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/heap/heap_compact.cc')
-rw-r--r--chromium/third_party/blink/renderer/platform/heap/heap_compact.cc12
1 files changed, 3 insertions, 9 deletions
diff --git a/chromium/third_party/blink/renderer/platform/heap/heap_compact.cc b/chromium/third_party/blink/renderer/platform/heap/heap_compact.cc
index 2b210308f4d..1d9a577d2e3 100644
--- a/chromium/third_party/blink/renderer/platform/heap/heap_compact.cc
+++ b/chromium/third_party/blink/renderer/platform/heap/heap_compact.cc
@@ -316,18 +316,12 @@ void HeapCompact::MovableObjectFixups::VerifyUpdatedSlot(
HeapCompact::HeapCompact(ThreadHeap* heap) : heap_(heap) {
// The heap compaction implementation assumes the contiguous range,
//
- // [Vector1ArenaIndex, HashTableArenaIndex]
+ // [VectorArenaIndex, HashTableArenaIndex]
//
// in a few places. Use static asserts here to not have that assumption
// be silently invalidated by ArenaIndices changes.
- static_assert(BlinkGC::kVector1ArenaIndex + 3 == BlinkGC::kVector4ArenaIndex,
+ static_assert(BlinkGC::kVectorArenaIndex + 1 == BlinkGC::kHashTableArenaIndex,
"unexpected ArenaIndices ordering");
- static_assert(
- BlinkGC::kVector4ArenaIndex + 1 == BlinkGC::kInlineVectorArenaIndex,
- "unexpected ArenaIndices ordering");
- static_assert(
- BlinkGC::kInlineVectorArenaIndex + 1 == BlinkGC::kHashTableArenaIndex,
- "unexpected ArenaIndices ordering");
}
HeapCompact::~HeapCompact() = default;
@@ -393,7 +387,7 @@ void HeapCompact::UpdateHeapResidency() {
#if DEBUG_HEAP_FREELIST
std::stringstream stream;
#endif
- for (int i = BlinkGC::kVector1ArenaIndex; i <= BlinkGC::kHashTableArenaIndex;
+ for (int i = BlinkGC::kVectorArenaIndex; i <= BlinkGC::kHashTableArenaIndex;
++i) {
NormalPageArena* arena = static_cast<NormalPageArena*>(heap_->Arena(i));
size_t arena_size = arena->ArenaSize();