Revision: 2718
Author: [email protected]
Date: Wed Aug 19 04:34:06 2009
Log: Speed up mjsunit/div-mod.js test, to avoid timeouts.
Review URL: http://codereview.chromium.org/171108
http://code.google.com/p/v8/source/detail?r=2718

Modified:
  /branches/bleeding_edge/test/mjsunit/div-mod.js

=======================================
--- /branches/bleeding_edge/test/mjsunit/div-mod.js     Fri Jul  3 05:44:31 2009
+++ /branches/bleeding_edge/test/mjsunit/div-mod.js     Wed Aug 19 04:34:06 2009
@@ -48,7 +48,7 @@
    divmod(div_func, mod_func, 0, divisor);
    divmod(div_func, mod_func, 1 / 0, divisor);
    // Floating point number test.
-  for (exp = -1024; exp <= 1024; exp += 4) {
+  for (exp = -1024; exp <= 1024; exp += 8) {
      divmod(div_func, mod_func, Math.pow(2, exp), divisor);
      divmod(div_func, mod_func, 0.9999999 * Math.pow(2, exp), divisor);
      divmod(div_func, mod_func, 1.0000001 * Math.pow(2, exp), divisor);
@@ -76,13 +76,7 @@
    8,
    9,
    10,
-  // These ones in the middle don't add much apart from slowness to the  
test.
    0x1000000,
-  0x2000000,
-  0x4000000,
-  0x8000000,
-  0x10000000,
-  0x20000000,
    0x40000000,
    12,
    60,
@@ -92,4 +86,3 @@
  for (var i = 0; i < divisors.length; i++) {
    run_tests_for(divisors[i]);
  }
-

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to