Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(622)

Unified Diff: test/mjsunit/regress/regress-cntl-descriptors-enum.js

Issue 11093026: Reapply descriptor array sharing. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: fix long line Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/test-heap-profiler.cc ('k') | test/mjsunit/regress/regress-convert-transition.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-cntl-descriptors-enum.js
diff --git a/test/mjsunit/regress/regress-2249.js b/test/mjsunit/regress/regress-cntl-descriptors-enum.js
similarity index 85%
copy from test/mjsunit/regress/regress-2249.js
copy to test/mjsunit/regress/regress-cntl-descriptors-enum.js
index 07d687d8191ad469d09cbd86cd7ea12797a735d3..ee72fafc8a7c67f2b1ab6cc22a734ef8033a5697 100644
--- a/test/mjsunit/regress/regress-2249.js
+++ b/test/mjsunit/regress/regress-cntl-descriptors-enum.js
@@ -25,9 +25,22 @@
// (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: --gc-interval=10 --stress-compaction
+// Flags: --allow-natives-syntax --expose-gc
+
+DontEnum = 2;
var o = {};
-o[Math.pow(2,30)-1] = 0;
-o[Math.pow(2,31)-1] = 0;
-o[1] = 0;
+%SetProperty(o, "a", 0, DontEnum);
+
+var o2 = {};
+%SetProperty(o2, "a", 0, DontEnum);
+
+assertTrue(%HaveSameMap(o, o2));
+
+o.y = 2;
+
+for (var v in o) { print(v); }
+o = {};
+gc();
+
+for (var v in o2) { print(v); }
« no previous file with comments | « test/cctest/test-heap-profiler.cc ('k') | test/mjsunit/regress/regress-convert-transition.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698