Index: test/mjsunit/array-constructor-feedback.js |
diff --git a/test/mjsunit/array-constructor-feedback.js b/test/mjsunit/array-constructor-feedback.js |
index 7cd421bd1b86c16f7f3e096dc7be639f7d262022..2c0d9c15fa6a1965a4ec55c81e2fd0ebd1ea455c 100644 |
--- a/test/mjsunit/array-constructor-feedback.js |
+++ b/test/mjsunit/array-constructor-feedback.js |
@@ -89,6 +89,7 @@ if (support_smi_only_arrays) { |
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 @@ if (support_smi_only_arrays) { |
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 @@ if (support_smi_only_arrays) { |
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 @@ if (support_smi_only_arrays) { |
function bar() { |
return new Array(); |
} |
+ |
+ bar(); // Skip premonomorphic state. |
a = bar(); |
bar(); |
%OptimizeFunctionOnNextCall(bar); |