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

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

Issue 1172773003: [turbofan] Deprecate NodeProperties::ReplaceWithValue. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 static void ReplaceControlInput(Node* node, Node* control); 81 static void ReplaceControlInput(Node* node, Node* control);
82 static void ReplaceEffectInput(Node* node, Node* effect, int index = 0); 82 static void ReplaceEffectInput(Node* node, Node* effect, int index = 0);
83 static void ReplaceFrameStateInput(Node* node, int index, Node* frame_state); 83 static void ReplaceFrameStateInput(Node* node, int index, Node* frame_state);
84 static void RemoveNonValueInputs(Node* node); 84 static void RemoveNonValueInputs(Node* node);
85 85
86 // Merge the control node {node} into the end of the graph, introducing a 86 // Merge the control node {node} into the end of the graph, introducing a
87 // merge node or expanding an existing merge node if necessary. 87 // merge node or expanding an existing merge node if necessary.
88 static void MergeControlToEnd(Graph* graph, CommonOperatorBuilder* common, 88 static void MergeControlToEnd(Graph* graph, CommonOperatorBuilder* common,
89 Node* node); 89 Node* node);
90 90
91 // Replace value uses of {node} with {value} and effect uses of {node} with 91 // Replace all uses of {node} with the given replacement nodes. All occurring
92 // {effect}. If {effect == NULL}, then use the effect input to {node}. All 92 // use kinds need to be replaced, {NULL} is only valid if a use kind is
93 // control uses will be relaxed assuming {node} cannot throw. 93 // guaranteed not to exist.
94 static void ReplaceWithValue(Node* node, Node* value, Node* effect = nullptr, 94 static void ReplaceUses(Node* node, Node* value, Node* effect = nullptr,
95 Node* control = nullptr); 95 Node* success = nullptr, Node* exception = nullptr);
96 96
97 // --------------------------------------------------------------------------- 97 // ---------------------------------------------------------------------------
98 // Miscellaneous utilities. 98 // Miscellaneous utilities.
99 99
100 static Node* FindProjection(Node* node, size_t projection_index); 100 static Node* FindProjection(Node* node, size_t projection_index);
101 101
102 // Collect the branch-related projections from a node, such as IfTrue, 102 // Collect the branch-related projections from a node, such as IfTrue,
103 // IfFalse, IfSuccess, IfException, IfValue and IfDefault. 103 // IfFalse, IfSuccess, IfException, IfValue and IfDefault.
104 // - Branch: [ IfTrue, IfFalse ] 104 // - Branch: [ IfTrue, IfFalse ]
105 // - Call : [ IfSuccess, IfException ] 105 // - Call : [ IfSuccess, IfException ]
(...skipping 23 matching lines...) Expand all
129 129
130 private: 130 private:
131 static inline bool IsInputRange(Edge edge, int first, int count); 131 static inline bool IsInputRange(Edge edge, int first, int count);
132 }; 132 };
133 133
134 } // namespace compiler 134 } // namespace compiler
135 } // namespace internal 135 } // namespace internal
136 } // namespace v8 136 } // namespace v8
137 137
138 #endif // V8_COMPILER_NODE_PROPERTIES_H_ 138 #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