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

Unified Diff: test/mjsunit/store-dictionary.js

Issue 2528883003: Reland of [stubs] KeyedStoreGeneric: inline dictionary property stores (Closed)
Patch Set: fix for deleted-elements issue 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 | « test/mjsunit/regress/regress-private-enumerable.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/store-dictionary.js
diff --git a/test/mjsunit/store-dictionary.js b/test/mjsunit/store-dictionary.js
index 377352f39e5e85c01d6758ae8ff71d5cc8f051b7..5b22ebfe5c021c851ea50eeb821eebcdd427decb 100644
--- a/test/mjsunit/store-dictionary.js
+++ b/test/mjsunit/store-dictionary.js
@@ -25,6 +25,8 @@
// (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
+
// Test dictionary store ICs.
// Function that stores property 'x' on an object.
@@ -62,3 +64,27 @@ assertEquals(42, o.x);
delete o.x;
store(o);
assertEquals(42, o.x);
+
+(function() {
+ var o = {};
+ for (var i = 0; i < 100; i++) {
+ var k = "key" + i;
+ o[k] = "foo";
+ delete o[k];
+ }
+})();
+
+(function() {
+ function f(a, i, v) {
+ a[i] = v;
+ }
+
+ f("make it generic", 0, 0);
+
+ var o = {};
+ for (var i = 0; i < 100; i++) {
+ var k = %InternalizeString("key" + i);
+ f(o, k, "foo");
+ delete o[k];
+ }
+})();
« no previous file with comments | « test/mjsunit/regress/regress-private-enumerable.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698