[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/1328925
Reviewed-by: Stephan Herhut <herhut@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57390}
This commit is contained in:
Michael Starzinger 2018-11-09 13:08:06 +01:00 committed by Commit Bot
parent be9cd5edc5
commit 631dd28db8
2 changed files with 3 additions and 3 deletions

View File

@ -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(),

View File

@ -79,9 +79,6 @@ void OptimizedCompilationInfo::ConfigureFlags() {
break;
case Code::WASM_FUNCTION:
SetFlag(kSwitchJumpTableEnabled);
if (FLAG_turbo_splitting) {
MarkAsSplittingEnabled();
}
break;
default:
break;