Commit 631dd28d authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[wasm] Disable node splitting for asm.js code.

R=herhut@chromium.org
BUG=chromium:903197

Change-Id: Ibc9225afe4237f221ae169de3ce6b3abb45e2708
Reviewed-on: https://chromium-review.googlesource.com/c/1328925Reviewed-by: 's avatarStephan Herhut <herhut@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57390}
parent be9cd5ed
......@@ -1062,6 +1062,9 @@ PipelineWasmCompilationJob::ExecuteJobImpl() {
PipelineData* data = &data_;
data->BeginPhaseKind("wasm optimization");
const bool is_asm_js = native_module_->module()->origin == wasm::kAsmJsOrigin;
if (FLAG_turbo_splitting && !is_asm_js) {
data->info()->MarkAsSplittingEnabled();
}
if (FLAG_wasm_opt || is_asm_js) {
PipelineRunScope scope(data, "wasm full optimization");
GraphReducer graph_reducer(scope.zone(), data->graph(),
......
......@@ -79,9 +79,6 @@ void OptimizedCompilationInfo::ConfigureFlags() {
break;
case Code::WASM_FUNCTION:
SetFlag(kSwitchJumpTableEnabled);
if (FLAG_turbo_splitting) {
MarkAsSplittingEnabled();
}
break;
default:
break;
......
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