Index: test/mjsunit/array-constructor-feedback.js |
diff --git a/test/mjsunit/array-constructor-feedback.js b/test/mjsunit/array-constructor-feedback.js |
index 45ea0d53e107077bda59080854d9e375cd6ad7b0..4cbd7e7e60a4701d62e7634832b09790aa0d4680 100644 |
--- a/test/mjsunit/array-constructor-feedback.js |
+++ b/test/mjsunit/array-constructor-feedback.js |
@@ -119,10 +119,13 @@ function assertKind(expected, obj, name_opt) { |
return new Array(one, two, three); |
} |
- barn(1, 2, 3); |
- barn(1, 2, 3); |
+ a = barn(1, 2, 3); |
+ a[1] = "a string"; |
+ a = barn(1, 2, 3); |
+ assertKind(elements_kind.fast, a); |
%OptimizeFunctionOnNextCall(barn); |
- barn(1, 2, 3); |
+ a = barn(1, 2, 3); |
+ assertKind(elements_kind.fast, a); |
assertOptimized(barn); |
a = barn(1, "oops", 3); |
assertOptimized(barn); |