| OLD | NEW |
| 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 Loading... |
| 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 | |
| 209 inline void NodeProperties::SetBounds(Node* node, Bounds b) { | 204 inline void NodeProperties::SetBounds(Node* node, Bounds b) { |
| 210 DCHECK(b.lower != NULL && b.upper != NULL); | 205 DCHECK(b.lower != NULL && b.upper != NULL); |
| 211 node->set_bounds(b); | 206 node->set_bounds(b); |
| 212 } | 207 } |
| 213 | 208 |
| 214 inline bool NodeProperties::AllValueInputsAreTyped(Node* node) { | 209 inline bool NodeProperties::AllValueInputsAreTyped(Node* node) { |
| 215 int input_count = node->op()->ValueInputCount(); | 210 int input_count = node->op()->ValueInputCount(); |
| 216 for (int i = 0; i < input_count; ++i) { | 211 for (int i = 0; i < input_count; ++i) { |
| 217 if (!IsTyped(GetValueInput(node, i))) return false; | 212 if (!IsTyped(GetValueInput(node, i))) return false; |
| 218 } | 213 } |
| 219 return true; | 214 return true; |
| 220 } | 215 } |
| 221 | 216 |
| 222 | 217 |
| 223 } | 218 } |
| 224 } | 219 } |
| 225 } // namespace v8::internal::compiler | 220 } // namespace v8::internal::compiler |
| 226 | 221 |
| 227 #endif // V8_COMPILER_NODE_PROPERTIES_INL_H_ | 222 #endif // V8_COMPILER_NODE_PROPERTIES_INL_H_ |
| OLD | NEW |