| 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_H_ | 5 #ifndef V8_COMPILER_NODE_H_ |
| 6 #define V8_COMPILER_NODE_H_ | 6 #define V8_COMPILER_NODE_H_ |
| 7 | 7 |
| 8 #include "src/compiler/opcodes.h" | 8 #include "src/compiler/opcodes.h" |
| 9 #include "src/compiler/operator.h" | 9 #include "src/compiler/operator.h" |
| 10 #include "src/types-inl.h" | 10 #include "src/types-inl.h" |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 | 242 |
| 243 DISALLOW_COPY_AND_ASSIGN(Node); | 243 DISALLOW_COPY_AND_ASSIGN(Node); |
| 244 }; | 244 }; |
| 245 | 245 |
| 246 | 246 |
| 247 std::ostream& operator<<(std::ostream& os, const Node& n); | 247 std::ostream& operator<<(std::ostream& os, const Node& n); |
| 248 | 248 |
| 249 | 249 |
| 250 // Typedefs to shorten commonly used Node containers. | 250 // Typedefs to shorten commonly used Node containers. |
| 251 typedef ZoneDeque<Node*> NodeDeque; | 251 typedef ZoneDeque<Node*> NodeDeque; |
| 252 typedef ZoneSet<Node*> NodeSet; |
| 252 typedef ZoneVector<Node*> NodeVector; | 253 typedef ZoneVector<Node*> NodeVector; |
| 253 typedef ZoneVector<NodeVector> NodeVectorVector; | 254 typedef ZoneVector<NodeVector> NodeVectorVector; |
| 254 | 255 |
| 255 | 256 |
| 256 // Helper to extract parameters from Operator1<*> nodes. | 257 // Helper to extract parameters from Operator1<*> nodes. |
| 257 template <typename T> | 258 template <typename T> |
| 258 static inline const T& OpParameter(const Node* node) { | 259 static inline const T& OpParameter(const Node* node) { |
| 259 return OpParameter<T>(node->op()); | 260 return OpParameter<T>(node->op()); |
| 260 } | 261 } |
| 261 | 262 |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 | 478 |
| 478 void Node::ReplaceInput(int index, Node* new_to) { | 479 void Node::ReplaceInput(int index, Node* new_to) { |
| 479 GetInputRecordPtr(index)->Update(new_to); | 480 GetInputRecordPtr(index)->Update(new_to); |
| 480 } | 481 } |
| 481 | 482 |
| 482 } // namespace compiler | 483 } // namespace compiler |
| 483 } // namespace internal | 484 } // namespace internal |
| 484 } // namespace v8 | 485 } // namespace v8 |
| 485 | 486 |
| 486 #endif // V8_COMPILER_NODE_H_ | 487 #endif // V8_COMPILER_NODE_H_ |
| OLD | NEW |