Bug 170459

Summary: Don't need to Air::reportUsedRegisters for wasm at -O1
Product: WebKit Reporter: Filip Pizlo <fpizlo>
Component: JavaScriptCoreAssignee: Filip Pizlo <fpizlo>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, buildbot, cdumez, cmarcelo, dbates, keith_miller, mark.lam, msaboff, saam
Priority: P2    
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
the patch saam: review+

Description Filip Pizlo 2017-04-04 11:08:17 PDT
Patch forthcoming.
Comment 1 Filip Pizlo 2017-04-04 11:19:43 PDT
Created attachment 306181 [details]
the patch
Comment 2 Saam Barati 2017-04-04 11:39:33 PDT
Comment on attachment 306181 [details]
the patch

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

r=me

> Source/JavaScriptCore/b3/B3StackmapGenerationParams.h:63
> +    // NOTE: This will report bogus information if you did proc.setNeedsUsedRegisters(false).

Can we make it crash, at least in debug builds?

> Source/JavaScriptCore/b3/air/AirLiveness.h:42
> +        SuperSamplerScope samplingScope(false);
> +        WTF::Liveness<Adapter>::compute();

Is the reason for this change just so you can time it?
Comment 3 Filip Pizlo 2017-04-04 11:49:05 PDT
(In reply to Saam Barati from comment #2)
> Comment on attachment 306181 [details]
> the patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=306181&action=review
> 
> r=me
> 
> > Source/JavaScriptCore/b3/B3StackmapGenerationParams.h:63
> > +    // NOTE: This will report bogus information if you did proc.setNeedsUsedRegisters(false).
> 
> Can we make it crash, at least in debug builds?

I'll add an assertion.

> 
> > Source/JavaScriptCore/b3/air/AirLiveness.h:42
> > +        SuperSamplerScope samplingScope(false);
> > +        WTF::Liveness<Adapter>::compute();
> 
> Is the reason for this change just so you can time it?

Yeah, it was just for timing.

There was a prior patch where I had done this same hack and then lost it.  It's super useful.
Comment 4 Filip Pizlo 2017-04-04 12:09:29 PDT
Landed in https://trac.webkit.org/changeset/214887/webkit