[ios blink] Restrict jitless flag to renderer process
We do not need to send the jitless flag to other processes. Change-Id: I7f443bbb2188f7bc6a0c2c2d381c2cdc09ddcf93 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6309668 Commit-Queue: Dave Tapuska <dtapuska@chromium.org> Reviewed-by: Rohit Rao <rohitrao@chromium.org> Cr-Commit-Position: refs/heads/main@{#1426388}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
4f9d4c47c8
commit
ad0a4e7c51
@ -479,7 +479,9 @@ void ShellContentBrowserClient::AppendExtraCommandLineSwitches(
|
||||
}
|
||||
|
||||
#if BUILDFLAG(IS_IOS)
|
||||
if (!IsJITEnabled()) {
|
||||
if (command_line->GetSwitchValueASCII(switches::kProcessType) ==
|
||||
switches::kRendererProcess &&
|
||||
!IsJITEnabled()) {
|
||||
command_line->AppendSwitchASCII(blink::switches::kJavaScriptFlags,
|
||||
"--jitless");
|
||||
}
|
||||
|
Reference in New Issue
Block a user