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

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

Issue 1714513003: [turbofan] Fix write barrier handling of map values. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add arm64 Created 4 years, 10 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/compiler/x87/code-generator-x87.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: --expose-gc --min-semi-space-size=32
6
7 // We need to set --min-semi-space-size to enable allocation site pretenuring.
8
9 function foo(i) {
10 with({}) {};
11 x = {};
12 x.a = 0.23;
13 x.b = 0.3;
14 return x;
15 }
16
17 var all = [];
18 function step() {
19 for (var i = 0; i < 100; i++) {
20 var z = foo(i);
21 // Write unboxed double in object slack.
22 z.c = 0.1 + z.b
23 all.push(z);
24 }
25 gc(1);
26 gc(1);
27 }
28
29 step();
30 // Now foo will allocate objects in old space.
31 step();
OLDNEW
« no previous file with comments | « src/compiler/x87/code-generator-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698