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

Side by Side Diff: src/compiler/common-operator.h

Issue 859053002: [turbofan] Pull ResizeMergeOrPhi into CommonOperatorBuilder and use in ControlReducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | « no previous file | src/compiler/common-operator.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_COMMON_OPERATOR_H_ 5 #ifndef V8_COMPILER_COMMON_OPERATOR_H_
6 #define V8_COMPILER_COMMON_OPERATOR_H_ 6 #define V8_COMPILER_COMMON_OPERATOR_H_
7 7
8 #include "src/compiler/machine-type.h" 8 #include "src/compiler/machine-type.h"
9 #include "src/unique.h" 9 #include "src/unique.h"
10 10
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 const Operator* ValueEffect(int arguments); 194 const Operator* ValueEffect(int arguments);
195 const Operator* Finish(int arguments); 195 const Operator* Finish(int arguments);
196 const Operator* StateValues(int arguments); 196 const Operator* StateValues(int arguments);
197 const Operator* FrameState( 197 const Operator* FrameState(
198 FrameStateType type, BailoutId bailout_id, 198 FrameStateType type, BailoutId bailout_id,
199 OutputFrameStateCombine state_combine, 199 OutputFrameStateCombine state_combine,
200 MaybeHandle<JSFunction> jsfunction = MaybeHandle<JSFunction>()); 200 MaybeHandle<JSFunction> jsfunction = MaybeHandle<JSFunction>());
201 const Operator* Call(const CallDescriptor* descriptor); 201 const Operator* Call(const CallDescriptor* descriptor);
202 const Operator* Projection(size_t index); 202 const Operator* Projection(size_t index);
203 203
204 // Constructs a new merge or phi operator with the same opcode as {op}, but
205 // with {size} inputs.
206 const Operator* ResizeMergeOrPhi(const Operator* op, int size);
207
204 private: 208 private:
205 Zone* zone() const { return zone_; } 209 Zone* zone() const { return zone_; }
206 210
207 const CommonOperatorGlobalCache& cache_; 211 const CommonOperatorGlobalCache& cache_;
208 Zone* const zone_; 212 Zone* const zone_;
209 213
210 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); 214 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder);
211 }; 215 };
212 216
213 } // namespace compiler 217 } // namespace compiler
214 } // namespace internal 218 } // namespace internal
215 } // namespace v8 219 } // namespace v8
216 220
217 #endif // V8_COMPILER_COMMON_OPERATOR_H_ 221 #endif // V8_COMPILER_COMMON_OPERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/common-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698