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

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

Issue 2020323004: [turbofan] Remove eager frame state from all nodes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_turbofan-checkpoint-3
Patch Set: Rebased. Created 4 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
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | src/compiler/node-properties.cc » ('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/compiler/node.h" 8 #include "src/compiler/node.h"
9 #include "src/types.h" 9 #include "src/types.h"
10 10
(...skipping 23 matching lines...) Expand all
34 static int PastFrameStateIndex(Node* node); 34 static int PastFrameStateIndex(Node* node);
35 static int PastEffectIndex(Node* node); 35 static int PastEffectIndex(Node* node);
36 static int PastControlIndex(Node* node); 36 static int PastControlIndex(Node* node);
37 37
38 38
39 // --------------------------------------------------------------------------- 39 // ---------------------------------------------------------------------------
40 // Input accessors. 40 // Input accessors.
41 41
42 static Node* GetValueInput(Node* node, int index); 42 static Node* GetValueInput(Node* node, int index);
43 static Node* GetContextInput(Node* node); 43 static Node* GetContextInput(Node* node);
44 static Node* GetFrameStateInput(Node* node, int index); 44 static Node* GetFrameStateInput(Node* node);
45 static Node* GetEffectInput(Node* node, int index = 0); 45 static Node* GetEffectInput(Node* node, int index = 0);
46 static Node* GetControlInput(Node* node, int index = 0); 46 static Node* GetControlInput(Node* node, int index = 0);
47 47
48 48
49 // --------------------------------------------------------------------------- 49 // ---------------------------------------------------------------------------
50 // Edge kinds. 50 // Edge kinds.
51 51
52 static bool IsValueEdge(Edge edge); 52 static bool IsValueEdge(Edge edge);
53 static bool IsContextEdge(Edge edge); 53 static bool IsContextEdge(Edge edge);
54 static bool IsFrameStateEdge(Edge edge); 54 static bool IsFrameStateEdge(Edge edge);
(...skipping 21 matching lines...) Expand all
76 // within the graph (i.e. an IfException projection is present). 76 // within the graph (i.e. an IfException projection is present).
77 static bool IsExceptionalCall(Node* node); 77 static bool IsExceptionalCall(Node* node);
78 78
79 // --------------------------------------------------------------------------- 79 // ---------------------------------------------------------------------------
80 // Miscellaneous mutators. 80 // Miscellaneous mutators.
81 81
82 static void ReplaceValueInput(Node* node, Node* value, int index); 82 static void ReplaceValueInput(Node* node, Node* value, int index);
83 static void ReplaceContextInput(Node* node, Node* context); 83 static void ReplaceContextInput(Node* node, Node* context);
84 static void ReplaceControlInput(Node* node, Node* control, int index = 0); 84 static void ReplaceControlInput(Node* node, Node* control, int index = 0);
85 static void ReplaceEffectInput(Node* node, Node* effect, int index = 0); 85 static void ReplaceEffectInput(Node* node, Node* effect, int index = 0);
86 static void ReplaceFrameStateInput(Node* node, int index, Node* frame_state); 86 static void ReplaceFrameStateInput(Node* node, Node* frame_state);
87 static void RemoveNonValueInputs(Node* node); 87 static void RemoveNonValueInputs(Node* node);
88 static void RemoveValueInputs(Node* node); 88 static void RemoveValueInputs(Node* node);
89 89
90 // Replaces all value inputs of {node} with the single input {value}. 90 // Replaces all value inputs of {node} with the single input {value}.
91 static void ReplaceValueInputs(Node* node, Node* value); 91 static void ReplaceValueInputs(Node* node, Node* value);
92 92
93 // Merge the control node {node} into the end of the graph, introducing a 93 // Merge the control node {node} into the end of the graph, introducing a
94 // merge node or expanding an existing merge node if necessary. 94 // merge node or expanding an existing merge node if necessary.
95 static void MergeControlToEnd(Graph* graph, CommonOperatorBuilder* common, 95 static void MergeControlToEnd(Graph* graph, CommonOperatorBuilder* common,
96 Node* node); 96 Node* node);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 private: 162 private:
163 static inline bool IsInputRange(Edge edge, int first, int count); 163 static inline bool IsInputRange(Edge edge, int first, int count);
164 }; 164 };
165 165
166 } // namespace compiler 166 } // namespace compiler
167 } // namespace internal 167 } // namespace internal
168 } // namespace v8 168 } // namespace v8
169 169
170 #endif // V8_COMPILER_NODE_PROPERTIES_H_ 170 #endif // V8_COMPILER_NODE_PROPERTIES_H_
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | src/compiler/node-properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698