Gardening: build fix for CLoop.
Not reviewed.
Code for the USE(LIBPAS_JIT_HEAP) ExecutableMemoryHandle is only built in when
ENABLE(JIT). Update the header to reflect this so that CLoop builds don't try to
link against it.
* jit/ExecutableMemoryHandle.h:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@288599 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/JavaScriptCore/ChangeLog b/Source/JavaScriptCore/ChangeLog
index 8339965..10fad42 100644
--- a/Source/JavaScriptCore/ChangeLog
+++ b/Source/JavaScriptCore/ChangeLog
@@ -1,3 +1,15 @@
+2022-01-25 Mark Lam <mark.lam@apple.com>
+
+ Gardening: build fix for CLoop.
+
+ Not reviewed.
+
+ Code for the USE(LIBPAS_JIT_HEAP) ExecutableMemoryHandle is only built in when
+ ENABLE(JIT). Update the header to reflect this so that CLoop builds don't try to
+ link against it.
+
+ * jit/ExecutableMemoryHandle.h:
+
2022-01-25 Yusuke Suzuki <ysuzuki@apple.com>
[JSC] Wasm module import should be done in sync when WebAssembly.instantiate gets module
diff --git a/Source/JavaScriptCore/jit/ExecutableMemoryHandle.h b/Source/JavaScriptCore/jit/ExecutableMemoryHandle.h
index d4ecfc6..2452af8 100644
--- a/Source/JavaScriptCore/jit/ExecutableMemoryHandle.h
+++ b/Source/JavaScriptCore/jit/ExecutableMemoryHandle.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2021 Apple Inc. All rights reserved.
+ * Copyright (C) 2021-2022 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -25,7 +25,7 @@
#pragma once
-#if USE(LIBPAS_JIT_HEAP)
+#if USE(LIBPAS_JIT_HEAP) && ENABLE(JIT)
#include <wtf/MetaAllocatorPtr.h>
#include <wtf/ThreadSafeRefCounted.h>
#include <bmalloc/jit_heap.h>
@@ -35,7 +35,7 @@
namespace JSC {
-#if USE(LIBPAS_JIT_HEAP)
+#if USE(LIBPAS_JIT_HEAP) && ENABLE(JIT)
class ExecutableMemoryHandle : public ThreadSafeRefCounted<ExecutableMemoryHandle> {
WTF_MAKE_FAST_ALLOCATED_WITH_HEAP_IDENTIFIER(ExecutableMemoryHandle);
@@ -105,9 +105,9 @@
unsigned m_sizeInBytes;
MemoryPtr m_start;
};
-#else // USE(LIBPAS_JIT_HEAP) -> so start of !USE(LIBPAS_JIT_HEAP) case
+#else // not (USE(LIBPAS_JIT_HEAP) && ENABLE(JIT))
typedef WTF::MetaAllocatorHandle ExecutableMemoryHandle;
-#endif // USE(LIBPAS_JIT_HEAP) -> so end of !USE(LIBPAS_JIT_HEAP) case
+#endif // USE(LIBPAS_JIT_HEAP) && ENABLE(JIT)
} // namespace JSC