summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Brianceau <jbriance@cisco.com>2013-10-16 16:04:05 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-18 11:38:13 +0200
commit2e6916aa0627bd4369366827ef915041df71fee7 (patch)
tree62c302f5d3c76d83272ce8780377ccd0b87cac63
parentc075f086f1ae69c28c8f6ba169d60784f904e534 (diff)
[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 <jbriance@cisco.com> 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 <allan.jensen@digia.com>
-rw-r--r--Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h6
1 files changed, 4 insertions, 2 deletions
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