| 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 | 
| 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_ | 
| OLD | NEW | 
|---|