From: jkummerow@chromium.org Date: Mon, 24 Sep 2012 10:08:01 +0000 (+0000) Subject: Speed up test/mjsunit/compiler/regress-or X-Git-Tag: upstream/4.7.83~15951 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e1470fca06106cd70c278a0ae1378d6c83ec224;p=platform%2Fupstream%2Fv8.git Speed up test/mjsunit/compiler/regress-or Review URL: https://codereview.chromium.org/10969063 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12593 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/test/mjsunit/compiler/regress-or.js b/test/mjsunit/compiler/regress-or.js index 89f7802..939f2c3 100644 --- a/test/mjsunit/compiler/regress-or.js +++ b/test/mjsunit/compiler/regress-or.js @@ -25,6 +25,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// Flags: --allow-natives-syntax + // Test deoptimization inside short-circuited expressions. function f1(x) { var c = "fail"; @@ -36,7 +38,8 @@ function f1(x) { function g1() { try { return 1; } finally {} } -for (var i=0; i<10000000; i++) f1(42); +for (var i = 0; i < 5; i++) f1(42); +%OptimizeFunctionOnNextCall(f1); assertEquals(-1, f1(0)); assertEquals(-43, f1(42)); @@ -52,6 +55,7 @@ function f2(x) { function g2() { try { return 0; } finally {} } -for (var i=0; i<10000000; i++) f2(42); +for (var i = 0; i < 5; i++) f2(42); +%OptimizeFunctionOnNextCall(f2); assertEquals(-1, f2("")); diff --git a/test/mjsunit/mjsunit.status b/test/mjsunit/mjsunit.status index d1c5ebc..9ce6277 100644 --- a/test/mjsunit/mjsunit.status +++ b/test/mjsunit/mjsunit.status @@ -106,7 +106,6 @@ compiler/regress-funcaller: SKIP compiler/regress-rep-change: SKIP compiler/regress-arguments: SKIP compiler/regress-funarguments: SKIP -compiler/regress-or: SKIP compiler/regress-3249650: SKIP compiler/simple-deopt: SKIP regress/regress-490: SKIP @@ -163,7 +162,6 @@ compiler/regress-funcaller: SKIP compiler/regress-rep-change: SKIP compiler/regress-arguments: SKIP compiler/regress-funarguments: SKIP -compiler/regress-or: SKIP compiler/regress-3249650: SKIP compiler/simple-deopt: SKIP regress/regress-490: SKIP