Bug 170485 - B3::fixSSA() needs a tune-up
Summary: B3::fixSSA() needs a tune-up
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Filip Pizlo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-04 16:35 PDT by Filip Pizlo
Modified: 2017-04-04 17:25 PDT (History)
9 users (show)

See Also:


Attachments
the patch (32.44 KB, patch)
2017-04-04 16:40 PDT, Filip Pizlo
saam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Pizlo 2017-04-04 16:35:40 PDT
Patch forthcoming.
Comment 1 Filip Pizlo 2017-04-04 16:40:51 PDT
Created attachment 306230 [details]
the patch
Comment 2 Build Bot 2017-04-04 16:42:50 PDT
Attachment 306230 [details] did not pass style-queue:


ERROR: Source/WTF/wtf/IndexSparseSet.h:204:  This { should be at the end of the previous line  [whitespace/braces] [4]
Total errors found: 1 in 10 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Saam Barati 2017-04-04 17:14:26 PDT
Comment on attachment 306230 [details]
the patch

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

r=me

> Source/JavaScriptCore/ChangeLog:10
> +        changes to make this phase run faster. This is a ~7% wasm -O1 compile time progression.

awesome

> Source/WTF/wtf/IndexSparseSet.h:47
> +    typedef T EntryType;

style nit: can be "using".

> Source/WTF/wtf/IndexSparseSet.h:57
> +    static T create(T entry)
> +    {
> +        return entry;
> +    }
> +    
> +    static T key(T entry)
> +    {
> +        return entry;
> +    }

maybe these should take "const T& entry"?

> Source/WTF/wtf/IndexSparseSet.h:62
> +    typedef KeyValuePair<KeyType, ValueType> EntryType;

ditto on "using".
Comment 4 Filip Pizlo 2017-04-04 17:22:36 PDT
(In reply to Saam Barati from comment #3)
> Comment on attachment 306230 [details]
> the patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=306230&action=review
> 
> r=me
> 
> > Source/JavaScriptCore/ChangeLog:10
> > +        changes to make this phase run faster. This is a ~7% wasm -O1 compile time progression.
> 
> awesome
> 
> > Source/WTF/wtf/IndexSparseSet.h:47
> > +    typedef T EntryType;
> 
> style nit: can be "using".
> 
> > Source/WTF/wtf/IndexSparseSet.h:57
> > +    static T create(T entry)
> > +    {
> > +        return entry;
> > +    }
> > +    
> > +    static T key(T entry)
> > +    {
> > +        return entry;
> > +    }
> 
> maybe these should take "const T& entry"?

I'll clean this up.

> 
> > Source/WTF/wtf/IndexSparseSet.h:62
> > +    typedef KeyValuePair<KeyType, ValueType> EntryType;
> 
> ditto on "using".

I still like typedef in those cases where it's legal.  Do we have to switch to using?
Comment 5 Filip Pizlo 2017-04-04 17:25:55 PDT
Landed in https://trac.webkit.org/changeset/214917/webkit