From 439e4600df4d1b277f18931e6490e5f0c2e9c737 Mon Sep 17 00:00:00 2001 From: "jkummerow@chromium.org" Date: Wed, 19 Oct 2011 12:44:50 +0000 Subject: [PATCH] Adjust elements-kind.js expectation when --smi-only-arrays is off TEST=mjsunit/elements-kind passes both with and without --smi-only-arrays flag Review URL: http://codereview.chromium.org/8356002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9705 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- test/mjsunit/elements-kind.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/mjsunit/elements-kind.js b/test/mjsunit/elements-kind.js index ca6daea061..cfd47c7781 100644 --- a/test/mjsunit/elements-kind.js +++ b/test/mjsunit/elements-kind.js @@ -237,7 +237,11 @@ function crankshaft_test() { var b = [get(1), get(2), get("three")]; assertKind(elements_kind.fast, b); var c = [get(1), get(2), get(3.5)]; - assertKind(elements_kind.fast_double, c); + if (support_smi_only_arrays) { + assertKind(elements_kind.fast_double, c); + } else { + assertKind(elements_kind.fast, c); + } } for (var i = 0; i < 3; i++) { crankshaft_test();