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

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

Issue 2191663004: [fullcode][mips][mips64][ppc][s390] Avoid trashing of a home object when doing a count operation wi… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 var v = {};
6 (function() {
7 var obj1 = { [v]: 42 };
8 var obj2 = {
9 testCounts() {
10 super[v]++;
11 return this[v];
12 }
13 }
14 Object.setPrototypeOf(obj2, obj1);
15 obj2.testCounts();
16
17 assertEquals(43, obj2.testCounts());
18 assertEquals(42, obj1[v]);
19 }());
OLDNEW
« src/full-codegen/mips/full-codegen-mips.cc ('K') | « src/full-codegen/s390/full-codegen-s390.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698