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

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

Issue 2635243002: [turbofan] Refactor IsSame into NodeProperties. (Closed)
Patch Set: Update. Created 3 years, 11 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-inlining.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/compiler/types.h" 9 #include "src/compiler/types.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // Collect the output-value projection for the given output index. 116 // Collect the output-value projection for the given output index.
117 static Node* FindProjection(Node* node, size_t projection_index); 117 static Node* FindProjection(Node* node, size_t projection_index);
118 118
119 // Collect the branch-related projections from a node, such as IfTrue, 119 // Collect the branch-related projections from a node, such as IfTrue,
120 // IfFalse, IfSuccess, IfException, IfValue and IfDefault. 120 // IfFalse, IfSuccess, IfException, IfValue and IfDefault.
121 // - Branch: [ IfTrue, IfFalse ] 121 // - Branch: [ IfTrue, IfFalse ]
122 // - Call : [ IfSuccess, IfException ] 122 // - Call : [ IfSuccess, IfException ]
123 // - Switch: [ IfValue, ..., IfDefault ] 123 // - Switch: [ IfValue, ..., IfDefault ]
124 static void CollectControlProjections(Node* node, Node** proj, size_t count); 124 static void CollectControlProjections(Node* node, Node** proj, size_t count);
125 125
126 // Checks if two nodes are the same, looking past {CheckHeapObject}.
127 static bool IsSame(Node* a, Node* b);
128
126 // --------------------------------------------------------------------------- 129 // ---------------------------------------------------------------------------
127 // Context. 130 // Context.
128 131
129 // Try to retrieve the specialization context from the given {node}, 132 // Try to retrieve the specialization context from the given {node},
130 // optionally utilizing the knowledge about the (outermost) function 133 // optionally utilizing the knowledge about the (outermost) function
131 // {context}. 134 // {context}.
132 static MaybeHandle<Context> GetSpecializationContext( 135 static MaybeHandle<Context> GetSpecializationContext(
133 Node* node, MaybeHandle<Context> context = MaybeHandle<Context>()); 136 Node* node, MaybeHandle<Context> context = MaybeHandle<Context>());
134 137
135 // Walk up the context chain from the given {node} until we reduce the {depth} 138 // Walk up the context chain from the given {node} until we reduce the {depth}
(...skipping 19 matching lines...) Expand all
155 158
156 private: 159 private:
157 static inline bool IsInputRange(Edge edge, int first, int count); 160 static inline bool IsInputRange(Edge edge, int first, int count);
158 }; 161 };
159 162
160 } // namespace compiler 163 } // namespace compiler
161 } // namespace internal 164 } // namespace internal
162 } // namespace v8 165 } // namespace v8
163 166
164 #endif // V8_COMPILER_NODE_PROPERTIES_H_ 167 #endif // V8_COMPILER_NODE_PROPERTIES_H_
OLDNEW
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | src/compiler/node-properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698