From: whesse@chromium.org Date: Wed, 9 Mar 2011 15:27:07 +0000 (+0000) Subject: X64 Crankshaft: Fix unrestored context register in Math.power. X-Git-Tag: upstream/4.7.83~19968 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca20d718b364e153c1f98f9a5bf6a31c7af97f8c;p=platform%2Fupstream%2Fv8.git X64 Crankshaft: Fix unrestored context register in Math.power. Review URL: http://codereview.chromium.org/6649020 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7107 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc index 0ecdad3d0..f60819e5e 100644 --- a/src/x64/lithium-codegen-x64.cc +++ b/src/x64/lithium-codegen-x64.cc @@ -2563,6 +2563,8 @@ void LCodeGen::DoPower(LPower* instr) { } // Return value is in xmm0. __ movsd(result_reg, xmm0); + // Restore context register. + __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); }