Reviewers: Yang,

Message:
PTAQL

Description:
Adjust elements-kind.js expectation when --smi-only-arrays is off


TEST=mjsunit/elements-kind passes both with and without --smi-only-arrays flag


Please review this at http://codereview.chromium.org/8356002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M test/mjsunit/elements-kind.js


Index: test/mjsunit/elements-kind.js
diff --git a/test/mjsunit/elements-kind.js b/test/mjsunit/elements-kind.js
index ca6daea0617c456b7164742cce2b924f5e8e90c2..cfd47c7781203078ecf7a3892cfa9abbe8ff62fa 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();


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

Reply via email to