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

Unified Diff: test/mjsunit/fast-prototype.js

Issue 2525573002: [runtime] Always normalize prototype maps that aren't marked as 'should be fast' yet (Closed)
Patch Set: minor cleanup Created 4 years, 1 month 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/fast-prototype.js
diff --git a/test/mjsunit/fast-prototype.js b/test/mjsunit/fast-prototype.js
index aa0a62e954e4fadbc6b83cb06af0d8a8f232027b..781e23d4c6e60f3d853bf58d3455677831c2bbd0 100644
--- a/test/mjsunit/fast-prototype.js
+++ b/test/mjsunit/fast-prototype.js
@@ -101,11 +101,12 @@ for (var i = 0; i < 4; i++) {
var x = {a: 1, b: 2, c: 3};
var o = { __proto__: x };
-assertTrue(%HasFastProperties(x));
+assertFalse(%HasFastProperties(x));
for (key in x) {
assertTrue(key == 'a');
break;
}
+assertTrue(%HasFastProperties(x));
delete x.b;
for (key in x) {
assertTrue(key == 'a');
« 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