Skip to content

Commit f696258

Browse files
committed
Build failure with jit disabled
https://bugs.webkit.org/show_bug.cgi?id=322113 Reviewed by Yusuke Suzuki. Only compile the WasmAddressType B3::type constructor where B3::type is defined. * Source/JavaScriptCore/wasm/WasmAddressType.cpp: * Source/JavaScriptCore/wasm/WasmAddressType.h: Canonical link: https://commits.webkit.org/319698@main
1 parent dd58efd commit f696258

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎Source/JavaScriptCore/wasm/WasmAddressType.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ AddressType::AddressType(TypeKind typeKind)
4848
}
4949
}
5050

51-
#if !PLATFORM(PLAYSTATION)
51+
#if !PLATFORM(PLAYSTATION) && ENABLE(JIT)
5252
AddressType::AddressType(B3::Type type)
5353
{
5454
switch (type.kind()) {
@@ -88,7 +88,7 @@ Wasm::Type AddressType::asWasmType() const
8888
RELEASE_ASSERT_NOT_REACHED(invalidAddressTypeConversion);
8989
}
9090

91-
#if !PLATFORM(PLAYSTATION)
91+
#if !PLATFORM(PLAYSTATION) && ENABLE(JIT)
9292
B3::TypeKind AddressType::asB3TypeKind() const
9393
{
9494
switch (m_type) {

‎Source/JavaScriptCore/wasm/WasmAddressType.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class AddressType {
4848
constexpr AddressType(AddressType::Kind addressType)
4949
: m_type(addressType)
5050
{ }
51-
#if !PLATFORM(PLAYSTATION)
51+
#if !PLATFORM(PLAYSTATION) && ENABLE(JIT)
5252
AddressType(B3::Type);
5353
#endif
5454
explicit constexpr AddressType(bool is64Bit)

0 commit comments

Comments
 (0)