Index: test/mjsunit/array-literal-transitions.js |
diff --git a/test/mjsunit/array-literal-transitions.js b/test/mjsunit/array-literal-transitions.js |
index 4ddf2cb63d8f09316056aa4bcd35635a2119b366..21ea3db997f2b7d207f18df1c803ee61372331af 100644 |
--- a/test/mjsunit/array-literal-transitions.js |
+++ b/test/mjsunit/array-literal-transitions.js |
@@ -201,3 +201,10 @@ if (support_smi_only_arrays) { |
assertEquals(1, array[1]); |
assertEquals(foo, array[2]); |
} |
+ |
+(function literals_after_osr() { |
+ var color = [0]; |
+ // Trigger OSR. |
+ while (%GetOptimizationStatus(literals_after_osr) == 2) {} |
+ return [color[0]]; |
+})(); |