Index: test/mjsunit/array-literal-transitions.js |
diff --git a/test/mjsunit/array-literal-transitions.js b/test/mjsunit/array-literal-transitions.js |
index 1af02d8d2f49a33c666a955aa676588c1ab5b4ce..ce46cb7a7c0d3ecb58d4b04668da9a4f6ce979b1 100644 |
--- a/test/mjsunit/array-literal-transitions.js |
+++ b/test/mjsunit/array-literal-transitions.js |
@@ -25,7 +25,8 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-// Flags: --allow-natives-syntax --expose-gc --ignition-osr |
+// Flags: --allow-natives-syntax --expose-gc --ignition-osr --no-always-opt |
+// Flags: --crankshaft |
// IC and Crankshaft support for smi-only elements in dynamic array literals. |
function get(foo) { return foo; } // Used to generate dynamic values. |
@@ -188,9 +189,7 @@ assertEquals(foo, array[2]); |
(function literals_after_osr() { |
var color = [0]; |
- // Trigger OSR, if optimization is not disabled. |
- if (%GetOptimizationStatus(literals_after_osr) != 4) { |
- while (%GetOptimizationCount(literals_after_osr) == 0) {} |
- } |
+ // Trigger OSR. |
+ while (%GetOptimizationCount(literals_after_osr) == 0) {} |
return [color[0]]; |
})(); |