Bug 145452

Summary: Non-speculative Branch should be fast in the FTL
Product: WebKit Reporter: Filip Pizlo <fpizlo>
Component: JavaScriptCoreAssignee: Filip Pizlo <fpizlo>
Status: RESOLVED FIXED    
Severity: Normal CC: barraclough, basile_clement, benjamin, ggaren, mark.lam, mhahnenb, mmirman, msaboff, nrotem, oliver, saam, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
the patch kling: review+

Description Filip Pizlo 2015-05-28 19:13:31 PDT
There is just no excuse for making C function calls for a branch, since the inline code is probably about the same size as a callsite.
Comment 1 Filip Pizlo 2015-05-28 19:19:04 PDT
Created attachment 253890 [details]
the patch
Comment 2 Andreas Kling 2015-05-29 08:43:12 PDT
Comment on attachment 253890 [details]
the patch

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

r=me

Very nice, I've definitely seen operationConvertJSValueToBoolean sitting around ~2% in various profiles, including Speedometer.

> LayoutTests/ChangeLog:11
> +        * js/regress/cse-new-array-buffer-expected.txt: Added.
> +        * js/regress/cse-new-array-buffer.html: Added.
> +        * js/regress/cse-new-array-expected.txt: Added.
> +        * js/regress/cse-new-array.html: Added.

These files don't belong in this patch.
Comment 3 Filip Pizlo 2015-05-29 11:10:13 PDT
(In reply to comment #2)
> Comment on attachment 253890 [details]
> the patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=253890&action=review
> 
> r=me
> 
> Very nice, I've definitely seen operationConvertJSValueToBoolean sitting
> around ~2% in various profiles, including Speedometer.
> 
> > LayoutTests/ChangeLog:11
> > +        * js/regress/cse-new-array-buffer-expected.txt: Added.
> > +        * js/regress/cse-new-array-buffer.html: Added.
> > +        * js/regress/cse-new-array-expected.txt: Added.
> > +        * js/regress/cse-new-array.html: Added.
> 
> These files don't belong in this patch.

That's true.  Do you really want me to land these separately?
Comment 4 Filip Pizlo 2015-05-29 13:27:12 PDT
Landed in http://trac.webkit.org/changeset/185002