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

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

Issue 460593003: Initial import of ChangeLowering. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix 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
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/compiler/node.h"
9
10 #include "src/types.h" 9 #include "src/types.h"
11 10
12 namespace v8 { 11 namespace v8 {
13 namespace internal { 12 namespace internal {
14 namespace compiler { 13 namespace compiler {
15 14
16 class Node;
17 class Operator; 15 class Operator;
18 16
19 // A facade that simplifies access to the different kinds of inputs to a node. 17 // A facade that simplifies access to the different kinds of inputs to a node.
20 class NodeProperties { 18 class NodeProperties {
21 public: 19 public:
22 static inline Node* GetValueInput(Node* node, int index); 20 static inline Node* GetValueInput(Node* node, int index);
23 static inline Node* GetContextInput(Node* node); 21 static inline Node* GetContextInput(Node* node);
24 static inline Node* GetEffectInput(Node* node, int index = 0); 22 static inline Node* GetEffectInput(Node* node, int index = 0);
25 static inline Node* GetControlInput(Node* node, int index = 0); 23 static inline Node* GetControlInput(Node* node, int index = 0);
26 24
(...skipping 16 matching lines...) Expand all
43 static inline int FirstValueIndex(Node* node); 41 static inline int FirstValueIndex(Node* node);
44 static inline int FirstEffectIndex(Node* node); 42 static inline int FirstEffectIndex(Node* node);
45 static inline int FirstControlIndex(Node* node); 43 static inline int FirstControlIndex(Node* node);
46 static inline int PastValueIndex(Node* node); 44 static inline int PastValueIndex(Node* node);
47 static inline int PastContextIndex(Node* node); 45 static inline int PastContextIndex(Node* node);
48 static inline int PastEffectIndex(Node* node); 46 static inline int PastEffectIndex(Node* node);
49 static inline int PastControlIndex(Node* node); 47 static inline int PastControlIndex(Node* node);
50 48
51 static inline bool IsInputRange(Node::Edge edge, int first, int count); 49 static inline bool IsInputRange(Node::Edge edge, int first, int count);
52 }; 50 };
53 } 51
54 } 52 } // namespace compiler
55 } // namespace v8::internal::compiler 53 } // namespace internal
54 } // namespace v8
56 55
57 #endif // V8_COMPILER_NODE_PROPERTIES_H_ 56 #endif // V8_COMPILER_NODE_PROPERTIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698