Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Unified Diff: src/full-codegen/full-codegen.h

Issue 2579973002: Don't compile inner functions when compiling via the dispatcher (Closed)
Patch Set: added comment Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698