Index: src/compiler/js-graph.cc |
diff --git a/src/compiler/js-graph.cc b/src/compiler/js-graph.cc |
index 68728a1764b78206373c02fc6ac8258f0f1519a0..34cbea31d34f621882b7f890d54b0cc5c1b02513 100644 |
--- a/src/compiler/js-graph.cc |
+++ b/src/compiler/js-graph.cc |
@@ -85,7 +85,7 @@ Node* JSGraph::OneConstant() { |
Node* JSGraph::NaNConstant() { |
if (!nan_constant_.is_set()) { |
- nan_constant_.set(NumberConstant(base::OS::nan_value())); |
+ nan_constant_.set(NumberConstant(std::numeric_limits<double>::quiet_NaN())); |
} |
return nan_constant_.get(); |
} |