cppgc: Fix compilation on gcc

Currently getting the following 2 errors:
```
error: reference to 'MarkingType' is ambiguous
error: reference to 'SweepingType' is ambiguous
```

Change-Id: Ia50d1b5ea8af0fcc85acb9c0dc5cfae1956cec62
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3540624
Reviewed-by: Shu-yu Guo <syg@chromium.org>
Commit-Queue: Milad Farazmand <mfarazma@redhat.com>
Cr-Commit-Position: refs/heads/main@{#79556}
This commit is contained in:
Milad Fa 2022-03-21 13:40:48 -04:00 committed by V8 LUCI CQ
parent 3c03e3fc3e
commit faaf6818d2

View File

@ -412,8 +412,8 @@ TEST_F(PrefinalizerTest, GCBeforePrefinalizerRegistration) {
internal::Heap::From(GetHeap())->CollectGarbage(
{internal::GarbageCollector::Config::CollectionType::kMajor,
cppgc::Heap::StackState::kMayContainHeapPointers,
Heap::MarkingType::kAtomic,
Heap::SweepingType::kIncrementalAndConcurrent,
cppgc::Heap::MarkingType::kAtomic,
cppgc::Heap::SweepingType::kIncrementalAndConcurrent,
internal::GarbageCollector::Config::FreeMemoryHandling::
kDiscardWherePossible,
internal::GarbageCollector::Config::IsForcedGC::kForced});