Index: src/interpreter/control-flow-builders.h |
diff --git a/src/interpreter/control-flow-builders.h b/src/interpreter/control-flow-builders.h |
index 68c28c70d190f3a8e00449dec368390827032505..39b0b6f64312b9a3d4e732ee57759645782c26c2 100644 |
--- a/src/interpreter/control-flow-builders.h |
+++ b/src/interpreter/control-flow-builders.h |
@@ -142,7 +142,7 @@ class V8_EXPORT_PRIVATE SwitchBuilder final |
// A class to help with co-ordinating control flow in try-catch statements. |
-class V8_EXPORT_PRIVATE TryCatchBuilder final : public ControlFlowBuilder { |
+class V8_EXPORT_PRIVATE TryCatchBuilder : public ControlFlowBuilder { |
public: |
explicit TryCatchBuilder(BytecodeArrayBuilder* builder, |
HandlerTable::CatchPrediction catch_prediction) |
@@ -154,6 +154,11 @@ class V8_EXPORT_PRIVATE TryCatchBuilder final : public ControlFlowBuilder { |
void EndTry(); |
void EndCatch(); |
+ protected: |
+ HandlerTable::CatchPrediction catch_prediction() const { |
+ return catch_prediction_; |
+ } |
+ |
private: |
int handler_id_; |
HandlerTable::CatchPrediction catch_prediction_; |
@@ -161,9 +166,8 @@ class V8_EXPORT_PRIVATE TryCatchBuilder final : public ControlFlowBuilder { |
BytecodeLabel exit_; |
}; |
- |
// A class to help with co-ordinating control flow in try-finally statements. |
-class V8_EXPORT_PRIVATE TryFinallyBuilder final : public ControlFlowBuilder { |
+class V8_EXPORT_PRIVATE TryFinallyBuilder : public ControlFlowBuilder { |
public: |
explicit TryFinallyBuilder(BytecodeArrayBuilder* builder, |
HandlerTable::CatchPrediction catch_prediction) |