Index: src/objects-debug.cc |
diff --git a/src/objects-debug.cc b/src/objects-debug.cc |
index 6242ef02af63074515cd036e845bd75556b4d39b..eef688e09846d176bbba01f8f96fe3ac4adb69be 100644 |
--- a/src/objects-debug.cc |
+++ b/src/objects-debug.cc |
@@ -4,6 +4,7 @@ |
#include "src/v8.h" |
+#include "src/base/math.h" |
#include "src/disasm.h" |
#include "src/disassembler.h" |
#include "src/heap/objects-visiting.h" |
@@ -389,11 +390,8 @@ void FixedArray::FixedArrayVerify() { |
void FixedDoubleArray::FixedDoubleArrayVerify() { |
for (int i = 0; i < length(); i++) { |
if (!is_the_hole(i)) { |
- double value = get_scalar(i); |
- CHECK(!std::isnan(value) || |
- (bit_cast<uint64_t>(value) == |
- bit_cast<uint64_t>(canonical_not_the_hole_nan_as_double())) || |
- ((bit_cast<uint64_t>(value) & Double::kSignMask) != 0)); |
+ double const value = get_scalar(i); |
+ CHECK(!std::isnan(value) || base::IsQuietNaN(value)); |
} |
} |
} |