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