| Index: test/mjsunit/elements-kind.js
|
| diff --git a/test/mjsunit/elements-kind.js b/test/mjsunit/elements-kind.js
|
| index c0bc333a6b92c3faff5f8e04f9fa2567b417bca7..bc10de6184bbd764b54b9065df1fb7da729a0031 100644
|
| --- a/test/mjsunit/elements-kind.js
|
| +++ b/test/mjsunit/elements-kind.js
|
| @@ -108,13 +108,11 @@ me.dance = 0xD15C0;
|
| me.drink = 0xC0C0A;
|
| assertKind(elements_kind.fast, me);
|
|
|
| -if (support_smi_only_arrays) {
|
| - var too = [1,2,3];
|
| - assertKind(elements_kind.fast_smi_only, too);
|
| - too.dance = 0xD15C0;
|
| - too.drink = 0xC0C0A;
|
| - assertKind(elements_kind.fast_smi_only, too);
|
| -}
|
| +var too = [1,2,3];
|
| +assertKind(elements_kind.fast_smi_only, too);
|
| +too.dance = 0xD15C0;
|
| +too.drink = 0xC0C0A;
|
| +assertKind(elements_kind.fast_smi_only, too);
|
|
|
| // Make sure the element kind transitions from smionly when a non-smi is stored.
|
| var you = new Array();
|
| @@ -234,10 +232,8 @@ if (support_smi_only_arrays) {
|
| function get(foo) { return foo; } // Used to generate dynamic values.
|
|
|
| function crankshaft_test() {
|
| - if (support_smi_only_arrays) {
|
| - var a1 = [get(1), get(2), get(3)];
|
| - assertKind(elements_kind.fast_smi_only, a1);
|
| - }
|
| + var a1 = [get(1), get(2), get(3)];
|
| + assertKind(elements_kind.fast_smi_only, a1);
|
| var a2 = new Array(get(1), get(2), get(3));
|
| assertKind(elements_kind.fast_smi_only, a2);
|
| var b = [get(1), get(2), get("three")];
|
| @@ -245,6 +241,8 @@ function crankshaft_test() {
|
| var c = [get(1), get(2), get(3.5)];
|
| if (support_smi_only_arrays) {
|
| assertKind(elements_kind.fast_double, c);
|
| + } else {
|
| + assertKind(elements_kind.fast, c);
|
| }
|
| }
|
| for (var i = 0; i < 3; i++) {
|
|
|