Blame SOURCES/aarch64-build.patch

a477ed
diff --git a/Source/JavaScriptCore/assembler/LinkBuffer.cpp b/Source/JavaScriptCore/assembler/LinkBuffer.cpp
a477ed
index b6577a9e8c4e..7745793670b1 100644
a477ed
--- a/Source/JavaScriptCore/assembler/LinkBuffer.cpp
a477ed
+++ b/Source/JavaScriptCore/assembler/LinkBuffer.cpp
a477ed
@@ -374,6 +374,7 @@ void LinkBuffer::copyCompactAndLinkCode(MacroAssembler& macroAssembler, JITCompi
a477ed
         m_executableMemory->shrink(m_size);
a477ed
     }
a477ed
 
a477ed
+#if ENABLE(JIT)
a477ed
     if (useFastJITPermissions()) {
a477ed
         ASSERT(codeOutData == outData);
a477ed
         if (UNLIKELY(Options::dumpJITMemoryPath()))
a477ed
@@ -382,6 +383,10 @@ void LinkBuffer::copyCompactAndLinkCode(MacroAssembler& macroAssembler, JITCompi
a477ed
         ASSERT(codeOutData != outData);
a477ed
         performJITMemcpy(codeOutData, outData, m_size);
a477ed
     }
a477ed
+#else
a477ed
+    ASSERT(codeOutData != outData);
a477ed
+    performJITMemcpy(codeOutData, outData, m_size);
a477ed
+#endif
a477ed
 
a477ed
     jumpsToLink.clear();
a477ed
a477ed
diff --git a/Source/WTF/wtf/PlatformEnable.h b/Source/WTF/wtf/PlatformEnable.h
a477ed
index 700f90adc6c3..f703d4239bc0 100644
a477ed
--- a/Source/WTF/wtf/PlatformEnable.h
a477ed
+++ b/Source/WTF/wtf/PlatformEnable.h
a477ed
@@ -871,6 +871,6 @@
a477ed
 #error "ENABLE(WEBGL2) requires ENABLE(WEBGL)"
a477ed
 #endif
a477ed
 
a477ed
-#if CPU(ARM64) && CPU(ADDRESS64)
a477ed
+#if CPU(ARM64) && CPU(ADDRESS64) && ENABLE(JIT)
a477ed
 #define USE_JUMP_ISLANDS 1
a477ed
 #endif