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

Side by Side Diff: test/mjsunit/regress/regress-private-enumerable.js

Issue 2528883003: Reland of [stubs] KeyedStoreGeneric: inline dictionary property stores (Closed)
Patch Set: fix for deleted-elements issue Created 4 years 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 unified diff | Download patch
« no previous file with comments | « test/mjsunit/regress/regress-crbug-668101.js ('k') | test/mjsunit/store-dictionary.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --allow-natives-syntax
6
5 class A {} 7 class A {}
6 class B {} 8 class B {}
7 Object.assign(B, A); 9 Object.assign(B, A);
8 assertEquals("class B {}", B.toString()); 10 assertEquals("class B {}", B.toString());
11
12 (function() {
13 function f(a, i, v) {
14 a[i] = v;
15 }
16
17 f("make it generic", 0, 0);
18
19 var o = {foo: "foo"};
20 %OptimizeObjectForAddingMultipleProperties(o, 10);
21
22 var s = %CreatePrivateSymbol("priv");
23 f(o, s, "private");
24 %ToFastProperties(o);
25
26 var desc = Object.getOwnPropertyDescriptor(o, s);
27 assertEquals("private", desc.value);
28 assertTrue(desc.writable);
29 assertFalse(desc.enumerable);
30 assertTrue(desc.configurable);
31 })();
OLDNEW
« no previous file with comments | « test/mjsunit/regress/regress-crbug-668101.js ('k') | test/mjsunit/store-dictionary.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698