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

Side by Side Diff: src/compiler/node-properties-inl.h

Issue 780623002: Reland "[turbofan] Reuse forward fixpoint algorithm in Typer by making it a Reducer." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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/node-properties.h ('k') | src/compiler/typer.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #ifndef V8_COMPILER_NODE_PROPERTIES_INL_H_ 5 #ifndef V8_COMPILER_NODE_PROPERTIES_INL_H_
6 #define V8_COMPILER_NODE_PROPERTIES_INL_H_ 6 #define V8_COMPILER_NODE_PROPERTIES_INL_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 Bounds bounds = node->bounds(); 194 Bounds bounds = node->bounds();
195 DCHECK((bounds.lower == NULL) == (bounds.upper == NULL)); 195 DCHECK((bounds.lower == NULL) == (bounds.upper == NULL));
196 return bounds.upper != NULL; 196 return bounds.upper != NULL;
197 } 197 }
198 198
199 inline Bounds NodeProperties::GetBounds(Node* node) { 199 inline Bounds NodeProperties::GetBounds(Node* node) {
200 DCHECK(IsTyped(node)); 200 DCHECK(IsTyped(node));
201 return node->bounds(); 201 return node->bounds();
202 } 202 }
203 203
204 inline void NodeProperties::RemoveBounds(Node* node) {
205 Bounds empty;
206 node->set_bounds(empty);
207 }
208
204 inline void NodeProperties::SetBounds(Node* node, Bounds b) { 209 inline void NodeProperties::SetBounds(Node* node, Bounds b) {
205 DCHECK(b.lower != NULL && b.upper != NULL); 210 DCHECK(b.lower != NULL && b.upper != NULL);
206 node->set_bounds(b); 211 node->set_bounds(b);
207 } 212 }
208 213
209 inline bool NodeProperties::AllValueInputsAreTyped(Node* node) { 214 inline bool NodeProperties::AllValueInputsAreTyped(Node* node) {
210 int input_count = node->op()->ValueInputCount(); 215 int input_count = node->op()->ValueInputCount();
211 for (int i = 0; i < input_count; ++i) { 216 for (int i = 0; i < input_count; ++i) {
212 if (!IsTyped(GetValueInput(node, i))) return false; 217 if (!IsTyped(GetValueInput(node, i))) return false;
213 } 218 }
214 return true; 219 return true;
215 } 220 }
216 221
217 222
218 } 223 }
219 } 224 }
220 } // namespace v8::internal::compiler 225 } // namespace v8::internal::compiler
221 226
222 #endif // V8_COMPILER_NODE_PROPERTIES_INL_H_ 227 #endif // V8_COMPILER_NODE_PROPERTIES_INL_H_
OLDNEW
« no previous file with comments | « src/compiler/node-properties.h ('k') | src/compiler/typer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698