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

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

Issue 492203002: Initial support for debugger frame state in Turbofan. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Another attempt to fix Win64 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/compiler/node.h" 8 #include "src/compiler/node.h"
9 #include "src/types.h" 9 #include "src/types.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 namespace compiler { 13 namespace compiler {
14 14
15 class Operator; 15 class Operator;
16 16
17 // 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.
18 class NodeProperties { 18 class NodeProperties {
19 public: 19 public:
20 static inline Node* GetValueInput(Node* node, int index); 20 static inline Node* GetValueInput(Node* node, int index);
21 static inline Node* GetContextInput(Node* node); 21 static inline Node* GetContextInput(Node* node);
22 static inline Node* GetFrameStateInput(Node* node);
22 static inline Node* GetEffectInput(Node* node, int index = 0); 23 static inline Node* GetEffectInput(Node* node, int index = 0);
23 static inline Node* GetControlInput(Node* node, int index = 0); 24 static inline Node* GetControlInput(Node* node, int index = 0);
24 25
26 static inline int GetFrameStateIndex(Node* node);
27
25 static inline bool IsValueEdge(Node::Edge edge); 28 static inline bool IsValueEdge(Node::Edge edge);
26 static inline bool IsContextEdge(Node::Edge edge); 29 static inline bool IsContextEdge(Node::Edge edge);
27 static inline bool IsEffectEdge(Node::Edge edge); 30 static inline bool IsEffectEdge(Node::Edge edge);
28 static inline bool IsControlEdge(Node::Edge edge); 31 static inline bool IsControlEdge(Node::Edge edge);
29 32
30 static inline bool IsControl(Node* node); 33 static inline bool IsControl(Node* node);
31 34
32 static inline void ReplaceControlInput(Node* node, Node* control); 35 static inline void ReplaceControlInput(Node* node, Node* control);
33 static inline void ReplaceEffectInput(Node* node, Node* effect, 36 static inline void ReplaceEffectInput(Node* node, Node* effect,
34 int index = 0); 37 int index = 0);
35 static inline void RemoveNonValueInputs(Node* node); 38 static inline void RemoveNonValueInputs(Node* node);
36 static inline void ReplaceWithValue(Node* node, Node* value, 39 static inline void ReplaceWithValue(Node* node, Node* value,
37 Node* effect = NULL); 40 Node* effect = NULL);
38 41
39 static inline Bounds GetBounds(Node* node); 42 static inline Bounds GetBounds(Node* node);
40 static inline void SetBounds(Node* node, Bounds bounds); 43 static inline void SetBounds(Node* node, Bounds bounds);
41 44
42 private: 45 private:
43 static inline int FirstValueIndex(Node* node); 46 static inline int FirstValueIndex(Node* node);
44 static inline int FirstContextIndex(Node* node); 47 static inline int FirstContextIndex(Node* node);
48 static inline int FirstFrameStateIndex(Node* node);
45 static inline int FirstEffectIndex(Node* node); 49 static inline int FirstEffectIndex(Node* node);
46 static inline int FirstControlIndex(Node* node); 50 static inline int FirstControlIndex(Node* node);
47 static inline int PastValueIndex(Node* node); 51 static inline int PastValueIndex(Node* node);
48 static inline int PastContextIndex(Node* node); 52 static inline int PastContextIndex(Node* node);
53 static inline int PastFrameStateIndex(Node* node);
49 static inline int PastEffectIndex(Node* node); 54 static inline int PastEffectIndex(Node* node);
50 static inline int PastControlIndex(Node* node); 55 static inline int PastControlIndex(Node* node);
51 56
52 static inline bool IsInputRange(Node::Edge edge, int first, int count); 57 static inline bool IsInputRange(Node::Edge edge, int first, int count);
53 }; 58 };
54 59
55 } // namespace compiler 60 } // namespace compiler
56 } // namespace internal 61 } // namespace internal
57 } // namespace v8 62 } // namespace v8
58 63
59 #endif // V8_COMPILER_NODE_PROPERTIES_H_ 64 #endif // V8_COMPILER_NODE_PROPERTIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698