| 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 } else { | 185 } else { |
| 186 iter = iter.UpdateToAndIncrement(value); | 186 iter = iter.UpdateToAndIncrement(value); |
| 187 } | 187 } |
| 188 } | 188 } |
| 189 } | 189 } |
| 190 | 190 |
| 191 | 191 |
| 192 // ----------------------------------------------------------------------------- | 192 // ----------------------------------------------------------------------------- |
| 193 // Type Bounds. | 193 // Type Bounds. |
| 194 | 194 |
| 195 inline Bounds NodeProperties::GetBounds(Node* node) { return node->bounds(); } | 195 inline bool NodeProperties::IsTyped(Node* node) { |
| 196 Bounds bounds = node->bounds(); |
| 197 DCHECK((bounds.lower == NULL) == (bounds.upper == NULL)); |
| 198 return bounds.upper != NULL; |
| 199 } |
| 200 |
| 201 inline Bounds NodeProperties::GetBounds(Node* node) { |
| 202 DCHECK(IsTyped(node)); |
| 203 return node->bounds(); |
| 204 } |
| 196 | 205 |
| 197 inline void NodeProperties::SetBounds(Node* node, Bounds b) { | 206 inline void NodeProperties::SetBounds(Node* node, Bounds b) { |
| 198 node->set_bounds(b); | 207 node->set_bounds(b); |
| 199 } | 208 } |
| 200 | 209 |
| 201 | 210 |
| 202 } | 211 } |
| 203 } | 212 } |
| 204 } // namespace v8::internal::compiler | 213 } // namespace v8::internal::compiler |
| 205 | 214 |
| 206 #endif // V8_COMPILER_NODE_PROPERTIES_INL_H_ | 215 #endif // V8_COMPILER_NODE_PROPERTIES_INL_H_ |
| OLD | NEW |