Index: src/interpreter/bytecode-generator.h |
diff --git a/src/interpreter/bytecode-generator.h b/src/interpreter/bytecode-generator.h |
index 83e027f792e4ba174521d2a888150bb980871bed..405bdb959a9378bfe3f14de06a99af42cdca3222 100644 |
--- a/src/interpreter/bytecode-generator.h |
+++ b/src/interpreter/bytecode-generator.h |
@@ -109,6 +109,10 @@ class BytecodeGenerator final : public AstVisitor { |
void BuildHoleCheckForVariableLoad(VariableMode mode, Handle<String> name); |
void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); |
+ // Build jump to targets[value], where min <= value < min + size. |
+ void BuildIndexedJump(Register value, int min, size_t size, |
+ ZoneVector<BytecodeLabel>& targets); |
+ |
void VisitGeneratorPrologue(); |
void VisitArgumentsObject(Variable* variable); |
@@ -135,7 +139,9 @@ class BytecodeGenerator final : public AstVisitor { |
Register value_out); |
void VisitForInAssignment(Expression* expr, FeedbackVectorSlot slot); |
- // Visit the body of a loop iteration. |
+ // Visit the header/body of a loop iteration. |
+ void VisitIterationHeader(IterationStatement* stmt, |
+ LoopBuilder* loop_builder); |
void VisitIterationBody(IterationStatement* stmt, LoopBuilder* loop_builder); |
// Visit a statement and switch scopes, the context is in the accumulator. |
@@ -202,9 +208,10 @@ class BytecodeGenerator final : public AstVisitor { |
ExpressionResultScope* execution_result_; |
RegisterAllocationScope* register_allocator_; |
ZoneVector<BytecodeLabel> generator_resume_points_; |
+ Register generator_state_; |
+ int generator_yields_seen_; |
int try_catch_nesting_level_; |
int try_finally_nesting_level_; |
- int generator_yields_seen_; |
}; |
} // namespace interpreter |