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

Unified Diff: test/mjsunit/regress/regress-convert-enum2.js

Issue 11145017: Invalidate the enum cache when converting a transition across which the descriptors are shared. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove expose-gc dependency 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 | « src/objects.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-convert-enum2.js
diff --git a/test/mjsunit/regress/regress-2249.js b/test/mjsunit/regress/regress-convert-enum2.js
similarity index 88%
copy from test/mjsunit/regress/regress-2249.js
copy to test/mjsunit/regress/regress-convert-enum2.js
index 07d687d8191ad469d09cbd86cd7ea12797a735d3..cdc7fbe2b68ee20cb77dd020e54ec94f43a14f61 100644
--- a/test/mjsunit/regress/regress-2249.js
+++ b/test/mjsunit/regress/regress-convert-enum2.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
-
var o = {};
-o[Math.pow(2,30)-1] = 0;
-o[Math.pow(2,31)-1] = 0;
-o[1] = 0;
+o.a = 1;
+o.b = function() { return 1; };
+o.d = 2;
+
+for (var x in o) { }
+
+var o1 = {};
+o1.a = 1;
+o1.b = 10;
+o1.c = 20;
+
+var keys = ["a", "b", "c"];
+
+var i = 0;
+for (var y in o1) {
+ assertEquals(keys[i], y);
+ i += 1;
+}
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698