From ea38ee878201bf21eafa934cc8162d3f048b6b26 Mon Sep 17 00:00:00 2001 From: "palfia@homejinni.com" Date: Fri, 2 Aug 2013 18:35:19 +0000 Subject: [PATCH] MIPS: Avoid redundant smi check for Math.abs Port r16021 (d79f4450) BUG= Review URL: https://codereview.chromium.org/21903003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16035 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/mips/lithium-codegen-mips.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc index 0167114..810b16e 100644 --- a/src/mips/lithium-codegen-mips.cc +++ b/src/mips/lithium-codegen-mips.cc @@ -3652,7 +3652,7 @@ void LCodeGen::DoMathAbs(LMathAbs* instr) { FPURegister input = ToDoubleRegister(instr->value()); FPURegister result = ToDoubleRegister(instr->result()); __ abs_d(result, input); - } else if (r.IsInteger32()) { + } else if (r.IsSmiOrInteger32()) { EmitIntegerMathAbs(instr); } else { // Representation is tagged. -- 2.7.4