Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: src/a64/lithium-a64.cc

Issue 149483002: A64: Handle Smi representation in MathAbs and fix MathPowStub (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Do not smi-untag integer32 exponents in MathPower Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/a64/code-stubs-a64.cc ('k') | src/a64/lithium-codegen-a64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/a64/lithium-a64.cc
diff --git a/src/a64/lithium-a64.cc b/src/a64/lithium-a64.cc
index efc35f83e73f7ccccd8d3fa4d5eb6b0bedab60d7..e3c8c064c62acf51689b472f0e7752fe7e757a54 100644
--- a/src/a64/lithium-a64.cc
+++ b/src/a64/lithium-a64.cc
@@ -2345,7 +2345,7 @@ LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) {
switch (instr->op()) {
case kMathAbs: {
Representation r = instr->representation();
- if (r.IsTagged()) {
+ if (r.IsTagged() || r.IsSmi()) {
// The tagged case might need to allocate a HeapNumber for the result,
// so it is handled by a separate LInstruction.
LOperand* input = UseRegister(instr->value());
« no previous file with comments | « src/a64/code-stubs-a64.cc ('k') | src/a64/lithium-codegen-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698