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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 static bool IsControl(Node* node) { | 65 static bool IsControl(Node* node) { |
66 return IrOpcode::IsControlOpcode(node->opcode()); | 66 return IrOpcode::IsControlOpcode(node->opcode()); |
67 } | 67 } |
68 static bool IsConstant(Node* node) { | 68 static bool IsConstant(Node* node) { |
69 return IrOpcode::IsConstantOpcode(node->opcode()); | 69 return IrOpcode::IsConstantOpcode(node->opcode()); |
70 } | 70 } |
71 static bool IsPhi(Node* node) { | 71 static bool IsPhi(Node* node) { |
72 return IrOpcode::IsPhiOpcode(node->opcode()); | 72 return IrOpcode::IsPhiOpcode(node->opcode()); |
73 } | 73 } |
74 | 74 |
| 75 static bool IsExceptionalCall(Node* node); |
75 | 76 |
76 // --------------------------------------------------------------------------- | 77 // --------------------------------------------------------------------------- |
77 // Miscellaneous mutators. | 78 // Miscellaneous mutators. |
78 | 79 |
79 static void ReplaceContextInput(Node* node, Node* context); | 80 static void ReplaceContextInput(Node* node, Node* context); |
80 static void ReplaceControlInput(Node* node, Node* control); | 81 static void ReplaceControlInput(Node* node, Node* control); |
81 static void ReplaceEffectInput(Node* node, Node* effect, int index = 0); | 82 static void ReplaceEffectInput(Node* node, Node* effect, int index = 0); |
82 static void ReplaceFrameStateInput(Node* node, int index, Node* frame_state); | 83 static void ReplaceFrameStateInput(Node* node, int index, Node* frame_state); |
83 static void RemoveNonValueInputs(Node* node); | 84 static void RemoveNonValueInputs(Node* node); |
84 | 85 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 129 |
129 private: | 130 private: |
130 static inline bool IsInputRange(Edge edge, int first, int count); | 131 static inline bool IsInputRange(Edge edge, int first, int count); |
131 }; | 132 }; |
132 | 133 |
133 } // namespace compiler | 134 } // namespace compiler |
134 } // namespace internal | 135 } // namespace internal |
135 } // namespace v8 | 136 } // namespace v8 |
136 | 137 |
137 #endif // V8_COMPILER_NODE_PROPERTIES_H_ | 138 #endif // V8_COMPILER_NODE_PROPERTIES_H_ |
OLD | NEW |