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.h" | 10 #include "src/types.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 if (old_to) old_to->RemoveUse(use); | 93 if (old_to) old_to->RemoveUse(use); |
94 *input_ptr = new_to; | 94 *input_ptr = new_to; |
95 if (new_to) new_to->AppendUse(use); | 95 if (new_to) new_to->AppendUse(use); |
96 } | 96 } |
97 } | 97 } |
98 | 98 |
99 #undef BOUNDS_CHECK | 99 #undef BOUNDS_CHECK |
100 | 100 |
101 void AppendInput(Zone* zone, Node* new_to); | 101 void AppendInput(Zone* zone, Node* new_to); |
102 void InsertInput(Zone* zone, int index, Node* new_to); | 102 void InsertInput(Zone* zone, int index, Node* new_to); |
| 103 void InsertInputs(Zone* zone, int index, int count); |
103 void RemoveInput(int index); | 104 void RemoveInput(int index); |
104 void NullAllInputs(); | 105 void NullAllInputs(); |
105 void TrimInputCount(int new_input_count); | 106 void TrimInputCount(int new_input_count); |
106 | 107 |
107 int UseCount() const; | 108 int UseCount() const; |
108 void ReplaceUses(Node* replace_to); | 109 void ReplaceUses(Node* replace_to); |
109 | 110 |
110 class InputEdges final { | 111 class InputEdges final { |
111 public: | 112 public: |
112 typedef Edge value_type; | 113 typedef Edge value_type; |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 } | 556 } |
556 | 557 |
557 | 558 |
558 Node::Uses::const_iterator Node::Uses::end() const { return const_iterator(); } | 559 Node::Uses::const_iterator Node::Uses::end() const { return const_iterator(); } |
559 | 560 |
560 } // namespace compiler | 561 } // namespace compiler |
561 } // namespace internal | 562 } // namespace internal |
562 } // namespace v8 | 563 } // namespace v8 |
563 | 564 |
564 #endif // V8_COMPILER_NODE_H_ | 565 #endif // V8_COMPILER_NODE_H_ |
OLD | NEW |