Index: src/compiler/wasm-compiler.cc |
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc |
index b457efec4ec3e0e34ddd7305b16f1539a29fc631..41da92641b6dbc063ec93077b71607062a45026b 100644 |
--- a/src/compiler/wasm-compiler.cc |
+++ b/src/compiler/wasm-compiler.cc |
@@ -3165,11 +3165,7 @@ void WasmCompilationUnit::ExecuteCompilation() { |
} |
job_.reset(Pipeline::NewWasmCompilationJob(&info_, jsgraph_->graph(), |
descriptor, source_positions)); |
- |
- // The function name {OptimizeGraph()} is misleading but necessary because we |
- // want to use the CompilationJob interface. A better name would be |
- // ScheduleGraphAndSelectInstructions. |
- ok_ = job_->OptimizeGraph() == CompilationJob::SUCCEEDED; |
+ ok_ = job_->ExecuteJob() == CompilationJob::SUCCEEDED; |
// TODO(bradnelson): Improve histogram handling of size_t. |
// TODO(ahaas): The counters are not thread-safe at the moment. |
// isolate_->counters()->wasm_compile_function_peak_memory_bytes() |
@@ -3201,7 +3197,7 @@ Handle<Code> WasmCompilationUnit::FinishCompilation() { |
return Handle<Code>::null(); |
} |
- if (job_->GenerateCode() != CompilationJob::SUCCEEDED) { |
+ if (job_->FinalizeJob() != CompilationJob::SUCCEEDED) { |
return Handle<Code>::null(); |
} |
base::ElapsedTimer compile_timer; |