Index: test/cctest/wasm/wasm-run-utils.h |
diff --git a/test/cctest/wasm/wasm-run-utils.h b/test/cctest/wasm/wasm-run-utils.h |
index 0a11fedfd1791af9a8f7a9812140ae93e648f973..a9f70deadf5725e5b9bd21f98279bb277b53819d 100644 |
--- a/test/cctest/wasm/wasm-run-utils.h |
+++ b/test/cctest/wasm/wasm-run-utils.h |
@@ -549,8 +549,8 @@ |
Code::ComputeFlags(Code::WASM_FUNCTION)); |
std::unique_ptr<CompilationJob> job(Pipeline::NewWasmCompilationJob( |
&info, graph(), desc, &source_position_table_)); |
- if (job->ExecuteJob() != CompilationJob::SUCCEEDED || |
- job->FinalizeJob() != CompilationJob::SUCCEEDED) |
+ if (job->OptimizeGraph() != CompilationJob::SUCCEEDED || |
+ job->GenerateCode() != CompilationJob::SUCCEEDED) |
return Handle<Code>::null(); |
Handle<Code> code = info.code(); |