| Index: src/compiler/wasm-compiler.cc
|
| diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
|
| index 346fafab887ca43960dc8ec617cb3a457e9fb13c..3729c755d00c3720daf4902c57887ff97e8e6e11 100644
|
| --- a/src/compiler/wasm-compiler.cc
|
| +++ b/src/compiler/wasm-compiler.cc
|
| @@ -3094,9 +3094,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();
|
| }
|
|
|