Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/compiler/js-graph.cc

Issue 864803002: Remove deprecated v8::base::OS::nan_value(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix invalid test expectation. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/base/platform/platform-win32.cc ('k') | src/compiler/machine-operator-reducer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/code-stubs.h" 5 #include "src/code-stubs.h"
6 #include "src/compiler/js-graph.h" 6 #include "src/compiler/js-graph.h"
7 #include "src/compiler/node-properties-inl.h" 7 #include "src/compiler/node-properties-inl.h"
8 #include "src/compiler/typer.h" 8 #include "src/compiler/typer.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 79
80 Node* JSGraph::OneConstant() { 80 Node* JSGraph::OneConstant() {
81 if (!one_constant_.is_set()) one_constant_.set(NumberConstant(1.0)); 81 if (!one_constant_.is_set()) one_constant_.set(NumberConstant(1.0));
82 return one_constant_.get(); 82 return one_constant_.get();
83 } 83 }
84 84
85 85
86 Node* JSGraph::NaNConstant() { 86 Node* JSGraph::NaNConstant() {
87 if (!nan_constant_.is_set()) { 87 if (!nan_constant_.is_set()) {
88 nan_constant_.set(NumberConstant(base::OS::nan_value())); 88 nan_constant_.set(NumberConstant(std::numeric_limits<double>::quiet_NaN()));
89 } 89 }
90 return nan_constant_.get(); 90 return nan_constant_.get();
91 } 91 }
92 92
93 93
94 Node* JSGraph::HeapConstant(Unique<HeapObject> value) { 94 Node* JSGraph::HeapConstant(Unique<HeapObject> value) {
95 // TODO(turbofan): canonicalize heap constants using Unique<T> 95 // TODO(turbofan): canonicalize heap constants using Unique<T>
96 return graph()->NewNode(common()->HeapConstant(value)); 96 return graph()->NewNode(common()->HeapConstant(value));
97 } 97 }
98 98
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 &true_constant_, &false_constant_, &null_constant_, 220 &true_constant_, &false_constant_, &null_constant_,
221 &zero_constant_, &one_constant_, &nan_constant_}; 221 &zero_constant_, &one_constant_, &nan_constant_};
222 for (size_t i = 0; i < arraysize(ptrs); i++) { 222 for (size_t i = 0; i < arraysize(ptrs); i++) {
223 if (ptrs[i]->is_set()) nodes->push_back(ptrs[i]->get()); 223 if (ptrs[i]->is_set()) nodes->push_back(ptrs[i]->get());
224 } 224 }
225 } 225 }
226 226
227 } // namespace compiler 227 } // namespace compiler
228 } // namespace internal 228 } // namespace internal
229 } // namespace v8 229 } // namespace v8
OLDNEW
« no previous file with comments | « src/base/platform/platform-win32.cc ('k') | src/compiler/machine-operator-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698