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

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

Issue 1179393008: [turbofan] Enable concurrent (re)compilation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix debug name computation. 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
« no previous file with comments | « src/compiler/pipeline-statistics.h ('k') | src/optimizing-compile-dispatcher.cc » ('j') | 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 60fbfbb62c01159818fe57bb31d99e926922abfc..cee3d3ab18c41bbaf7528e50a8555bcbd047305e 100644
--- a/src/compiler/wasm-compiler.cc
+++ b/src/compiler/wasm-compiler.cc
@@ -2968,15 +2968,12 @@ Handle<Code> CompileWasmFunction(wasm::ErrorThrower& thrower, Isolate* isolate,
}
}
CompilationInfo info(func_name, isolate, jsgraph->graph()->zone(), flags);
- compiler::ZonePool::Scope pipeline_zone_scope(&zone_pool);
- Pipeline pipeline(&info);
- pipeline.InitializeWasmCompilation(pipeline_zone_scope.zone(), &zone_pool,
- jsgraph->graph(), source_positions);
- Handle<Code> code;
- if (pipeline.ExecuteWasmCompilation(descriptor)) {
- code = pipeline.FinalizeWasmCompilation(descriptor);
- } else {
- code = Handle<Code>::null();
+ base::SmartPointer<OptimizedCompileJob> job(Pipeline::NewWasmCompilationJob(
+ &info, jsgraph->graph(), descriptor, source_positions));
+ Handle<Code> code = Handle<Code>::null();
+ if (job->OptimizeGraph() == OptimizedCompileJob::SUCCEEDED &&
+ job->GenerateCode() == OptimizedCompileJob::SUCCEEDED) {
+ code = info.code();
}
buffer.Dispose();
« no previous file with comments | « src/compiler/pipeline-statistics.h ('k') | src/optimizing-compile-dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698