Index: src/full-codegen/full-codegen.h |
diff --git a/src/full-codegen/full-codegen.h b/src/full-codegen/full-codegen.h |
index c6f3d18d415267b0ccf4f13847b24bb412b8a01e..88bd90b19ef95fc714dfbc506e0e259534299910 100644 |
--- a/src/full-codegen/full-codegen.h |
+++ b/src/full-codegen/full-codegen.h |
@@ -25,6 +25,7 @@ class CompilationInfo; |
class CompilationJob; |
class JumpPatchSite; |
class Scope; |
+enum class LazyCompilationMode; |
// ----------------------------------------------------------------------------- |
// Full code generator. |
@@ -32,13 +33,15 @@ class Scope; |
class FullCodeGenerator final : public AstVisitor<FullCodeGenerator> { |
public: |
FullCodeGenerator(MacroAssembler* masm, CompilationInfo* info, |
- uintptr_t stack_limit); |
+ uintptr_t stack_limit, LazyCompilationMode mode); |
void Initialize(uintptr_t stack_limit); |
- static CompilationJob* NewCompilationJob(CompilationInfo* info); |
+ static CompilationJob* NewCompilationJob(CompilationInfo* info, |
+ LazyCompilationMode mode); |
- static bool MakeCode(CompilationInfo* info, uintptr_t stack_limit); |
+ static bool MakeCode(CompilationInfo* info, uintptr_t stack_limit, |
+ LazyCompilationMode mode); |
static bool MakeCode(CompilationInfo* info); |
// Encode bailout state and pc-offset as a BitField<type, start, size>. |
@@ -804,6 +807,7 @@ class FullCodeGenerator final : public AstVisitor<FullCodeGenerator> { |
MacroAssembler* masm_; |
CompilationInfo* info_; |
Isolate* isolate_; |
+ LazyCompilationMode compilation_mode_; |
Zone* zone_; |
Scope* scope_; |
Label return_label_; |