Index: src/compiler/common-operator.h |
diff --git a/src/compiler/common-operator.h b/src/compiler/common-operator.h |
index 8bc84ed5a6cc6d2efd495daee7657ab787d34437..5107c01d4781060bddb415dabfc2dd0ecde378fa 100644 |
--- a/src/compiler/common-operator.h |
+++ b/src/compiler/common-operator.h |
@@ -51,6 +51,13 @@ |
// Helper function for return nodes, because returns have a hidden value input. |
int ValueInputCountOfReturn(Operator const* const op); |
+ |
+// Deoptimize bailout kind. |
+enum class DeoptimizeKind : uint8_t { kEager, kSoft }; |
+ |
+size_t hash_value(DeoptimizeKind kind); |
+ |
+std::ostream& operator<<(std::ostream&, DeoptimizeKind); |
// Parameters for the {Deoptimize} operator. |
class DeoptimizeParameters final { |
@@ -319,9 +326,8 @@ |
const Operator* IfDefault(); |
const Operator* Throw(); |
const Operator* Deoptimize(DeoptimizeKind kind, DeoptimizeReason reason); |
- const Operator* DeoptimizeIf(DeoptimizeKind kind, DeoptimizeReason reason); |
- const Operator* DeoptimizeUnless(DeoptimizeKind kind, |
- DeoptimizeReason reason); |
+ const Operator* DeoptimizeIf(DeoptimizeReason reason); |
+ const Operator* DeoptimizeUnless(DeoptimizeReason reason); |
const Operator* TrapIf(int32_t trap_id); |
const Operator* TrapUnless(int32_t trap_id); |
const Operator* Return(int value_input_count = 1); |