| Index: test/mjsunit/allocation-site-info.js
|
| diff --git a/test/mjsunit/allocation-site-info.js b/test/mjsunit/allocation-site-info.js
|
| index 60d8d27006b044c2c06c88cbb0472ea415fd6e23..8325ab791c3a06c1190635223627989a292eba4c 100644
|
| --- a/test/mjsunit/allocation-site-info.js
|
| +++ b/test/mjsunit/allocation-site-info.js
|
| @@ -474,3 +474,19 @@ gc();
|
| assertKind(elements_kind.fast_double, obj[0]);
|
| assertKind(elements_kind.fast, obj[1][0]);
|
| })();
|
| +
|
| +// Test gathering allocation site feedback for generic ics.
|
| +(function() {
|
| + function make() { return new Array(); }
|
| + function foo(a, i) { a[0] = i; }
|
| +
|
| + var a = make();
|
| + assertKind(elements_kind.fast_smi_only, a);
|
| +
|
| + // Make the keyed store ic go generic.
|
| + foo("howdy", 1);
|
| + foo(a, 3.5);
|
| +
|
| + var b = make();
|
| + assertKind(elements_kind.fast_double, b);
|
| +})();
|
|
|