Make fast/js/script-tests/dfg-inline-function-dot-caller not timeout.
authorfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Feb 2012 23:50:39 +0000 (23:50 +0000)
committerfpizlo@apple.com <fpizlo@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Feb 2012 23:50:39 +0000 (23:50 +0000)
Rubber stamped by Oliver Hunt.

Verified that the test still causes inlining to happen and still passes but
otherwise reduced the loops to take an order of magnitude fewer iterations.

* fast/js/script-tests/dfg-inline-function-dot-caller.js:
(object.nonInlineable.nonInlineable.if):
(object.nonInlineable):
(makeInlinableCall):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108687 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/js/script-tests/dfg-inline-function-dot-caller.js

index c73ea4d..dac8299 100644 (file)
@@ -1,3 +1,17 @@
+2012-02-23  Filip Pizlo  <fpizlo@apple.com>
+
+        Make fast/js/script-tests/dfg-inline-function-dot-caller not timeout.
+
+        Rubber stamped by Oliver Hunt.
+        
+        Verified that the test still causes inlining to happen and still passes but
+        otherwise reduced the loops to take an order of magnitude fewer iterations.
+
+        * fast/js/script-tests/dfg-inline-function-dot-caller.js:
+        (object.nonInlineable.nonInlineable.if):
+        (object.nonInlineable):
+        (makeInlinableCall):
+
 2012-02-23  Adrienne Walker  <enne@google.com>
 
         [chromium] Unreviewed gardening. Mark two fast/files/ tests as non-flaky.
index 71a3f9a..427a7a6 100644 (file)
@@ -12,7 +12,7 @@ function throwError() {
 var object = {
    nonInlineable : function nonInlineable() {
        if (0) return [arguments, function(){}];
-       if (++callCount == 9999999) {
+       if (++callCount == 999999) {
            var f = nonInlineable;
            while (f) {
                resultArray.push(f.name);
@@ -25,7 +25,7 @@ var object = {
    }
 }
 function makeInlinableCall(o) {
-   for (var i = 0; i < 10000; i++)
+   for (var i = 0; i < 1000; i++)
        o.inlineable();
 }