| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 // Miscellaneous predicates. | 137 // Miscellaneous predicates. |
| 138 | 138 |
| 139 inline bool NodeProperties::IsControl(Node* node) { | 139 inline bool NodeProperties::IsControl(Node* node) { |
| 140 return IrOpcode::IsControlOpcode(node->opcode()); | 140 return IrOpcode::IsControlOpcode(node->opcode()); |
| 141 } | 141 } |
| 142 | 142 |
| 143 | 143 |
| 144 // ----------------------------------------------------------------------------- | 144 // ----------------------------------------------------------------------------- |
| 145 // Miscellaneous mutators. | 145 // Miscellaneous mutators. |
| 146 | 146 |
| 147 inline void NodeProperties::ReplaceContextInput(Node* node, Node* context) { |
| 148 node->ReplaceInput(FirstContextIndex(node), context); |
| 149 } |
| 150 |
| 147 inline void NodeProperties::ReplaceControlInput(Node* node, Node* control) { | 151 inline void NodeProperties::ReplaceControlInput(Node* node, Node* control) { |
| 148 node->ReplaceInput(FirstControlIndex(node), control); | 152 node->ReplaceInput(FirstControlIndex(node), control); |
| 149 } | 153 } |
| 150 | 154 |
| 151 inline void NodeProperties::ReplaceEffectInput(Node* node, Node* effect, | 155 inline void NodeProperties::ReplaceEffectInput(Node* node, Node* effect, |
| 152 int index) { | 156 int index) { |
| 153 DCHECK(index < node->op()->EffectInputCount()); | 157 DCHECK(index < node->op()->EffectInputCount()); |
| 154 return node->ReplaceInput(FirstEffectIndex(node) + index, effect); | 158 return node->ReplaceInput(FirstEffectIndex(node) + index, effect); |
| 155 } | 159 } |
| 156 | 160 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 } | 221 } |
| 218 return true; | 222 return true; |
| 219 } | 223 } |
| 220 | 224 |
| 221 | 225 |
| 222 } | 226 } |
| 223 } | 227 } |
| 224 } // namespace v8::internal::compiler | 228 } // namespace v8::internal::compiler |
| 225 | 229 |
| 226 #endif // V8_COMPILER_NODE_PROPERTIES_INL_H_ | 230 #endif // V8_COMPILER_NODE_PROPERTIES_INL_H_ |
| OLD | NEW |