Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 728169d9db6376201c3072be1a3950a717a159f7..9e552a290478e7c96dd63530fc4a2cc830e9b5bf 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -10281,7 +10281,7 @@ HInstruction* HOptimizedGraphBuilder::BuildStringCharCodeAt( |
int32_t i = c_index->NumberValueAsInteger32(); |
Handle<String> s = c_string->StringValue(); |
if (i < 0 || i >= s->length()) { |
- return New<HConstant>(base::OS::nan_value()); |
+ return New<HConstant>(std::numeric_limits<double>::quiet_NaN()); |
} |
return New<HConstant>(s->Get(i)); |
} |