| 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/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/types.h" | 10 #include "src/types.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 static inline void ReplaceEffectInput(Node* node, Node* effect, | 34 static inline void ReplaceEffectInput(Node* node, Node* effect, |
| 35 int index = 0); | 35 int index = 0); |
| 36 static inline void RemoveNonValueInputs(Node* node); | 36 static inline void RemoveNonValueInputs(Node* node); |
| 37 | 37 |
| 38 static inline Bounds GetBounds(Node* node); | 38 static inline Bounds GetBounds(Node* node); |
| 39 static inline void SetBounds(Node* node, Bounds bounds); | 39 static inline void SetBounds(Node* node, Bounds bounds); |
| 40 | 40 |
| 41 static inline int GetContextIndex(Node* node); | 41 static inline int GetContextIndex(Node* node); |
| 42 | 42 |
| 43 private: | |
| 44 static inline int FirstValueIndex(Node* node); | 43 static inline int FirstValueIndex(Node* node); |
| 45 static inline int FirstEffectIndex(Node* node); | 44 static inline int FirstEffectIndex(Node* node); |
| 46 static inline int FirstControlIndex(Node* node); | 45 static inline int FirstControlIndex(Node* node); |
| 47 static inline int PastValueIndex(Node* node); | 46 static inline int PastValueIndex(Node* node); |
| 48 static inline int PastContextIndex(Node* node); | 47 static inline int PastContextIndex(Node* node); |
| 49 static inline int PastEffectIndex(Node* node); | 48 static inline int PastEffectIndex(Node* node); |
| 50 static inline int PastControlIndex(Node* node); | 49 static inline int PastControlIndex(Node* node); |
| 51 | 50 |
| 52 static inline bool IsInputRange(Node::Edge edge, int first, int count); | 51 static inline bool IsInputRange(Node::Edge edge, int first, int count); |
| 53 }; | 52 }; |
| 54 } | 53 } |
| 55 } | 54 } |
| 56 } // namespace v8::internal::compiler | 55 } // namespace v8::internal::compiler |
| 57 | 56 |
| 58 #endif // V8_COMPILER_NODE_PROPERTIES_H_ | 57 #endif // V8_COMPILER_NODE_PROPERTIES_H_ |
| OLD | NEW |