Chromium Code Reviews| Index: src/interpreter/bytecode-generator.h |
| diff --git a/src/interpreter/bytecode-generator.h b/src/interpreter/bytecode-generator.h |
| index 4ef173890c0e880d0adbf63fcd48821dd31ec077..d5fc45f3e8ce4a19f8e7e9ca8534f8df764c2e12 100644 |
| --- a/src/interpreter/bytecode-generator.h |
| +++ b/src/interpreter/bytecode-generator.h |
| @@ -109,6 +109,8 @@ class BytecodeGenerator final : public AstVisitor { |
| void BuildHoleCheckForVariableLoad(VariableMode mode, Handle<String> name); |
| void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); |
| + void BuildGeneratorPrologue(); |
|
rmcilroy
2016/04/15 13:17:46
nit - We've been a bit inconsistent with Visit vs.
neis
2016/04/18 08:04:17
Done.
|
| + |
| void VisitArgumentsObject(Variable* variable); |
| void VisitRestArgumentsArray(Variable* rest); |
| void VisitCallSuper(Call* call); |
| @@ -204,8 +206,10 @@ class BytecodeGenerator final : public AstVisitor { |
| ContextScope* execution_context_; |
| ExpressionResultScope* execution_result_; |
| RegisterAllocationScope* register_allocator_; |
| + ZoneVector<BytecodeLabel> resume_points_; // For generator functions. |
|
rmcilroy
2016/04/15 13:17:46
just generator_resume_points_, then you don't need
neis
2016/04/18 08:04:17
Done.
|
| int try_catch_nesting_level_; |
| int try_finally_nesting_level_; |
| + int yield_count_; // For generator functions: number of yields seen so far. |
|
rmcilroy
2016/04/15 13:17:46
ditto?
neis
2016/04/18 08:04:17
Done.
|
| }; |
| } // namespace interpreter |