Index: src/a64/lithium-codegen-a64.cc |
diff --git a/src/a64/lithium-codegen-a64.cc b/src/a64/lithium-codegen-a64.cc |
index b358742b52e762158f887ee2e4b58d5509deb958..18189ad65fe196d269098d32dca0663561e9772b 100644 |
--- a/src/a64/lithium-codegen-a64.cc |
+++ b/src/a64/lithium-codegen-a64.cc |
@@ -3723,12 +3723,7 @@ void LCodeGen::DoMathAbsTagged(LMathAbsTagged* instr) { |
// case in DoMathAbs, except that it operates on 64-bit values. |
STATIC_ASSERT((kSmiValueSize == 32) && (kSmiShift == 32) && (kSmiTag == 0)); |
- // TODO(jbramley): We can't use JumpIfNotSmi here because the tbz it uses |
- // doesn't always have enough range. Consider making a variant of it, or a |
- // TestIsSmi helper. |
- STATIC_ASSERT(kSmiTag == 0); |
- __ Tst(input, kSmiTagMask); |
- __ B(ne, deferred->entry()); |
+ __ JumpIfNotSmi(input, deferred->entry()); |
__ Abs(result, input, NULL, &done); |