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 21 matching lines...) Expand all Loading... |
32 | 32 |
33 static inline bool IsControl(Node* node); | 33 static inline bool IsControl(Node* node); |
34 | 34 |
35 static inline void ReplaceContextInput(Node* node, Node* context); | 35 static inline void ReplaceContextInput(Node* node, Node* context); |
36 static inline void ReplaceControlInput(Node* node, Node* control); | 36 static inline void ReplaceControlInput(Node* node, Node* control); |
37 static inline void ReplaceEffectInput(Node* node, Node* effect, | 37 static inline void ReplaceEffectInput(Node* node, Node* effect, |
38 int index = 0); | 38 int index = 0); |
39 static inline void ReplaceFrameStateInput(Node* node, Node* frame_state); | 39 static inline void ReplaceFrameStateInput(Node* node, Node* frame_state); |
40 static inline void RemoveNonValueInputs(Node* node); | 40 static inline void RemoveNonValueInputs(Node* node); |
41 static inline void ReplaceWithValue(Node* node, Node* value, | 41 static inline void ReplaceWithValue(Node* node, Node* value, |
42 Node* effect = NULL); | 42 Node* effect = nullptr); |
| 43 |
| 44 static Node* FindProjection(Node* node, size_t projection_index); |
43 | 45 |
44 static inline bool IsTyped(Node* node); | 46 static inline bool IsTyped(Node* node); |
45 static inline Bounds GetBounds(Node* node); | 47 static inline Bounds GetBounds(Node* node); |
46 static inline void SetBounds(Node* node, Bounds bounds); | 48 static inline void SetBounds(Node* node, Bounds bounds); |
47 static inline void RemoveBounds(Node* node); | 49 static inline void RemoveBounds(Node* node); |
48 static inline bool AllValueInputsAreTyped(Node* node); | 50 static inline bool AllValueInputsAreTyped(Node* node); |
49 | 51 |
50 static inline int FirstValueIndex(Node* node); | 52 static inline int FirstValueIndex(Node* node); |
51 static inline int FirstContextIndex(Node* node); | 53 static inline int FirstContextIndex(Node* node); |
52 static inline int FirstFrameStateIndex(Node* node); | 54 static inline int FirstFrameStateIndex(Node* node); |
53 static inline int FirstEffectIndex(Node* node); | 55 static inline int FirstEffectIndex(Node* node); |
54 static inline int FirstControlIndex(Node* node); | 56 static inline int FirstControlIndex(Node* node); |
55 static inline int PastValueIndex(Node* node); | 57 static inline int PastValueIndex(Node* node); |
56 static inline int PastContextIndex(Node* node); | 58 static inline int PastContextIndex(Node* node); |
57 static inline int PastFrameStateIndex(Node* node); | 59 static inline int PastFrameStateIndex(Node* node); |
58 static inline int PastEffectIndex(Node* node); | 60 static inline int PastEffectIndex(Node* node); |
59 static inline int PastControlIndex(Node* node); | 61 static inline int PastControlIndex(Node* node); |
60 | 62 |
61 static inline bool IsInputRange(Edge edge, int first, int count); | 63 static inline bool IsInputRange(Edge edge, int first, int count); |
62 }; | 64 }; |
63 | 65 |
64 } // namespace compiler | 66 } // namespace compiler |
65 } // namespace internal | 67 } // namespace internal |
66 } // namespace v8 | 68 } // namespace v8 |
67 | 69 |
68 #endif // V8_COMPILER_NODE_PROPERTIES_H_ | 70 #endif // V8_COMPILER_NODE_PROPERTIES_H_ |
OLD | NEW |