Bug 206329

Summary: Try to simplify the template deduction used by callOperation in DFGSpeculativeJIT
Product: WebKit Reporter: Robin Morisset <rmorisset>
Component: JavaScriptCoreAssignee: Robin Morisset <rmorisset>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ews-watchlist, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Robin Morisset 2020-01-15 17:42:40 PST
Might slightly help compile times and be more readable to boot.
Comment 1 Robin Morisset 2020-01-15 17:46:22 PST
Created attachment 387879 [details]
Patch
Comment 2 Keith Miller 2020-01-15 17:51:19 PST
Comment on attachment 387879 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=387879&action=review

r=me with question.

> Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h:-954
> -    callOperation(OperationType operation, NoResultTag, Args... args)

Does anyone use NoResultTag now? If not, we should just get rid of it.
Comment 3 Robin Morisset 2020-01-15 17:52:35 PST
(In reply to Keith Miller from comment #2)
> Comment on attachment 387879 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=387879&action=review
> 
> r=me with question.
> 
> > Source/JavaScriptCore/dfg/DFGSpeculativeJIT.h:-954
> > -    callOperation(OperationType operation, NoResultTag, Args... args)
> 
> Does anyone use NoResultTag now? If not, we should just get rid of it.

It is still used by various other functions. It is not clear whether it can also be removed from those.
Comment 4 WebKit Commit Bot 2020-01-16 16:06:40 PST
Comment on attachment 387879 [details]
Patch

Clearing flags on attachment: 387879

Committed r254717: <https://trac.webkit.org/changeset/254717>
Comment 5 WebKit Commit Bot 2020-01-16 16:06:42 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2020-01-16 16:07:45 PST
<rdar://problem/58662089>
Comment 7 Saam Barati 2020-01-16 23:34:48 PST
Did it make compile times faster?
Comment 8 Robin Morisset 2020-01-17 09:47:54 PST
(In reply to Saam Barati from comment #7)
> Did it make compile times faster?

I was hoping that it would, but it apparently did not (or at least not significantly):
https://perf.safari.apple.com/v3/#/charts?since=1578678298555&paneList=((1117-4968-null-null-(5-2.5-500))-(1117-4990-null-null-(5-2.5-500)))