Title: [184230] trunk/Source/_javascript_Core
Revision
184230
Author
[email protected]
Date
2015-05-12 18:52:52 -0700 (Tue, 12 May 2015)

Log Message

Fix the iteration count of arith-modulo-node-behaviors.js

* tests/stress/arith-modulo-node-behaviors.js:
No need for big numbers for the real testing.

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (184229 => 184230)


--- trunk/Source/_javascript_Core/ChangeLog	2015-05-13 01:47:15 UTC (rev 184229)
+++ trunk/Source/_javascript_Core/ChangeLog	2015-05-13 01:52:52 UTC (rev 184230)
@@ -1,3 +1,10 @@
+2015-05-12  Benjamin Poulain  <[email protected]>
+
+        Fix the iteration count of arith-modulo-node-behaviors.js
+
+        * tests/stress/arith-modulo-node-behaviors.js:
+        No need for big numbers for the real testing.
+
 2015-05-12  Mark Lam  <[email protected]>
 
         Windows: Cannot use HANDLE from GetCurrentThread() to get the CONTEXT of another thread.

Modified: trunk/Source/_javascript_Core/tests/stress/arith-modulo-node-behaviors.js (184229 => 184230)


--- trunk/Source/_javascript_Core/tests/stress/arith-modulo-node-behaviors.js	2015-05-13 01:47:15 UTC (rev 184229)
+++ trunk/Source/_javascript_Core/tests/stress/arith-modulo-node-behaviors.js	2015-05-13 01:52:52 UTC (rev 184230)
@@ -7,13 +7,13 @@
 noInline(moduloWithNegativeZeroDividend);
 
 // Warm up with integers. The test for NegZero should not be eliminated here.
-for (var i = 1; i < 1e7; ++i) {
+for (var i = 1; i < 1e4; ++i) {
     var result = moduloWithNegativeZeroDividend(i, 5, 5);
     if (result !== 0)
         throw "moduloWithNegativeZeroDividend(i, 5, 5), returned: " + result;
 }
 
-for (var i = 1; i < 1e7; ++i) {
+for (var i = 1; i < 1e4; ++i) {
     // Produce negative zero in the multiplication.
     var result = moduloWithNegativeZeroDividend(-i, 0, 2);
     if (!(result === 0 && (1/result) === -Infinity))
@@ -26,7 +26,7 @@
 }
 
 // Edge cases.
-for (var i = 1; i < 1e7; ++i) {
+for (var i = 1; i < 1e4; ++i) {
     var result = moduloWithNegativeZeroDividend(-i, 0, Infinity);
     if (!(result === 0 && (1/result) === -Infinity))
         throw "moduloWithNegativeZeroDividend(-i, 0, Infinity) failed, returned: " + result;
@@ -49,20 +49,20 @@
 }
 noInline(moduloWithUnusedNegativeZeroDividend);
 
-for (var i = 1; i < 1e7; ++i) {
+for (var i = 1; i < 1e4; ++i) {
     var result = moduloWithUnusedNegativeZeroDividend(i, 5, 5);
     if (result !== 0)
         throw "moduloWithUnusedNegativeZeroDividend(i, 5, 5), returned: " + result;
 }
 
 // Produce negative zero in the multiplication.
-for (var i = 1; i < 1e7; ++i) {
+for (var i = 1; i < 1e4; ++i) {
     var result = moduloWithUnusedNegativeZeroDividend(-i, 0, 2);
     if (!(result === 0 && (1/result) === Infinity))
         throw "moduloWithUnusedNegativeZeroDividend(-i, 0, 2) failed, returned: " + result;
 }
 
-for (var i = 1; i < 1e7; ++i) {
+for (var i = 1; i < 1e4; ++i) {
     var result = moduloWithUnusedNegativeZeroDividend(-i, 0, Infinity);
     if (!(result === 0 && (1/result) === Infinity))
         throw "moduloWithUnusedNegativeZeroDividend(-i, 0, Infinity) failed, returned: " + result;
@@ -86,7 +86,7 @@
 noInline(moduloWithNegativeZeroDivisor);
 
 // Warm up with integers.
-for (var i = 1; i < 1e7; ++i) {
+for (var i = 1; i < 1e4; ++i) {
     var result = moduloWithNegativeZeroDivisor(i, 2, i);
     if (result !== i)
         throw "moduloWithNegativeZeroDividend(i, 2, i), returned: " + result;
@@ -97,7 +97,7 @@
 }
 
 // Produce negative zero in the multiplication.
-for (var i = 1; i < 1e7; ++i) {
+for (var i = 1; i < 1e4; ++i) {
     var result = moduloWithNegativeZeroDivisor(-i, 0, 2);
     if (result === result)
         throw "moduloWithNegativeZeroDivisor(-i, 0, 2) failed, returned: " + result;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to