Index: src/compiler/wasm-compiler.cc |
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc |
index 18b34dc7b735ee1cc6e5a6b9292625b8e984ba4c..82b5b151b03fb0d2e78ac03629b184399a020492 100644 |
--- a/src/compiler/wasm-compiler.cc |
+++ b/src/compiler/wasm-compiler.cc |
@@ -2959,9 +2959,13 @@ Handle<Code> CompileWasmFunction(wasm::ErrorThrower& thrower, Isolate* isolate, |
Pipeline pipeline(&info); |
pipeline.InitializeWasmCompilation(pipeline_zone_scope.zone(), &zone_pool, |
jsgraph->graph()); |
- Handle<Code> code = pipeline.ScheduleAndGenerateCode(descriptor); |
- pipeline.FinalizeWasmCompilation(); |
- pipeline_zone_scope.Destroy(); |
+ Handle<Code> code; |
+ if (pipeline.ExecuteWasmCompilation(descriptor)) { |
+ code = pipeline.FinalizeWasmCompilation(descriptor); |
+ } else { |
+ code = Handle<Code>::null(); |
+ } |
+ |
if (debugging) { |
buffer.Dispose(); |
} |