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_H_ | 5 #ifndef V8_COMPILER_NODE_PROPERTIES_H_ |
6 #define V8_COMPILER_NODE_PROPERTIES_H_ | 6 #define V8_COMPILER_NODE_PROPERTIES_H_ |
7 | 7 |
8 #include "src/compiler/node.h" | 8 #include "src/compiler/node.h" |
9 #include "src/types.h" | 9 #include "src/types.h" |
10 | 10 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 static bool IsExceptionalCall(Node* node); | 77 static bool IsExceptionalCall(Node* node); |
78 | 78 |
79 // --------------------------------------------------------------------------- | 79 // --------------------------------------------------------------------------- |
80 // Miscellaneous mutators. | 80 // Miscellaneous mutators. |
81 | 81 |
82 static void ReplaceValueInput(Node* node, Node* value, int index); | 82 static void ReplaceValueInput(Node* node, Node* value, int index); |
83 static void ReplaceContextInput(Node* node, Node* context); | 83 static void ReplaceContextInput(Node* node, Node* context); |
84 static void ReplaceControlInput(Node* node, Node* control); | 84 static void ReplaceControlInput(Node* node, Node* control); |
85 static void ReplaceEffectInput(Node* node, Node* effect, int index = 0); | 85 static void ReplaceEffectInput(Node* node, Node* effect, int index = 0); |
86 static void ReplaceFrameStateInput(Node* node, int index, Node* frame_state); | 86 static void ReplaceFrameStateInput(Node* node, int index, Node* frame_state); |
| 87 static void RemoveFrameStateInput(Node* node, int index); |
87 static void RemoveNonValueInputs(Node* node); | 88 static void RemoveNonValueInputs(Node* node); |
88 | 89 |
89 // Merge the control node {node} into the end of the graph, introducing a | 90 // Merge the control node {node} into the end of the graph, introducing a |
90 // merge node or expanding an existing merge node if necessary. | 91 // merge node or expanding an existing merge node if necessary. |
91 static void MergeControlToEnd(Graph* graph, CommonOperatorBuilder* common, | 92 static void MergeControlToEnd(Graph* graph, CommonOperatorBuilder* common, |
92 Node* node); | 93 Node* node); |
93 | 94 |
94 // Replace all uses of {node} with the given replacement nodes. All occurring | 95 // Replace all uses of {node} with the given replacement nodes. All occurring |
95 // use kinds need to be replaced, {NULL} is only valid if a use kind is | 96 // use kinds need to be replaced, {NULL} is only valid if a use kind is |
96 // guaranteed not to exist. | 97 // guaranteed not to exist. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 131 |
131 private: | 132 private: |
132 static inline bool IsInputRange(Edge edge, int first, int count); | 133 static inline bool IsInputRange(Edge edge, int first, int count); |
133 }; | 134 }; |
134 | 135 |
135 } // namespace compiler | 136 } // namespace compiler |
136 } // namespace internal | 137 } // namespace internal |
137 } // namespace v8 | 138 } // namespace v8 |
138 | 139 |
139 #endif // V8_COMPILER_NODE_PROPERTIES_H_ | 140 #endif // V8_COMPILER_NODE_PROPERTIES_H_ |
OLD | NEW |