Changeset 90317 in webkit
- Timestamp:
- Jul 2, 2011 1:45:55 PM (13 years ago)
- Location:
- trunk/PerformanceTests/SunSpider
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/PerformanceTests/SunSpider/ChangeLog
r90221 r90317 1 2011-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 1 15 2011-06-30 Maciej Stachowiak <mjs@apple.com> 2 16 -
trunk/PerformanceTests/SunSpider/tests/sunspider-1.0/math-cordic.js
r52057 r90317 50 50 ]; 51 51 52 var Target = 28.027; 52 53 53 function cordicsincos( ) {54 function cordicsincos(Target) { 54 55 var X; 55 56 var Y; … … 61 62 Y = 0; /* AG_CONST * sin(0) */ 62 63 63 TargetAngle = FIXED( 28.027);64 TargetAngle = FIXED(Target); 64 65 CurrAngle = 0; 65 66 for (Step = 0; Step < 12; Step++) { … … 77 78 } 78 79 } 80 81 return FLOAT(X) * FLOAT(Y); 79 82 } 80 83 81 84 ///// End CORDIC 85 86 var total = 0; 82 87 83 88 function cordic( runs ) { … … 85 90 86 91 for ( var i = 0 ; i < runs ; i++ ) { 87 cordicsincos();92 total += cordicsincos(Target); 88 93 } 89 94
Note: See TracChangeset
for help on using the changeset viewer.