Revision: 15403
Author:   [email protected]
Date:     Mon Jul  1 02:00:14 2013
Log:      Test fix - array-feedback.js has a test that only make sense when
running crankshaft. Allow the test to tolerate --nocrankshaft.

BUG=
[email protected]

Review URL: https://codereview.chromium.org/18328002
http://code.google.com/p/v8/source/detail?r=15403

Modified:
 /branches/bleeding_edge/test/mjsunit/array-feedback.js

=======================================
--- /branches/bleeding_edge/test/mjsunit/array-feedback.js Tue Jun 25 09:31:07 2013 +++ /branches/bleeding_edge/test/mjsunit/array-feedback.js Mon Jul 1 02:00:14 2013
@@ -179,13 +179,16 @@
     a[0] = 3.5;
     %OptimizeFunctionOnNextCall(create0);
     create0();
-    create0();
-    b = create0();
-    assertKind(elements_kind.fast_smi_only, b);
-    b[0] = 3.5;
-    c = create0();
-    assertKind(elements_kind.fast_double, c);
-    assertTrue(2 != %GetOptimizationStatus(create0));
+    // This test only makes sense if crankshaft is allowed
+    if (4 != %GetOptimizationStatus(create0)) {
+      create0();
+      b = create0();
+      assertKind(elements_kind.fast_smi_only, b);
+      b[0] = 3.5;
+      c = create0();
+      assertKind(elements_kind.fast_double, c);
+      assertTrue(2 != %GetOptimizationStatus(create0));
+    }
   })();


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to