Changeset 90317 in webkit


Ignore:
Timestamp:
Jul 2, 2011 1:45:55 PM (13 years ago)
Author:
mjs@apple.com
Message:

2011-07-02 Maciej Stachowiak <mjs@apple.com>

Reviewed by Darin Adler.

SunSpider: The main function of math-cordic is dead code
https://bugs.webkit.org/show_bug.cgi?id=63863


Try to prevent math-cordic from being eliminated as dead code or
compiled down to a constant.

  • tests/sunspider-1.0/math-cordic.js: (cordicsincos): (cordic):
Location:
trunk/PerformanceTests/SunSpider
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/PerformanceTests/SunSpider/ChangeLog

    r90221 r90317  
     12011-07-02  Maciej Stachowiak  <mjs@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        SunSpider: The main function of math-cordic is dead code
     6        https://bugs.webkit.org/show_bug.cgi?id=63863
     7       
     8        Try to prevent math-cordic from being eliminated as dead code or
     9        compiled down to a constant.
     10
     11        * tests/sunspider-1.0/math-cordic.js:
     12        (cordicsincos):
     13        (cordic):
     14
    1152011-06-30  Maciej Stachowiak  <mjs@apple.com>
    216
  • trunk/PerformanceTests/SunSpider/tests/sunspider-1.0/math-cordic.js

    r52057 r90317  
    5050              ];
    5151
     52var Target = 28.027;
    5253
    53 function cordicsincos() {
     54function cordicsincos(Target) {
    5455    var X;
    5556    var Y;
     
    6162    Y = 0;                       /* AG_CONST * sin(0) */
    6263
    63     TargetAngle = FIXED(28.027);
     64    TargetAngle = FIXED(Target);
    6465    CurrAngle = 0;
    6566    for (Step = 0; Step < 12; Step++) {
     
    7778        }
    7879    }
     80
     81    return FLOAT(X) * FLOAT(Y);
    7982}
    8083
    8184///// End CORDIC
     85
     86var total = 0;
    8287
    8388function cordic( runs ) {
     
    8590
    8691  for ( var i = 0 ; i < runs ; i++ ) {
    87       cordicsincos();
     92      total += cordicsincos(Target);
    8893  }
    8994
Note: See TracChangeset for help on using the changeset viewer.