Index: src/arm64/lithium-codegen-arm64.cc |
diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc |
index 1e4754affc2d6e986c4b2845061618ff7ec6d017..fb317bb12285153d14281d8f87023ae9ddd5a6dc 100644 |
--- a/src/arm64/lithium-codegen-arm64.cc |
+++ b/src/arm64/lithium-codegen-arm64.cc |
@@ -5166,11 +5166,8 @@ void LCodeGen::DoStoreKeyedFixedDouble(LStoreKeyedFixedDouble* instr) { |
} |
if (instr->NeedsCanonicalization()) { |
- DoubleRegister dbl_scratch = double_scratch(); |
- __ Fmov(dbl_scratch, |
- FixedDoubleArray::canonical_not_the_hole_nan_as_double()); |
- __ Fmaxnm(dbl_scratch, dbl_scratch, value); |
- __ Str(dbl_scratch, FieldMemOperand(store_base, offset)); |
+ __ CanonicalizeNaN(double_scratch(), value); |
+ __ Str(double_scratch(), FieldMemOperand(store_base, offset)); |
} else { |
__ Str(value, FieldMemOperand(store_base, offset)); |
} |