From 33a75345e35d3d1a47f0258c39b480dd5e1487d8 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Fri, 21 Feb 2014 15:12:45 +0100 Subject: Fix Qt WebKit build on architectures without JIT support The fallback LLINT interpreter was triggering YARR JIT which would fail to compile and also trigger ENABLE_ASSEMBLER which would trigger even more not to compile. YARR JIT is only supported on platforms with valid JIT or native LLINT support. So we must avoid it when the fallback is used Task-number: QTBUG-36969 Change-Id: Ie94bcb316e192feb33ab528ddc3a328af154cebf Reviewed-by: Michael Bruning Reviewed-by: Jocelyn Turcotte --- Source/JavaScriptCore/bytecode/CodeBlock.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/JavaScriptCore/bytecode/CodeBlock.cpp') diff --git a/Source/JavaScriptCore/bytecode/CodeBlock.cpp b/Source/JavaScriptCore/bytecode/CodeBlock.cpp index 904e40a4c..efe4424c2 100644 --- a/Source/JavaScriptCore/bytecode/CodeBlock.cpp +++ b/Source/JavaScriptCore/bytecode/CodeBlock.cpp @@ -2947,8 +2947,12 @@ void CodeBlock::countReoptimization() unsigned CodeBlock::numberOfDFGCompiles() { +#if ENABLE(JIT) ASSERT(JITCode::isBaselineCode(getJITType())); return (JITCode::isOptimizingJIT(replacement()->getJITType()) ? 1 : 0) + m_reoptimizationRetryCounter; +#else + return 0; +#endif } int32_t CodeBlock::codeTypeThresholdMultiplier() const -- cgit v1.2.1