Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: src/compiler/node-properties.h

Issue 462633003: Provide mutators in NodeProperties instead of exposing indicies. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/compiler/node-properties-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 13 matching lines...) Expand all
24 static inline Node* GetEffectInput(Node* node, int index = 0); 24 static inline Node* GetEffectInput(Node* node, int index = 0);
25 static inline Node* GetControlInput(Node* node, int index = 0); 25 static inline Node* GetControlInput(Node* node, int index = 0);
26 26
27 static inline bool IsValueEdge(Node::Edge edge); 27 static inline bool IsValueEdge(Node::Edge edge);
28 static inline bool IsContextEdge(Node::Edge edge); 28 static inline bool IsContextEdge(Node::Edge edge);
29 static inline bool IsEffectEdge(Node::Edge edge); 29 static inline bool IsEffectEdge(Node::Edge edge);
30 static inline bool IsControlEdge(Node::Edge edge); 30 static inline bool IsControlEdge(Node::Edge edge);
31 31
32 static inline bool IsControl(Node* node); 32 static inline bool IsControl(Node* node);
33 33
34 static inline void ReplaceControlInput(Node* node, Node* control);
34 static inline void ReplaceEffectInput(Node* node, Node* effect, 35 static inline void ReplaceEffectInput(Node* node, Node* effect,
35 int index = 0); 36 int index = 0);
36 static inline void RemoveNonValueInputs(Node* node); 37 static inline void RemoveNonValueInputs(Node* node);
37 38
38 static inline Bounds GetBounds(Node* node); 39 static inline Bounds GetBounds(Node* node);
39 static inline void SetBounds(Node* node, Bounds bounds); 40 static inline void SetBounds(Node* node, Bounds bounds);
40 41
41 static inline int GetContextIndex(Node* node); 42 private:
42
43 static inline int FirstValueIndex(Node* node); 43 static inline int FirstValueIndex(Node* node);
44 static inline int FirstContextIndex(Node* node);
44 static inline int FirstEffectIndex(Node* node); 45 static inline int FirstEffectIndex(Node* node);
45 static inline int FirstControlIndex(Node* node); 46 static inline int FirstControlIndex(Node* node);
46 static inline int PastValueIndex(Node* node); 47 static inline int PastValueIndex(Node* node);
47 static inline int PastContextIndex(Node* node); 48 static inline int PastContextIndex(Node* node);
48 static inline int PastEffectIndex(Node* node); 49 static inline int PastEffectIndex(Node* node);
49 static inline int PastControlIndex(Node* node); 50 static inline int PastControlIndex(Node* node);
50 51
51 static inline bool IsInputRange(Node::Edge edge, int first, int count); 52 static inline bool IsInputRange(Node::Edge edge, int first, int count);
52 }; 53 };
53 } 54 }
54 } 55 }
55 } // namespace v8::internal::compiler 56 } // namespace v8::internal::compiler
56 57
57 #endif // V8_COMPILER_NODE_PROPERTIES_H_ 58 #endif // V8_COMPILER_NODE_PROPERTIES_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/node-properties-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698