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

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

Issue 2222513002: [turbofan] Insert sigma nodes for loop variable backedge. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | src/compiler/common-operator.cc » ('j') | src/compiler/simplified-lowering.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/assembler.h" 8 #include "src/assembler.h"
9 #include "src/compiler/frame-states.h" 9 #include "src/compiler/frame-states.h"
10 #include "src/deoptimize-reason.h" 10 #include "src/deoptimize-reason.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 size_t hash_value(RegionObservability); 177 size_t hash_value(RegionObservability);
178 178
179 std::ostream& operator<<(std::ostream&, RegionObservability); 179 std::ostream& operator<<(std::ostream&, RegionObservability);
180 180
181 RegionObservability RegionObservabilityOf(Operator const*) WARN_UNUSED_RESULT; 181 RegionObservability RegionObservabilityOf(Operator const*) WARN_UNUSED_RESULT;
182 182
183 std::ostream& operator<<(std::ostream& os, 183 std::ostream& operator<<(std::ostream& os,
184 const ZoneVector<MachineType>* types); 184 const ZoneVector<MachineType>* types);
185 185
186 Type* SigmaTypeOf(Operator const*) WARN_UNUSED_RESULT;
Benedikt Meurer 2016/08/05 12:54:20 Nit: Rename to TypeOf
187
186 // Interface for building common operators that can be used at any level of IR, 188 // Interface for building common operators that can be used at any level of IR,
187 // including JavaScript, mid-level, and low-level. 189 // including JavaScript, mid-level, and low-level.
188 class CommonOperatorBuilder final : public ZoneObject { 190 class CommonOperatorBuilder final : public ZoneObject {
189 public: 191 public:
190 explicit CommonOperatorBuilder(Zone* zone); 192 explicit CommonOperatorBuilder(Zone* zone);
191 193
192 const Operator* Dead(); 194 const Operator* Dead();
193 const Operator* End(size_t control_input_count); 195 const Operator* End(size_t control_input_count);
194 const Operator* Branch(BranchHint = BranchHint::kNone); 196 const Operator* Branch(BranchHint = BranchHint::kNone);
195 const Operator* IfTrue(); 197 const Operator* IfTrue();
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 const Operator* FinishRegion(); 243 const Operator* FinishRegion();
242 const Operator* StateValues(int arguments); 244 const Operator* StateValues(int arguments);
243 const Operator* ObjectState(int pointer_slots, int id); 245 const Operator* ObjectState(int pointer_slots, int id);
244 const Operator* TypedStateValues(const ZoneVector<MachineType>* types); 246 const Operator* TypedStateValues(const ZoneVector<MachineType>* types);
245 const Operator* FrameState(BailoutId bailout_id, 247 const Operator* FrameState(BailoutId bailout_id,
246 OutputFrameStateCombine state_combine, 248 OutputFrameStateCombine state_combine,
247 const FrameStateFunctionInfo* function_info); 249 const FrameStateFunctionInfo* function_info);
248 const Operator* Call(const CallDescriptor* descriptor); 250 const Operator* Call(const CallDescriptor* descriptor);
249 const Operator* TailCall(const CallDescriptor* descriptor); 251 const Operator* TailCall(const CallDescriptor* descriptor);
250 const Operator* Projection(size_t index); 252 const Operator* Projection(size_t index);
253 const Operator* Sigma(Type* type);
Benedikt Meurer 2016/08/05 12:54:20 Nit: Rename to TypeGuard
251 254
252 // Constructs a new merge or phi operator with the same opcode as {op}, but 255 // Constructs a new merge or phi operator with the same opcode as {op}, but
253 // with {size} inputs. 256 // with {size} inputs.
254 const Operator* ResizeMergeOrPhi(const Operator* op, int size); 257 const Operator* ResizeMergeOrPhi(const Operator* op, int size);
255 258
256 // Constructs function info for frame state construction. 259 // Constructs function info for frame state construction.
257 const FrameStateFunctionInfo* CreateFrameStateFunctionInfo( 260 const FrameStateFunctionInfo* CreateFrameStateFunctionInfo(
258 FrameStateType type, int parameter_count, int local_count, 261 FrameStateType type, int parameter_count, int local_count,
259 Handle<SharedFunctionInfo> shared_info); 262 Handle<SharedFunctionInfo> shared_info);
260 263
261 private: 264 private:
262 Zone* zone() const { return zone_; } 265 Zone* zone() const { return zone_; }
263 266
264 const CommonOperatorGlobalCache& cache_; 267 const CommonOperatorGlobalCache& cache_;
265 Zone* const zone_; 268 Zone* const zone_;
266 269
267 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); 270 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder);
268 }; 271 };
269 272
270 } // namespace compiler 273 } // namespace compiler
271 } // namespace internal 274 } // namespace internal
272 } // namespace v8 275 } // namespace v8
273 276
274 #endif // V8_COMPILER_COMMON_OPERATOR_H_ 277 #endif // V8_COMPILER_COMMON_OPERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/common-operator.cc » ('j') | src/compiler/simplified-lowering.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698