Index: src/interpreter/bytecode-generator.h |
diff --git a/src/interpreter/bytecode-generator.h b/src/interpreter/bytecode-generator.h |
index fa86489f2dcb925d893734e54cdda61bb37f6ebb..a49328cdd10c2ff8eeee3c127fdae22e56486a66 100644 |
--- a/src/interpreter/bytecode-generator.h |
+++ b/src/interpreter/bytecode-generator.h |
@@ -15,6 +15,7 @@ namespace v8 { |
namespace internal { |
class CompilationInfo; |
+enum class LazyCompilationMode; |
namespace interpreter { |
@@ -22,7 +23,7 @@ class LoopBuilder; |
class BytecodeGenerator final : public AstVisitor<BytecodeGenerator> { |
public: |
- explicit BytecodeGenerator(CompilationInfo* info); |
+ BytecodeGenerator(CompilationInfo* info, LazyCompilationMode mode); |
void GenerateBytecode(uintptr_t stack_limit); |
Handle<BytecodeArray> FinalizeBytecode(Isolate* isolate); |
@@ -206,6 +207,7 @@ class BytecodeGenerator final : public AstVisitor<BytecodeGenerator> { |
BytecodeArrayBuilder* builder_; |
CompilationInfo* info_; |
DeclarationScope* scope_; |
+ LazyCompilationMode compilation_mode_; |
GlobalDeclarationsBuilder* globals_builder_; |
ZoneVector<GlobalDeclarationsBuilder*> global_declarations_; |