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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // --------------------------------------------------------------------------- | 74 // --------------------------------------------------------------------------- |
75 // Miscellaneous mutators. | 75 // Miscellaneous mutators. |
76 | 76 |
77 static void ReplaceContextInput(Node* node, Node* context); | 77 static void ReplaceContextInput(Node* node, Node* context); |
78 static void ReplaceControlInput(Node* node, Node* control); | 78 static void ReplaceControlInput(Node* node, Node* control); |
79 static void ReplaceEffectInput(Node* node, Node* effect, int index = 0); | 79 static void ReplaceEffectInput(Node* node, Node* effect, int index = 0); |
80 static void ReplaceFrameStateInput(Node* node, Node* frame_state); | 80 static void ReplaceFrameStateInput(Node* node, Node* frame_state); |
81 static void RemoveNonValueInputs(Node* node); | 81 static void RemoveNonValueInputs(Node* node); |
82 | 82 |
83 // Replace value uses of {node} with {value} and effect uses of {node} with | 83 // Replace value uses of {node} with {value} and effect uses of {node} with |
84 // {effect}. If {effect == NULL}, then use the effect input to {node}. | 84 // {effect}. If {effect == NULL}, then use the effect input to {node}. All |
| 85 // control uses will be relaxed assuming {node} cannot throw. |
85 static void ReplaceWithValue(Node* node, Node* value, Node* effect = nullptr); | 86 static void ReplaceWithValue(Node* node, Node* value, Node* effect = nullptr); |
86 | 87 |
87 | 88 |
88 // --------------------------------------------------------------------------- | 89 // --------------------------------------------------------------------------- |
89 // Miscellaneous utilities. | 90 // Miscellaneous utilities. |
90 | 91 |
91 static Node* FindProjection(Node* node, size_t projection_index); | 92 static Node* FindProjection(Node* node, size_t projection_index); |
92 | 93 |
93 | 94 |
94 // --------------------------------------------------------------------------- | 95 // --------------------------------------------------------------------------- |
(...skipping 18 matching lines...) Expand all Loading... |
113 | 114 |
114 private: | 115 private: |
115 static inline bool IsInputRange(Edge edge, int first, int count); | 116 static inline bool IsInputRange(Edge edge, int first, int count); |
116 }; | 117 }; |
117 | 118 |
118 } // namespace compiler | 119 } // namespace compiler |
119 } // namespace internal | 120 } // namespace internal |
120 } // namespace v8 | 121 } // namespace v8 |
121 | 122 |
122 #endif // V8_COMPILER_NODE_PROPERTIES_H_ | 123 #endif // V8_COMPILER_NODE_PROPERTIES_H_ |
OLD | NEW |