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

Unified Diff: src/interpreter/interpreter.cc

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/interpreter/interpreter.cc
diff --git a/src/interpreter/interpreter.cc b/src/interpreter/interpreter.cc
index a44711f5fc97d97e32ab2157cc4d8a2e2fcc789d..3b4e5e5153aaf0551ce33dabe9437cccfee41146 100644
--- a/src/interpreter/interpreter.cc
+++ b/src/interpreter/interpreter.cc
@@ -33,7 +33,7 @@ typedef InterpreterAssembler::Arg Arg;
class InterpreterCompilationJob final : public CompilationJob {
public:
- explicit InterpreterCompilationJob(CompilationInfo* info);
+ InterpreterCompilationJob(CompilationInfo* info, LazyCompilationMode mode);
protected:
Status PrepareJobImpl() final;
@@ -159,8 +159,10 @@ int Interpreter::InterruptBudget() {
return FLAG_interrupt_budget * kCodeSizeMultiplier;
}
-InterpreterCompilationJob::InterpreterCompilationJob(CompilationInfo* info)
- : CompilationJob(info->isolate(), info, "Ignition"), generator_(info) {}
+InterpreterCompilationJob::InterpreterCompilationJob(CompilationInfo* info,
+ LazyCompilationMode mode)
+ : CompilationJob(info->isolate(), info, "Ignition"),
+ generator_(info, mode) {}
InterpreterCompilationJob::Status InterpreterCompilationJob::PrepareJobImpl() {
CodeGenerator::MakeCodePrologue(info(), "interpreter");
@@ -208,8 +210,9 @@ InterpreterCompilationJob::Status InterpreterCompilationJob::FinalizeJobImpl() {
return SUCCEEDED;
}
-CompilationJob* Interpreter::NewCompilationJob(CompilationInfo* info) {
- return new InterpreterCompilationJob(info);
+CompilationJob* Interpreter::NewCompilationJob(CompilationInfo* info,
+ LazyCompilationMode mode) {
+ return new InterpreterCompilationJob(info, mode);
}
bool Interpreter::IsDispatchTableInitialized() {

Powered by Google App Engine
This is Rietveld 408576698