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

Unified Diff: test/cctest/wasm/wasm-run-utils.h

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 | « test/cctest/compiler/test-run-bytecode-graph-builder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 53549904012911fa85c0bcfb0e23b3f29dc03714..e8a54ff90a97ffb74eb11da1a91a4809c20d1e58 100644
--- a/test/cctest/wasm/wasm-run-utils.h
+++ b/test/cctest/wasm/wasm-run-utils.h
@@ -485,18 +485,14 @@ class WasmFunctionCompiler : public HandleAndZoneScope,
}
CompilationInfo info(debug_name_, this->isolate(), this->zone(),
Code::ComputeFlags(Code::WASM_FUNCTION));
- compiler::ZonePool zone_pool(this->isolate()->allocator());
- compiler::ZonePool::Scope pipeline_zone_scope(&zone_pool);
- Pipeline pipeline(&info);
- pipeline.InitializeWasmCompilation(this->zone(), &zone_pool, this->graph(),
- &source_position_table_);
- Handle<Code> code;
- if (pipeline.ExecuteWasmCompilation(desc)) {
- code = pipeline.FinalizeWasmCompilation(desc);
- } else {
- code = Handle<Code>::null();
+ v8::base::SmartPointer<OptimizedCompileJob> job(
+ Pipeline::NewWasmCompilationJob(&info, graph(), desc,
+ &source_position_table_));
+ Handle<Code> code = Handle<Code>::null();
+ if (job->OptimizeGraph() == OptimizedCompileJob::SUCCEEDED &&
+ job->GenerateCode() == OptimizedCompileJob::SUCCEEDED) {
+ code = info.code();
}
- pipeline_zone_scope.Destroy();
#ifdef ENABLE_DISASSEMBLER
if (!code.is_null() && FLAG_print_opt_code) {
OFStream os(stdout);
« no previous file with comments | « test/cctest/compiler/test-run-bytecode-graph-builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698