| Index: src/interpreter/bytecode-generator.h
|
| diff --git a/src/interpreter/bytecode-generator.h b/src/interpreter/bytecode-generator.h
|
| index 1a4a6a105cd5a9275351089131495856252cdd9d..573ad673efce2cd1f8968e25957824a088c4fb5e 100644
|
| --- a/src/interpreter/bytecode-generator.h
|
| +++ b/src/interpreter/bytecode-generator.h
|
| @@ -48,6 +48,9 @@ class BytecodeGenerator final : public AstVisitor<BytecodeGenerator> {
|
| class GlobalDeclarationsBuilder;
|
| class RegisterResultScope;
|
| class RegisterAllocationScope;
|
| + class TestResultScope;
|
| +
|
| + enum class TestFallthrough { kThen, kElse, kNone };
|
|
|
| void GenerateBytecode();
|
| void GenerateBytecodeBody();
|
| @@ -162,6 +165,8 @@ class BytecodeGenerator final : public AstVisitor<BytecodeGenerator> {
|
| MUST_USE_RESULT Register VisitForRegisterValue(Expression* expr);
|
| void VisitForRegisterValue(Expression* expr, Register destination);
|
| void VisitForEffect(Expression* expr);
|
| + void VisitForTest(Expression* expr, BytecodeLabels* then_labels,
|
| + BytecodeLabels* else_labels, TestFallthrough fallthrough);
|
|
|
| // Methods for tracking and remapping register.
|
| void RecordStoreToRegister(Register reg);
|
|
|