Revision: 9705
Author:   [email protected]
Date:     Wed Oct 19 05:44:50 2011
Log:      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
http://code.google.com/p/v8/source/detail?r=9705

Modified:
 /branches/bleeding_edge/test/mjsunit/elements-kind.js

=======================================
--- /branches/bleeding_edge/test/mjsunit/elements-kind.js Wed Oct 19 05:10:18 2011 +++ /branches/bleeding_edge/test/mjsunit/elements-kind.js Wed Oct 19 05:44:50 2011
@@ -237,7 +237,11 @@
   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();

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to