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

Side by Side Diff: test/mjsunit/regress/regress-crbug-513602.js

Issue 1263543004: Fix prototype registration upon SlowToFast migration (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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 unified diff | Download patch
« src/objects.cc ('K') | « src/objects.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 function Parent() {}
6
7 function Child() {}
8 Child.prototype = new Parent();
9 var child = new Child();
10
11 function crash() {
12 return child.__proto__;
13 }
14
15 crash();
16 crash();
17
18 // Trigger a fast->slow->fast dance of Parent.prototype's map...
19 Parent.prototype.__defineSetter__("foo", function() { print("A"); });
20 Parent.prototype.__defineSetter__("foo", function() { print("B"); });
21 // ...and collect more type feedback.
22 crash();
23
24 // Now modify the prototype chain. The right cell fails to get invalidated.
25 delete Object.prototype.__proto__;
26 crash();
OLDNEW
« src/objects.cc ('K') | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698