| 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/compiler/frame-states.h" | 9 #include "src/compiler/frame-states.h" |
| 10 #include "src/deoptimize-reason.h" | 10 #include "src/deoptimize-reason.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 bool operator==(DeoptimizeParameters, DeoptimizeParameters); | 70 bool operator==(DeoptimizeParameters, DeoptimizeParameters); |
| 71 bool operator!=(DeoptimizeParameters, DeoptimizeParameters); | 71 bool operator!=(DeoptimizeParameters, DeoptimizeParameters); |
| 72 | 72 |
| 73 size_t hast_value(DeoptimizeParameters p); | 73 size_t hast_value(DeoptimizeParameters p); |
| 74 | 74 |
| 75 std::ostream& operator<<(std::ostream&, DeoptimizeParameters p); | 75 std::ostream& operator<<(std::ostream&, DeoptimizeParameters p); |
| 76 | 76 |
| 77 DeoptimizeParameters const& DeoptimizeParametersOf(Operator const* const); | 77 DeoptimizeParameters const& DeoptimizeParametersOf(Operator const* const); |
| 78 | 78 |
| 79 // Prediction whether throw-site is surrounded by any local catch-scope. | 79 // Prediction whether throw-site is surrounded by any local catch-scope. |
| 80 enum class IfExceptionHint { kLocallyUncaught, kLocallyCaught }; | 80 enum class IfExceptionHint { |
| 81 kLocallyUncaught, |
| 82 kLocallyCaught, |
| 83 kLocallyCaughtForPromiseReject |
| 84 }; |
| 85 |
| 86 IfExceptionHint ExceptionHintFromCatchPrediction( |
| 87 HandlerTable::CatchPrediction prediction); |
| 81 | 88 |
| 82 size_t hash_value(IfExceptionHint hint); | 89 size_t hash_value(IfExceptionHint hint); |
| 83 | 90 |
| 84 std::ostream& operator<<(std::ostream&, IfExceptionHint); | 91 std::ostream& operator<<(std::ostream&, IfExceptionHint); |
| 85 | 92 |
| 86 | 93 |
| 87 class SelectParameters final { | 94 class SelectParameters final { |
| 88 public: | 95 public: |
| 89 explicit SelectParameters(MachineRepresentation representation, | 96 explicit SelectParameters(MachineRepresentation representation, |
| 90 BranchHint hint = BranchHint::kNone) | 97 BranchHint hint = BranchHint::kNone) |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 Zone* const zone_; | 264 Zone* const zone_; |
| 258 | 265 |
| 259 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); | 266 DISALLOW_COPY_AND_ASSIGN(CommonOperatorBuilder); |
| 260 }; | 267 }; |
| 261 | 268 |
| 262 } // namespace compiler | 269 } // namespace compiler |
| 263 } // namespace internal | 270 } // namespace internal |
| 264 } // namespace v8 | 271 } // namespace v8 |
| 265 | 272 |
| 266 #endif // V8_COMPILER_COMMON_OPERATOR_H_ | 273 #endif // V8_COMPILER_COMMON_OPERATOR_H_ |
| OLD | NEW |