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

Unified Diff: src/compiler.h

Issue 2618553004: [compiler] Collect eager inner functions for compilation during renumbering. (Closed)
Patch Set: Remove unused variable Created 3 years, 11 months 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/compiler.h
diff --git a/src/compiler.h b/src/compiler.h
index 4c008d2e23891cc30b16d43801bbdfc40147220f..239849b2ef1701301a3117992e022cebd01e4b07 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -23,8 +23,6 @@ class JavaScriptFrame;
class ParseInfo;
class ScriptData;
-enum class LazyCompilationMode { kAlways, kIfRequested };
-
// The V8 compiler API.
//
// This is the central hub for dispatching to the various compilers within V8.
@@ -53,11 +51,9 @@ class Compiler : public AllStatic {
static bool CompileDebugCode(Handle<SharedFunctionInfo> shared);
static MaybeHandle<JSArray> CompileForLiveEdit(Handle<Script> script);
- // Prepare a compilation job for unoptimized code. If |mode| is
- // LazyCompilationMode::kAlways, the returned job will not compile any inner
- // functions. Requires ParseAndAnalyse.
+ // Prepare a compilation job for unoptimized code. Requires ParseAndAnalyse.
static CompilationJob* PrepareUnoptimizedCompilationJob(
- CompilationInfo* info, LazyCompilationMode mode);
+ CompilationInfo* info);
// Generate and install code from previously queued compilation job.
static bool FinalizeCompilationJob(CompilationJob* job);
@@ -119,8 +115,7 @@ class Compiler : public AllStatic {
// Create a shared function info object (the code may be lazily compiled).
static Handle<SharedFunctionInfo> GetSharedFunctionInfo(
- FunctionLiteral* node, Handle<Script> script, CompilationInfo* outer,
- LazyCompilationMode mode = LazyCompilationMode::kIfRequested);
+ FunctionLiteral* node, Handle<Script> script, CompilationInfo* outer);
// Create a shared function info object for a native function literal.
static Handle<SharedFunctionInfo> GetSharedFunctionInfoForNative(

Powered by Google App Engine
This is Rietveld 408576698