Reviewers: Rico, Description: Speedup unit test to avoid timeout on slow ARM simulator.
This test depends on OSR being triggered. That's why I can't use %OptimizeFunctionOnNextCall. Please review this at http://codereview.chromium.org/8555004/ SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M test/mjsunit/compiler/regress-deopt-call-as-function.js Index: test/mjsunit/compiler/regress-deopt-call-as-function.js =================================================================== --- test/mjsunit/compiler/regress-deopt-call-as-function.js (revision 9983) +++ test/mjsunit/compiler/regress-deopt-call-as-function.js (working copy) @@ -32,7 +32,7 @@ function test_context() { function foo(x) { return 42; } var s, t; - for (var i = 0x7ff00000; i < 0x80000000; i++) { + for (var i = 0x7fff0000; i < 0x80000000; i++) { bar(t = foo(i) ? bar(42 + i - i) : bar(0), s = i + t); } return s; @@ -43,7 +43,7 @@ function value_context() { function foo(x) { return 42; } var s, t; - for (var i = 0x7ff00000; i < 0x80000000; i++) { + for (var i = 0x7fff0000; i < 0x80000000; i++) { bar(t = foo(i), s = i + t); } return s; @@ -54,7 +54,7 @@ function effect_context() { function foo(x) { return 42; } var s, t; - for (var i = 0x7ff00000; i < 0x80000000; i++) { + for (var i = 0x7fff0000; i < 0x80000000; i++) { bar(foo(i), s = i + 42); } return s; -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
