| 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 // The ArgumentsElementsState can either describe an unmapped arguments backing |
| 301 // store or the backing store of the rest parameters. IsRestOf(op) is true in |
| 302 // the second case. |
| 303 bool IsRestOf(Operator const*); |
| 304 |
| 300 // Interface for building common operators that can be used at any level of IR, | 305 // Interface for building common operators that can be used at any level of IR, |
| 301 // including JavaScript, mid-level, and low-level. | 306 // including JavaScript, mid-level, and low-level. |
| 302 class V8_EXPORT_PRIVATE CommonOperatorBuilder final | 307 class V8_EXPORT_PRIVATE CommonOperatorBuilder final |
| 303 : public NON_EXPORTED_BASE(ZoneObject) { | 308 : public NON_EXPORTED_BASE(ZoneObject) { |
| 304 public: | 309 public: |
| 305 explicit CommonOperatorBuilder(Zone* zone); | 310 explicit CommonOperatorBuilder(Zone* zone); |
| 306 | 311 |
| 307 const Operator* Dead(); | 312 const Operator* Dead(); |
| 308 const Operator* End(size_t control_input_count); | 313 const Operator* End(size_t control_input_count); |
| 309 const Operator* Branch(BranchHint = BranchHint::kNone); | 314 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); | 360 const Operator* InductionVariablePhi(int value_input_count); |
| 356 const Operator* LoopExit(); | 361 const Operator* LoopExit(); |
| 357 const Operator* LoopExitValue(); | 362 const Operator* LoopExitValue(); |
| 358 const Operator* LoopExitEffect(); | 363 const Operator* LoopExitEffect(); |
| 359 const Operator* Checkpoint(); | 364 const Operator* Checkpoint(); |
| 360 const Operator* BeginRegion(RegionObservability); | 365 const Operator* BeginRegion(RegionObservability); |
| 361 const Operator* FinishRegion(); | 366 const Operator* FinishRegion(); |
| 362 const Operator* StateValues(int arguments, SparseInputMask bitmask); | 367 const Operator* StateValues(int arguments, SparseInputMask bitmask); |
| 363 const Operator* TypedStateValues(const ZoneVector<MachineType>* types, | 368 const Operator* TypedStateValues(const ZoneVector<MachineType>* types, |
| 364 SparseInputMask bitmask); | 369 SparseInputMask bitmask); |
| 365 const Operator* ArgumentsObjectState(); | 370 const Operator* ArgumentsElementsState(bool is_rest); |
| 366 const Operator* ObjectState(int pointer_slots); | 371 const Operator* ObjectState(int pointer_slots); |
| 367 const Operator* TypedObjectState(const ZoneVector<MachineType>* types); | 372 const Operator* TypedObjectState(const ZoneVector<MachineType>* types); |
| 368 const Operator* FrameState(BailoutId bailout_id, | 373 const Operator* FrameState(BailoutId bailout_id, |
| 369 OutputFrameStateCombine state_combine, | 374 OutputFrameStateCombine state_combine, |
| 370 const FrameStateFunctionInfo* function_info); | 375 const FrameStateFunctionInfo* function_info); |
| 371 const Operator* Call(const CallDescriptor* descriptor); | 376 const Operator* Call(const CallDescriptor* descriptor); |
| 372 const Operator* TailCall(const CallDescriptor* descriptor); | 377 const Operator* TailCall(const CallDescriptor* descriptor); |
| 373 const Operator* Projection(size_t index); | 378 const Operator* Projection(size_t index); |
| 374 const Operator* Retain(); | 379 const Operator* Retain(); |
| 375 const Operator* TypeGuard(Type* type); | 380 const Operator* TypeGuard(Type* type); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 390 Zone* const zone_; | 395 Zone* const zone_; |
| 391 | 396 |
| 392 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); | 397 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); |
| 393 }; | 398 }; |
| 394 | 399 |
| 395 } // namespace compiler | 400 } // namespace compiler |
| 396 } // namespace internal | 401 } // namespace internal |
| 397 } // namespace v8 | 402 } // namespace v8 |
| 398 | 403 |
| 399 #endif // V8_COMPILER_COMMON_OPERATOR_H_ | 404 #endif // V8_COMPILER_COMMON_OPERATOR_H_ |
| OLD | NEW |