Index: test/mjsunit/array-constructor-feedback.js |
=================================================================== |
--- test/mjsunit/array-constructor-feedback.js (revision 19345) |
+++ test/mjsunit/array-constructor-feedback.js (working copy) |
@@ -89,6 +89,7 @@ |
return new t(len); |
} |
+ bar(Array, 10); // Skip premonomorphic state. |
a = bar(Array, 10); |
a[0] = 3.5; |
b = bar(Array, 1); |
@@ -108,6 +109,8 @@ |
function bar0(t) { |
return new t(); |
} |
+ |
+ bar0(Array); // Skip premonomorphic state. |
a = bar0(Array); |
a[0] = 3.5; |
b = bar0(Array); |
@@ -139,6 +142,8 @@ |
function bar(len) { |
return new Array(len); |
} |
+ |
+ bar(10); // Skip premonomorphic state. |
a = bar(10); |
a[0] = "a string"; |
a = bar(10); |
@@ -190,6 +195,8 @@ |
function bar() { |
return new Array(); |
} |
+ |
+ bar(); // Skip premonomorphic state. |
a = bar(); |
bar(); |
%OptimizeFunctionOnNextCall(bar); |