Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Unified Diff: src/compiler/wasm-compiler.cc

Issue 1904723002: [wasm] Introduce ExecuteWasmCompilation and FinalizeWasmCompilation in pipeline.cc (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@parallel-compilation
Patch Set: rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/compiler/pipeline.cc ('K') | « src/compiler/pipeline.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« src/compiler/pipeline.cc ('K') | « src/compiler/pipeline.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698