Index: test/mjsunit/compiler/math-floor-global.js |
diff --git a/test/mjsunit/compiler/math-floor-global.js b/test/mjsunit/compiler/math-floor-global.js |
index 9ec183fab1b0a416d7a9257bdcefeaeac2419ef7..3b9d1254537dce8d3dfb8a09ca0deacc278d57ff 100644 |
--- a/test/mjsunit/compiler/math-floor-global.js |
+++ b/test/mjsunit/compiler/math-floor-global.js |
@@ -25,7 +25,7 @@ |
// (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: --max-new-space-size=256 --allow-natives-syntax |
+// Flags: --max-new-space-size=128 --allow-natives-syntax |
// Test inlining of Math.floor when assigned to a global. |
var flo = Math.floor; |
@@ -140,8 +140,9 @@ function test() { |
// Test in a loop to cover the custom IC and GC-related issues. |
-for (var i = 0; i < 50; i++) { |
+for (var i = 0; i < 10; i++) { |
test(); |
+ new Array(i * 10000); |
} |
@@ -158,4 +159,4 @@ assertEquals(-0, floorsum(1, -0)); |
%OptimizeFunctionOnNextCall(floorsum); |
// The optimized function will deopt. Run it with enough iterations to try |
// to optimize via OSR (triggering the bug). |
-assertEquals(-0, floorsum(100000, -0)); |
+assertEquals(-0, floorsum(50000, -0)); |