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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 } | 56 } |
57 | 57 |
58 NodeId id() const { return id_; } | 58 NodeId id() const { return id_; } |
59 | 59 |
60 int InputCount() const { return input_count(); } | 60 int InputCount() const { return input_count(); } |
61 Node* InputAt(int index) const { return GetInputRecordPtr(index)->to; } | 61 Node* InputAt(int index) const { return GetInputRecordPtr(index)->to; } |
62 inline void ReplaceInput(int index, Node* new_to); | 62 inline void ReplaceInput(int index, Node* new_to); |
63 void AppendInput(Zone* zone, Node* new_to); | 63 void AppendInput(Zone* zone, Node* new_to); |
64 void InsertInput(Zone* zone, int index, Node* new_to); | 64 void InsertInput(Zone* zone, int index, Node* new_to); |
65 void RemoveInput(int index); | 65 void RemoveInput(int index); |
66 void RemoveAllInputs(); | 66 void NullAllInputs(); |
67 void TrimInputCount(int new_input_count); | 67 void TrimInputCount(int new_input_count); |
68 | 68 |
69 int UseCount() const; | 69 int UseCount() const; |
70 void ReplaceUses(Node* replace_to); | 70 void ReplaceUses(Node* replace_to); |
71 | 71 |
72 class InputEdges FINAL { | 72 class InputEdges FINAL { |
73 public: | 73 public: |
74 typedef Edge value_type; | 74 typedef Edge value_type; |
75 | 75 |
76 class iterator; | 76 class iterator; |
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 | 476 |
477 void Node::ReplaceInput(int index, Node* new_to) { | 477 void Node::ReplaceInput(int index, Node* new_to) { |
478 GetInputRecordPtr(index)->Update(new_to); | 478 GetInputRecordPtr(index)->Update(new_to); |
479 } | 479 } |
480 | 480 |
481 } // namespace compiler | 481 } // namespace compiler |
482 } // namespace internal | 482 } // namespace internal |
483 } // namespace v8 | 483 } // namespace v8 |
484 | 484 |
485 #endif // V8_COMPILER_NODE_H_ | 485 #endif // V8_COMPILER_NODE_H_ |
OLD | NEW |