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

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

Issue 2141953002: [Turbofan]: Add integer multiplication with overflow to typed lowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@multiply
Patch Set: Code comments. Created 4 years, 5 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/compiler/effect-control-linearizer.cc ('k') | src/compiler/js-typed-lowering.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.h" 7 #include "src/compiler/node-properties.h"
8 #include "src/compiler/typer.h" 8 #include "src/compiler/typer.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 Node* JSGraph::NullConstant() { 86 Node* JSGraph::NullConstant() {
87 return CACHED(kNullConstant, HeapConstant(factory()->null_value())); 87 return CACHED(kNullConstant, HeapConstant(factory()->null_value()));
88 } 88 }
89 89
90 90
91 Node* JSGraph::ZeroConstant() { 91 Node* JSGraph::ZeroConstant() {
92 return CACHED(kZeroConstant, NumberConstant(0.0)); 92 return CACHED(kZeroConstant, NumberConstant(0.0));
93 } 93 }
94 94
95
96 Node* JSGraph::OneConstant() { 95 Node* JSGraph::OneConstant() {
97 return CACHED(kOneConstant, NumberConstant(1.0)); 96 return CACHED(kOneConstant, NumberConstant(1.0));
98 } 97 }
99 98
100 99
101 Node* JSGraph::NaNConstant() { 100 Node* JSGraph::NaNConstant() {
102 return CACHED(kNaNConstant, 101 return CACHED(kNaNConstant,
103 NumberConstant(std::numeric_limits<double>::quiet_NaN())); 102 NumberConstant(std::numeric_limits<double>::quiet_NaN()));
104 } 103 }
105 104
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 for (size_t i = 0; i < arraysize(cached_nodes_); i++) { 243 for (size_t i = 0; i < arraysize(cached_nodes_); i++) {
245 if (Node* node = cached_nodes_[i]) { 244 if (Node* node = cached_nodes_[i]) {
246 if (!node->IsDead()) nodes->push_back(node); 245 if (!node->IsDead()) nodes->push_back(node);
247 } 246 }
248 } 247 }
249 } 248 }
250 249
251 } // namespace compiler 250 } // namespace compiler
252 } // namespace internal 251 } // namespace internal
253 } // namespace v8 252 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/effect-control-linearizer.cc ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698