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

Side by Side Diff: test/mjsunit/regress/regress-470804.js

Issue 1033273005: Layout descriptor must be trimmed when corresponding descriptors array is trimmed to stay in sync. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Forgot to actually trim the array Created 5 years, 8 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 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 // Flags: --expose-gc
6
7 function f() {
8 this.foo00 = 0;
9 this.foo01 = 0;
10 this.foo02 = 0;
11 this.foo03 = 0;
12 this.foo04 = 0;
13 this.foo05 = 0;
14 this.foo06 = 0;
15 this.foo07 = 0;
16 this.foo08 = 0;
17 this.foo09 = 0;
18 this.foo0a = 0;
19 this.foo0b = 0;
20 this.foo0c = 0;
21 this.foo0d = 0;
22 this.foo0e = 0;
23 this.foo0f = 0;
24 this.foo10 = 0;
25 this.foo11 = 0;
26 this.foo12 = 0;
27 this.foo13 = 0;
28 this.foo14 = 0;
29 this.foo15 = 0;
30 this.foo16 = 0;
31 this.foo17 = 0;
32 this.foo18 = 0;
33 this.foo19 = 0;
34 this.foo1a = 0;
35 this.foo1b = 0;
36 this.foo1c = 0;
37 this.foo1d = 0;
38 this.foo1e = 0;
39 this.foo1f = 0;
40 this.d = 1.3;
41 gc();
42 this.boom = 230;
43 this.boom = 1.4;
44 }
45
46 function g() {
47 return new f();
48 }
49 g();
50 g();
51 var o = g();
52 assertEquals(0, o.foo00);
53 assertEquals(1.4, o.boom);
OLDNEW
« src/layout-descriptor.cc ('K') | « test/cctest/test-unboxed-doubles.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698