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 // Determines whether exceptions thrown by the given node are handled locally |
| 76 // within the graph (i.e. an IfException projection is present). |
75 static bool IsExceptionalCall(Node* node); | 77 static bool IsExceptionalCall(Node* node); |
76 | 78 |
77 // --------------------------------------------------------------------------- | 79 // --------------------------------------------------------------------------- |
78 // Miscellaneous mutators. | 80 // Miscellaneous mutators. |
79 | 81 |
80 static void ReplaceContextInput(Node* node, Node* context); | 82 static void ReplaceContextInput(Node* node, Node* context); |
81 static void ReplaceControlInput(Node* node, Node* control); | 83 static void ReplaceControlInput(Node* node, Node* control); |
82 static void ReplaceEffectInput(Node* node, Node* effect, int index = 0); | 84 static void ReplaceEffectInput(Node* node, Node* effect, int index = 0); |
83 static void ReplaceFrameStateInput(Node* node, int index, Node* frame_state); | 85 static void ReplaceFrameStateInput(Node* node, int index, Node* frame_state); |
84 static void RemoveNonValueInputs(Node* node); | 86 static void RemoveNonValueInputs(Node* node); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 129 |
128 private: | 130 private: |
129 static inline bool IsInputRange(Edge edge, int first, int count); | 131 static inline bool IsInputRange(Edge edge, int first, int count); |
130 }; | 132 }; |
131 | 133 |
132 } // namespace compiler | 134 } // namespace compiler |
133 } // namespace internal | 135 } // namespace internal |
134 } // namespace v8 | 136 } // namespace v8 |
135 | 137 |
136 #endif // V8_COMPILER_NODE_PROPERTIES_H_ | 138 #endif // V8_COMPILER_NODE_PROPERTIES_H_ |
OLD | NEW |