From: titzer Date: Mon, 2 Feb 2015 11:51:55 +0000 (-0800) Subject: Speed up tests for OSR of for-in and for-of loops. X-Git-Tag: upstream/4.7.83~4662 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79cad15cb0af3ff0ead85fc615f56b96047996f7;p=platform%2Fupstream%2Fv8.git Speed up tests for OSR of for-in and for-of loops. R=marja@chromium.org BUG= Review URL: https://codereview.chromium.org/889293003 Cr-Commit-Position: refs/heads/master@{#26378} --- diff --git a/test/mjsunit/compiler/osr-forin.js b/test/mjsunit/compiler/osr-forin.js index c02c535f8..8d1678224 100644 --- a/test/mjsunit/compiler/osr-forin.js +++ b/test/mjsunit/compiler/osr-forin.js @@ -16,7 +16,7 @@ function f(a) { return sum; } -var a = new Array(); +var a = new Array(10000); for (var i = 0; i < 10000; i++) { a[i] = (i * 999) % 77; } diff --git a/test/mjsunit/compiler/osr-forof.js b/test/mjsunit/compiler/osr-forof.js index c17387699..36bff09c5 100644 --- a/test/mjsunit/compiler/osr-forof.js +++ b/test/mjsunit/compiler/osr-forof.js @@ -15,7 +15,7 @@ function f(a) { return sum; } -var a = new Array(); +var a = new Array(10000); for (var i = 0; i < 10000; i++) { a[i] = (i * 999) % 77; }