| Index: src/interpreter/bytecode-generator.h
|
| diff --git a/src/interpreter/bytecode-generator.h b/src/interpreter/bytecode-generator.h
|
| index f15829dea82514ca6f8fb7ebbebbcd16e3afdaa7..9c2a2c8747718940b63e6101be5eb4fec78994a1 100644
|
| --- a/src/interpreter/bytecode-generator.h
|
| +++ b/src/interpreter/bytecode-generator.h
|
| @@ -164,6 +164,26 @@ class BytecodeGenerator final : public AstVisitor<BytecodeGenerator> {
|
| void VisitForTest(Expression* expr, BytecodeLabels* then_labels,
|
| BytecodeLabels* else_labels, TestFallthrough fallthrough);
|
|
|
| + void BuildYield(int yield_id, Yield::OnException on_exception,
|
| + Yield::YieldType yield_type, Register value, int position);
|
| +
|
| + void BuildTryCatch(HandlerTable::CatchPrediction catch_prediction,
|
| + std::function<void()> build_try,
|
| + std::function<void(Register context)> build_catch);
|
| + void BuildTryFinally(HandlerTable::CatchPrediction catch_prediction,
|
| + std::function<void()> build_try,
|
| + std::function<void()> build_finally);
|
| + void BuildTryCatchFinally(
|
| + HandlerTable::CatchPrediction outer_catch_prediction,
|
| + HandlerTable::CatchPrediction inner_catch_prediction,
|
| + std::function<void()> build_try,
|
| + std::function<void(Register context)> build_catch,
|
| + std::function<void()> build_finally);
|
| +
|
| + // If FLAG_trace is enabled, invoke Runtime::kTraceExit with the return value
|
| + // in the accumulator. The return value is restored on exit.
|
| + void BuildTraceExit();
|
| +
|
| // Returns the runtime function id for a store to super for the function's
|
| // language mode.
|
| inline Runtime::FunctionId StoreToSuperRuntimeId();
|
| @@ -219,7 +239,10 @@ class BytecodeGenerator final : public AstVisitor<BytecodeGenerator> {
|
|
|
| ZoneVector<BytecodeLabel> generator_resume_points_;
|
| Register generator_state_;
|
| + Register generator_object_;
|
| + Register promise_;
|
| int loop_depth_;
|
| + HandlerTable::CatchPrediction catch_prediction_;
|
|
|
| Handle<Name> home_object_symbol_;
|
| Handle<Name> iterator_symbol_;
|
|
|