Chromium Code Reviews| Index: test/mjsunit/allocation-site-info.js |
| diff --git a/test/mjsunit/allocation-site-info.js b/test/mjsunit/allocation-site-info.js |
| index dd22f573f0715ff5053b215d2e6825dad90fcded..3ed1c16a8cc0ec503bc03a8a8824544d621ca366 100644 |
| --- a/test/mjsunit/allocation-site-info.js |
| +++ b/test/mjsunit/allocation-site-info.js |
| @@ -148,8 +148,12 @@ if (support_smi_only_arrays) { |
| assertKind(elements_kind.fast_double, obj); |
| obj = fastliteralcase([3, 6, 2], 1.5); |
| assertKind(elements_kind.fast_double, obj); |
| + |
| + // Note: thanks to pessimistic transition store stubs, we'll attempt |
| + // to transition to the most general elements kind seen at a particular store |
|
Benedikt Meurer
2013/10/15 12:06:05
Nit: 80-char limit.
mvstanton
2013/10/15 12:41:53
Done.
|
| + // site. So, the elements kind will be double. |
| obj = fastliteralcase([2, 6, 3], 2); |
| - assertKind(elements_kind.fast_smi_only, obj); |
| + assertKind(elements_kind.fast_double, obj); |
| } |
| // Verify that we will not pretransition the double->fast path. |