Bug 197106

Summary: Eagerly parse immediately invoked functions
Product: WebKit Reporter: Saam Barati <saam>
Component: JavaScriptCoreAssignee: Saam Barati <saam>
Status: RESOLVED WONTFIX    
Severity: Normal CC: benjamin, fpizlo, ggaren, gskachkov, guijemont, keith_miller, mark.lam, mjs, msaboff, rmorisset, ticaiolima, tzagallo, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 206706    
Bug Blocks:    
Attachments:
Description Flags
WIP
none
WIP
none
WIP
none
WIP
none
WIP none

Description Saam Barati 2019-04-19 10:36:25 PDT
We should develop a heuristic around doing this. This will help parsing time for such code because we won't spend the extra time syntax checking.
Comment 1 Radar WebKit Bug Importer 2019-04-19 10:41:33 PDT
<rdar://problem/50052023>
Comment 2 Saam Barati 2019-10-20 21:56:35 PDT
*** Bug 202674 has been marked as a duplicate of this bug. ***
Comment 3 Saam Barati 2020-01-23 12:09:20 PST
Gonna give this a go
Comment 4 Saam Barati 2020-01-25 12:00:41 PST
Created attachment 388785 [details]
WIP

it begins
Comment 5 Saam Barati 2020-01-27 18:11:14 PST
Created attachment 388954 [details]
WIP

it eagerly parsed something, but crashed in emitting debug info
Comment 6 Saam Barati 2020-01-27 18:40:29 PST
Created attachment 388957 [details]
WIP

no longer crashing in emitExpressionInfo
Comment 7 Saam Barati 2020-01-28 15:17:36 PST
Created attachment 389073 [details]
WIP

seems to work for functions.
Comment 8 Saam Barati 2020-01-29 11:17:05 PST
Seems neutral on major benchmarks. It is a speedup on microbenchmarks
Comment 9 Saam Barati 2020-01-29 17:58:22 PST
Created attachment 389208 [details]
WIP

Seems to work, but isn't really a speedup :(