From 2e6916aa0627bd4369366827ef915041df71fee7 Mon Sep 17 00:00:00 2001 From: Julien Brianceau Date: Wed, 16 Oct 2013 16:04:05 +0200 Subject: [arm] Inverted src and dest FP registers in DFG speculative JIT when using hardfp. https://bugs.webkit.org/show_bug.cgi?id=122555 Patch by Julien Brianceau on 2013-10-09 Reviewed by Michael Saboff. * dfg/DFGSpeculativeJIT.h: (JSC::DFG::SpeculativeJIT::appendCallWithExceptionCheckSetResult): (JSC::DFG::SpeculativeJIT::appendCallSetResult): Change-Id: Ib633513948031702efd5ca0d4b89920e99979755 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@157173 268f45cc-cd09-0410-ab3c-d52691b4dbfc Reviewed-by: Allan Sandfeld Jensen --- Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Source/JavaScriptCore') diff --git a/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h b/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h index c6fd0d4d6..54f736600 100644 --- a/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h +++ b/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h @@ -1675,13 +1675,15 @@ public: JITCompiler::Call appendCallWithExceptionCheckSetResult(const FunctionPtr& function, FPRReg result) { JITCompiler::Call call = appendCallWithExceptionCheck(function); - m_jit.moveDouble(result, FPRInfo::argumentFPR0); + if (result != InvalidFPRReg) + m_jit.moveDouble(FPRInfo::argumentFPR0, result); return call; } JITCompiler::Call appendCallSetResult(const FunctionPtr& function, FPRReg result) { JITCompiler::Call call = m_jit.appendCall(function); - m_jit.moveDouble(result, FPRInfo::argumentFPR0); + if (result != InvalidFPRReg) + m_jit.moveDouble(FPRInfo::argumentFPR0, result); return call; } #else -- cgit v1.2.1