Index: test/mjsunit/regress/regress-1878.js |
diff --git a/test/mjsunit/regress/regress-1878.js b/test/mjsunit/regress/regress-1878.js |
index 1b3c63aeb1ec56d1d3d223eb5b821fcb5d221065..baa385fd7c754b338e036842bcedb3945008c678 100644 |
--- a/test/mjsunit/regress/regress-1878.js |
+++ b/test/mjsunit/regress/regress-1878.js |
@@ -1,4 +1,4 @@ |
-// Copyright 2009 the V8 project authors. All rights reserved. |
+// Copyright 2012 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -30,5 +30,15 @@ |
// Flags: --allow-natives-syntax --expose_natives_as=natives |
var a = Array(); |
-var ai = natives.InternalArray(); |
-assertFalse(%HaveSameMap(ai, a)); |
+ |
+for (var i = 0; i < 1000; i++) { |
+ var ai = natives.InternalArray(10000); |
+ assertFalse(%HaveSameMap(ai, a)); |
+ assertTrue(%HasFastElements(ai)); |
+} |
+ |
+for (var i = 0; i < 1000; i++) { |
+ var ai = new natives.InternalArray(10000); |
+ assertFalse(%HaveSameMap(ai, a)); |
+ assertTrue(%HasFastElements(ai)); |
+} |