running crankshaft. Allow the test to tolerate --nocrankshaft.
BUG=
R=hpayer@chromium.org
Review URL: https://codereview.chromium.org/
18328002
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15403
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
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));
+ }
})();