Bug 129083 - DFG should have a way of carrying and preserving conditional branch weights
Summary: DFG should have a way of carrying and preserving conditional branch weights
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Filip Pizlo
URL:
Keywords:
Depends on: 129100
Blocks: 129082 129055
  Show dependency treegraph
 
Reported: 2014-02-19 21:41 PST by Filip Pizlo
Modified: 2014-02-20 05:11 PST (History)
13 users (show)

See Also:


Attachments
the patch (54.85 KB, patch)
2014-02-19 21:46 PST, Filip Pizlo
no flags Details | Formatted Diff | Diff
the patch (55.33 KB, patch)
2014-02-19 22:09 PST, Filip Pizlo
no flags Details | Formatted Diff | Diff
the patch (55.36 KB, patch)
2014-02-19 22:16 PST, Filip Pizlo
msaboff: 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 2014-02-19 21:41:00 PST
Patch forthcoming.
Comment 1 Filip Pizlo 2014-02-19 21:46:28 PST
Created attachment 224709 [details]
the patch
Comment 2 WebKit Commit Bot 2014-02-19 21:50:02 PST
Attachment 224709 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/dfg/DFGNode.h:82:  Should be indented on a separate line, with the colon or comma first on that line.  [whitespace/indent] [4]
ERROR: Source/JavaScriptCore/dfg/DFGNode.h:84:  Should be indented on a separate line, with the colon or comma first on that line.  [whitespace/indent] [4]
ERROR: Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:1468:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 3 in 14 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Filip Pizlo 2014-02-19 21:52:30 PST
(In reply to comment #2)
> Attachment 224709 [details] did not pass style-queue:
> 
> 
> ERROR: Source/JavaScriptCore/dfg/DFGNode.h:82:  Should be indented on a separate line, with the colon or comma first on that line.  [whitespace/indent] [4]
> ERROR: Source/JavaScriptCore/dfg/DFGNode.h:84:  Should be indented on a separate line, with the colon or comma first on that line.  [whitespace/indent] [4]
> ERROR: Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:1468:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
> Total errors found: 3 in 14 files
> 
> 
> If any of these errors are false positives, please file a bug against check-webkit-style.

Fixed.
Comment 4 Filip Pizlo 2014-02-19 22:09:19 PST
Created attachment 224713 [details]
the patch
Comment 5 WebKit Commit Bot 2014-02-19 22:12:27 PST
Attachment 224713 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/dfg/DFGNode.h:88:  Should be indented on a separate line, with the colon or comma first on that line.  [whitespace/indent] [4]
Total errors found: 1 in 14 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Filip Pizlo 2014-02-19 22:16:10 PST
Created attachment 224714 [details]
the patch
Comment 7 Michael Saboff 2014-02-19 22:37:58 PST
Comment on attachment 224714 [details]
the patch

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

r=me
Do all the other files have updated copyright (adding , 2014)?  If not, add them.

> Source/JavaScriptCore/dfg/DFGNode.cpp:44
> +    if (count == count)

Is this checking !NaN?  A comment would help.
Comment 8 Filip Pizlo 2014-02-19 22:39:13 PST
(In reply to comment #7)
> (From update of attachment 224714 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=224714&action=review
> 
> r=me
> Do all the other files have updated copyright (adding , 2014)?  If not, add them.

Will do!

> 
> > Source/JavaScriptCore/dfg/DFGNode.cpp:44
> > +    if (count == count)
> 
> Is this checking !NaN?  A comment would help.

Yup, I'll add a comment.

Thanks!
Comment 9 Filip Pizlo 2014-02-19 23:56:06 PST
Landed in http://trac.webkit.org/changeset/164417
Comment 10 Csaba Osztrogonác 2014-02-20 02:48:46 PST
(In reply to comment #9)
> Landed in http://trac.webkit.org/changeset/164417

It broke half of the jsc stress tests on 32 bit platforms:
- GTK 32 bit: http://build.webkit.org/builders/GTK%20Linux%2032-bit%20Release/builds/41379
- EFL ARMv7 Thumb2: http://build.webkit.sed.hu/builders/EFL%20ARMv7%20Linux%20Release%20%28Build%29/builds/2934
Comment 11 Csaba Osztrogonác 2014-02-20 04:08:25 PST
I checked, the bug is valid on Mac too.
Comment 12 Csaba Osztrogonác 2014-02-20 05:11:42 PST
new bug report about the regression on 32 bit platforms: https://bugs.webkit.org/show_bug.cgi?id=129100