Index: test/cctest/compiler/value-helper.h |
diff --git a/test/cctest/compiler/value-helper.h b/test/cctest/compiler/value-helper.h |
index 218a773fa9d7be3b7951ef84a03bc2d2cc120930..caf1daf3a7dd75fd84250b111b2b0c0cff3d3646 100644 |
--- a/test/cctest/compiler/value-helper.h |
+++ b/test/cctest/compiler/value-helper.h |
@@ -100,7 +100,7 @@ class ValueHelper { |
} |
static std::vector<double> float64_vector() { |
- static const double nan = v8::base::OS::nan_value(); |
+ static const double nan = std::numeric_limits<double>::quiet_NaN(); |
static const double values[] = { |
0.125, 0.25, 0.375, 0.5, |
1.25, -1.75, 2, 5.125, |
@@ -134,7 +134,7 @@ class ValueHelper { |
} |
static const std::vector<double> nan_vector(size_t limit = 0) { |
- static const double nan = v8::base::OS::nan_value(); |
+ static const double nan = std::numeric_limits<double>::quiet_NaN(); |
static const double values[] = {-nan, -V8_INFINITY * -0.0, |
-V8_INFINITY * 0.0, V8_INFINITY * -0.0, |
V8_INFINITY * 0.0, nan}; |