Bug 220204 - [JSC] bluenoise script takes too long time
Summary: [JSC] bluenoise script takes too long time
Status: RESOLVED DUPLICATE of bug 220254
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yusuke Suzuki
Keywords: InRadar
Depends on: 220254 220219
  Show dependency treegraph
Reported: 2020-12-30 15:54 PST by Yusuke Suzuki
Modified: 2022-02-12 19:47 PST (History)
5 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Yusuke Suzuki 2020-12-30 15:54:39 PST
This sounds like some optimization failure in DFG/FTL. We should fix.
Comment 1 Radar WebKit Bug Importer 2020-12-30 16:07:12 PST
Comment 2 Yusuke Suzuki 2021-01-01 01:43:31 PST
OK, this is not something simple issue.

The main reason why this takes some time is that, valueAt and setValueAt are not inlined.
Their callers and callees are creating objects frequently (return value / parameter).
If they are inlined, FTL compiler knows that these objects are not escaped so we can completely eliminate object allocations for them. However, if they are not inlined, we need to allocate them since it is escaped inside this function. This is the reason why they are slow.
And why they are not inlined is because they are complex enough and taking enough amount of bytecodes which prevents inlining.
Comment 3 Yusuke Suzuki 2021-01-01 04:14:12 PST
https://bugs.webkit.org/show_bug.cgi?id=220219 does not fix this. But it slightly removes unnecessary bytecodes that can be seen commonly.
Comment 4 Yusuke Suzuki 2021-01-04 13:49:42 PST
Let's fix this with https://bugs.webkit.org/show_bug.cgi?id=220254
Comment 5 Brent Fulgham 2022-02-12 19:47:30 PST

*** This bug has been marked as a duplicate of bug 220254 ***