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

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

Issue 1856653002: Properly complete in-object slack tracking. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « 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 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 // Flags: --allow-natives-syntax --expose-gc --verify-heap
6
7 function A() {}
8
9 function g1() {
10 var obj = new A();
11 obj.v0 = 0;
12 obj.v1 = 0;
13 obj.v2 = 0;
14 obj.v3 = 0;
15 obj.v4 = 0;
16 obj.v5 = 0;
17 obj.v6 = 0;
18 obj.v7 = 0;
19 obj.v8 = 0;
20 obj.v9 = 0;
21 return obj;
22 }
23
24 function g2() {
25 return new A();
26 }
27
28 var o = g1();
29 %OptimizeFunctionOnNextCall(g2);
30 g2();
31 o = null;
32 gc();
33
34 for (var i = 0; i < 20; i++) {
35 var o = new A();
36 }
37 g2();
38
39 gc(); // Boom!
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698