Reviewers: jochen, baptiste.afsa1,
Message:
PTAL
https://codereview.chromium.org/136093005/diff/1/src/a64/lithium-codegen-a64.cc
File src/a64/lithium-codegen-a64.cc (right):
https://codereview.chromium.org/136093005/diff/1/src/a64/lithium-codegen-a64.cc#newcode3788
src/a64/lithium-codegen-a64.cc:3788: __ Mov(x12, x11);
MathPowStub expects integer exponent in x12
Description:
A64: Move integer exponent into correct register before calling MathPowStub.
Follow-up to r18911.
TEST=mozilla/ecma/Expressions/11.7.1
Please review this at https://codereview.chromium.org/136093005/
SVN Base: https://v8.googlecode.com/svn/branches/experimental/a64
Affected files (+1, -0 lines):
M src/a64/lithium-codegen-a64.cc
Index: src/a64/lithium-codegen-a64.cc
diff --git a/src/a64/lithium-codegen-a64.cc b/src/a64/lithium-codegen-a64.cc
index
aeb18d05860e2b13bd2187edb7168fe0e6075431..b51e93b77def13a8c71255fbdd389504ff939af8
100644
--- a/src/a64/lithium-codegen-a64.cc
+++ b/src/a64/lithium-codegen-a64.cc
@@ -3785,6 +3785,7 @@ void LCodeGen::DoPower(LPower* instr) {
MathPowStub stub(MathPowStub::TAGGED);
__ CallStub(&stub);
} else if (exponent_type.IsInteger32()) {
+ __ Mov(x12, x11);
MathPowStub stub(MathPowStub::INTEGER);
__ CallStub(&stub);
} else {
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.