Commit e7bd239a authored by Camillo Bruni's avatar Camillo Bruni Committed by Commit Bot

[heap] #ifdef FLAG_minor_mc use

This is the only FLAG_minor_mc usage that is not guarded by
#ifdef ENABLE_MINOR_MC.

Change-Id: I54d447ede6a6ab4bbfb6ffbd7674e240d8cc1987
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2260878Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68494}
parent e1bfdae8
...@@ -4320,21 +4320,20 @@ class OldToNewSlotVerifyingVisitor : public SlotVerifyingVisitor { ...@@ -4320,21 +4320,20 @@ class OldToNewSlotVerifyingVisitor : public SlotVerifyingVisitor {
void VisitEphemeron(HeapObject host, int index, ObjectSlot key, void VisitEphemeron(HeapObject host, int index, ObjectSlot key,
ObjectSlot target) override { ObjectSlot target) override {
VisitPointer(host, target); VisitPointer(host, target);
if (FLAG_minor_mc) { #ifdef ENABLE_MINOR_MC
VisitPointer(host, target); if (FLAG_minor_mc) return VisitPointer(host, target);
} else { #endif
// Keys are handled separately and should never appear in this set. // Keys are handled separately and should never appear in this set.
CHECK(!InUntypedSet(key)); CHECK(!InUntypedSet(key));
Object k = *key; Object k = *key;
if (!ObjectInYoungGeneration(host) && ObjectInYoungGeneration(k)) { if (!ObjectInYoungGeneration(host) && ObjectInYoungGeneration(k)) {
EphemeronHashTable table = EphemeronHashTable::cast(host); EphemeronHashTable table = EphemeronHashTable::cast(host);
auto it = ephemeron_remembered_set_->find(table); auto it = ephemeron_remembered_set_->find(table);
CHECK(it != ephemeron_remembered_set_->end()); CHECK(it != ephemeron_remembered_set_->end());
int slot_index = int slot_index =
EphemeronHashTable::SlotToIndex(table.address(), key.address()); EphemeronHashTable::SlotToIndex(table.address(), key.address());
InternalIndex entry = EphemeronHashTable::IndexToEntry(slot_index); InternalIndex entry = EphemeronHashTable::IndexToEntry(slot_index);
CHECK(it->second.find(entry.as_int()) != it->second.end()); CHECK(it->second.find(entry.as_int()) != it->second.end());
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment