Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(563)

Unified Diff: src/interpreter/control-flow-builders.h

Issue 2664083002: [ignition] desugar async functions/generators/modules in BytecodeGenerator
Patch Set: get rid of lambdas, for better or worse.. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698