OLD | NEW |
---|---|
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/base/compiler-specific.h" | 9 #include "src/base/compiler-specific.h" |
10 #include "src/compiler/frame-states.h" | 10 #include "src/compiler/frame-states.h" |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
290 enum class OsrGuardType { kUninitialized, kSignedSmall, kAny }; | 290 enum class OsrGuardType { kUninitialized, kSignedSmall, kAny }; |
291 size_t hash_value(OsrGuardType type); | 291 size_t hash_value(OsrGuardType type); |
292 std::ostream& operator<<(std::ostream&, OsrGuardType); | 292 std::ostream& operator<<(std::ostream&, OsrGuardType); |
293 OsrGuardType OsrGuardTypeOf(Operator const*); | 293 OsrGuardType OsrGuardTypeOf(Operator const*); |
294 | 294 |
295 SparseInputMask SparseInputMaskOf(Operator const*); | 295 SparseInputMask SparseInputMaskOf(Operator const*); |
296 | 296 |
297 ZoneVector<MachineType> const* MachineTypesOf(Operator const*) | 297 ZoneVector<MachineType> const* MachineTypesOf(Operator const*) |
298 WARN_UNUSED_RESULT; | 298 WARN_UNUSED_RESULT; |
299 | 299 |
300 int IsRestOf(Operator const*); | |
Jarin
2017/02/27 13:24:34
Should be bool.
Still, some comment explaining wh
| |
301 | |
300 // Interface for building common operators that can be used at any level of IR, | 302 // Interface for building common operators that can be used at any level of IR, |
301 // including JavaScript, mid-level, and low-level. | 303 // including JavaScript, mid-level, and low-level. |
302 class V8_EXPORT_PRIVATE CommonOperatorBuilder final | 304 class V8_EXPORT_PRIVATE CommonOperatorBuilder final |
303 : public NON_EXPORTED_BASE(ZoneObject) { | 305 : public NON_EXPORTED_BASE(ZoneObject) { |
304 public: | 306 public: |
305 explicit CommonOperatorBuilder(Zone* zone); | 307 explicit CommonOperatorBuilder(Zone* zone); |
306 | 308 |
307 const Operator* Dead(); | 309 const Operator* Dead(); |
308 const Operator* End(size_t control_input_count); | 310 const Operator* End(size_t control_input_count); |
309 const Operator* Branch(BranchHint = BranchHint::kNone); | 311 const Operator* Branch(BranchHint = BranchHint::kNone); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
355 const Operator* InductionVariablePhi(int value_input_count); | 357 const Operator* InductionVariablePhi(int value_input_count); |
356 const Operator* LoopExit(); | 358 const Operator* LoopExit(); |
357 const Operator* LoopExitValue(); | 359 const Operator* LoopExitValue(); |
358 const Operator* LoopExitEffect(); | 360 const Operator* LoopExitEffect(); |
359 const Operator* Checkpoint(); | 361 const Operator* Checkpoint(); |
360 const Operator* BeginRegion(RegionObservability); | 362 const Operator* BeginRegion(RegionObservability); |
361 const Operator* FinishRegion(); | 363 const Operator* FinishRegion(); |
362 const Operator* StateValues(int arguments, SparseInputMask bitmask); | 364 const Operator* StateValues(int arguments, SparseInputMask bitmask); |
363 const Operator* TypedStateValues(const ZoneVector<MachineType>* types, | 365 const Operator* TypedStateValues(const ZoneVector<MachineType>* types, |
364 SparseInputMask bitmask); | 366 SparseInputMask bitmask); |
365 const Operator* ArgumentsObjectState(); | 367 const Operator* ArgumentsElementsState(bool is_rest); |
366 const Operator* ObjectState(int pointer_slots); | 368 const Operator* ObjectState(int pointer_slots); |
367 const Operator* TypedObjectState(const ZoneVector<MachineType>* types); | 369 const Operator* TypedObjectState(const ZoneVector<MachineType>* types); |
368 const Operator* FrameState(BailoutId bailout_id, | 370 const Operator* FrameState(BailoutId bailout_id, |
369 OutputFrameStateCombine state_combine, | 371 OutputFrameStateCombine state_combine, |
370 const FrameStateFunctionInfo* function_info); | 372 const FrameStateFunctionInfo* function_info); |
371 const Operator* Call(const CallDescriptor* descriptor); | 373 const Operator* Call(const CallDescriptor* descriptor); |
372 const Operator* TailCall(const CallDescriptor* descriptor); | 374 const Operator* TailCall(const CallDescriptor* descriptor); |
373 const Operator* Projection(size_t index); | 375 const Operator* Projection(size_t index); |
374 const Operator* Retain(); | 376 const Operator* Retain(); |
375 const Operator* TypeGuard(Type* type); | 377 const Operator* TypeGuard(Type* type); |
(...skipping 14 matching lines...) Expand all Loading... | |
390 Zone* const zone_; | 392 Zone* const zone_; |
391 | 393 |
392 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); | 394 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); |
393 }; | 395 }; |
394 | 396 |
395 } // namespace compiler | 397 } // namespace compiler |
396 } // namespace internal | 398 } // namespace internal |
397 } // namespace v8 | 399 } // namespace v8 |
398 | 400 |
399 #endif // V8_COMPILER_COMMON_OPERATOR_H_ | 401 #endif // V8_COMPILER_COMMON_OPERATOR_H_ |
OLD | NEW |