Index: test/mjsunit/regress/regress-430201.js |
diff --git a/test/mjsunit/compiler/compare-map-elim.js b/test/mjsunit/regress/regress-430201.js |
similarity index 85% |
copy from test/mjsunit/compiler/compare-map-elim.js |
copy to test/mjsunit/regress/regress-430201.js |
index 288d4811a6811691366841f7693495f6c785da9e..b53383e22e4553ae4c0542d90338b55d20d40dc9 100644 |
--- a/test/mjsunit/compiler/compare-map-elim.js |
+++ b/test/mjsunit/regress/regress-430201.js |
@@ -25,27 +25,17 @@ |
// (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 --check-elimination |
+// Flags: --allow-natives-syntax --expose-gc |
-a = { |
- f: function() { this.y = 3; } |
-}; |
-b = { |
- f: function() { this.y = 4; } |
-}; |
+var array_1 = []; |
-function x(z) { |
- return z.f(); |
-} |
- |
-x(a); |
-x(b); |
-x(a); |
-x(b); |
-x(a); |
-x(b); |
+%SetFlags("--stress-compaction"); |
+for (var a = 0; a < 10000; a++) { array_1[a * 100] = 0; } |
-%OptimizeFunctionOnNextCall(x) |
+gc(); |
+gc(); |
-x(a); |
-x(b); |
+var array_2 = []; |
+for (var i = 0; i < 321361; i++) { |
+ array_2[i] = String.fromCharCode(i)[0]; |
+} |