Commit 2326005f authored by Andreas Haas's avatar Andreas Haas Committed by Commit Bot

[wasm] Delete dead parameter in CompileJSToWasmWrapperJob

R=thibaudm@chromium.org

Bug: v8:11074
Change-Id: I1dbe03794b1365c965ec48731ed4bd233e42bbb7
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2595440Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Commit-Queue: Andreas Haas <ahaas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#71946}
parent b721e157
......@@ -3331,8 +3331,7 @@ using JSToWasmWrapperUnitMap =
class CompileJSToWasmWrapperJob final : public JobTask {
public:
CompileJSToWasmWrapperJob(JSToWasmWrapperQueue* queue,
JSToWasmWrapperUnitMap* compilation_units,
size_t max_concurrency)
JSToWasmWrapperUnitMap* compilation_units)
: queue_(queue),
compilation_units_(compilation_units),
outstanding_units_(queue->size()) {}
......@@ -3386,12 +3385,8 @@ void CompileJsToWasmWrappers(Isolate* isolate, const WasmModule* module,
}
}
// Execute wrapper compilation in the background.
int flag_value = FLAG_wasm_num_compilation_tasks;
size_t max_concurrency = flag_value < 1 ? std::numeric_limits<size_t>::max()
: static_cast<size_t>(flag_value);
auto job = std::make_unique<CompileJSToWasmWrapperJob>(
&queue, &compilation_units, max_concurrency);
auto job =
std::make_unique<CompileJSToWasmWrapperJob>(&queue, &compilation_units);
auto job_handle = V8::GetCurrentPlatform()->PostJob(
TaskPriority::kUserVisible, std::move(job));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment