Run array-length less times to make the builder green.
We still get this method optimized even without --always-opt flag. Review URL: http://codereview.chromium.org/6719029 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7381 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
1ae2ea08b9
commit
e0c7d3cf08
@ -36,7 +36,7 @@ function Test(a0, a2, a5) {
|
||||
var a0 = [];
|
||||
var a2 = [1,2];
|
||||
var a5 = [1,2,3,4,5];
|
||||
for (var i = 0; i < 10000000; i++) Test(a0, a2, a5);
|
||||
for (var i = 0; i < 100000; i++) Test(a0, a2, a5);
|
||||
assertEquals("undefined", typeof(ArrayLength(0)));
|
||||
for (var i = 0; i < 10000000; i++) Test(a0, a2, a5);
|
||||
for (var i = 0; i < 100000; i++) Test(a0, a2, a5);
|
||||
assertEquals(4, ArrayLength("hest"));
|
||||
|
Loading…
Reference in New Issue
Block a user