Index: test/mjsunit/array-literal-transitions.js |
diff --git a/test/mjsunit/array-literal-transitions.js b/test/mjsunit/array-literal-transitions.js |
index 73e517371c4b9de31b53a7fd9d20dd85b0618f31..1af02d8d2f49a33c666a955aa676588c1ab5b4ce 100644 |
--- a/test/mjsunit/array-literal-transitions.js |
+++ b/test/mjsunit/array-literal-transitions.js |
@@ -25,11 +25,7 @@ |
// (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 --no-always-opt |
-// Flags: --crankshaft |
- |
-assertFalse(isNeverOptimize()); |
-assertFalse(isAlwaysOptimize()); |
+// Flags: --allow-natives-syntax --expose-gc --ignition-osr |
// IC and Crankshaft support for smi-only elements in dynamic array literals. |
function get(foo) { return foo; } // Used to generate dynamic values. |
@@ -192,7 +188,9 @@ |
(function literals_after_osr() { |
var color = [0]; |
- // Trigger OSR. |
- while (%GetOptimizationCount(literals_after_osr) == 0) {} |
+ // Trigger OSR, if optimization is not disabled. |
+ if (%GetOptimizationStatus(literals_after_osr) != 4) { |
+ while (%GetOptimizationCount(literals_after_osr) == 0) {} |
+ } |
return [color[0]]; |
})(); |