diff --git a/Source/JavaScriptCore/heap/FullGCActivityCallback.cpp b/Source/JavaScriptCore/heap/FullGCActivityCallback.cpp index 114e3f21f3ddc..c6c49f7bf7037 100644 --- a/Source/JavaScriptCore/heap/FullGCActivityCallback.cpp +++ b/Source/JavaScriptCore/heap/FullGCActivityCallback.cpp @@ -41,7 +41,7 @@ void FullGCActivityCallback::doCollection(VM& vm) Heap& heap = vm.heap; m_didGCRecently = false; -#if !PLATFORM(IOS_FAMILY) || PLATFORM(MACCATALYST) +#if (!PLATFORM(IOS_FAMILY) && !PLATFORM(WPE)) || PLATFORM(MACCATALYST) MonotonicTime startTime = MonotonicTime::now(); if (MemoryPressureHandler::singleton().isUnderMemoryPressure() && heap.isPagedOut()) { cancel(); diff --git a/Source/WebCore/page/MemoryRelease.cpp b/Source/WebCore/page/MemoryRelease.cpp index f13783a3f7c37..560272ed4f2d6 100644 --- a/Source/WebCore/page/MemoryRelease.cpp +++ b/Source/WebCore/page/MemoryRelease.cpp @@ -126,7 +126,7 @@ static void releaseCriticalMemory(Synchronous synchronous, MaintainBackForwardCa GCController::singleton().deleteAllCode(JSC::DeleteAllCodeIfNotCollecting); GCController::singleton().garbageCollectNow(); } else { -#if PLATFORM(IOS_FAMILY) +#if PLATFORM(IOS_FAMILY) || PLATFORM(WPE) GCController::singleton().garbageCollectNowIfNotDoneRecently(); #else GCController::singleton().garbageCollectSoon(); diff --git a/Source/WebCore/workers/WorkerGlobalScope.cpp b/Source/WebCore/workers/WorkerGlobalScope.cpp index 8b56344669fa2..2149dd867fa58 100644 --- a/Source/WebCore/workers/WorkerGlobalScope.cpp +++ b/Source/WebCore/workers/WorkerGlobalScope.cpp @@ -606,7 +606,7 @@ void WorkerGlobalScope::deleteJSCodeAndGC(Synchronous synchronous) return; } } -#if PLATFORM(IOS_FAMILY) +#if PLATFORM(IOS_FAMILY) || PLATFORM(WPE) if (!vm().heap.currentThreadIsDoingGCWork()) { vm().heap.collectNowFullIfNotDoneRecently(JSC::Async); return;