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

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

Issue 2471523005: [turbofan] Disable usage of {maybe_assigned} variable flag. (Closed)
Patch Set: Created 4 years, 1 month 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/ast-graph-builder.cc ('k') | test/mjsunit/regress/regress-crbug-659915b.js » ('j') | 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 --min-preparse-length=10
6
7 let x;
8 function f(a) {
9 x += a;
10 }
11 function g(a) {
12 f(a); return x;
13 }
14 function h(a) {
15 x = a; return x;
16 }
17
18 function boom() { return g(1) }
19
20 assertEquals(1, h(1));
21 assertEquals(2, boom());
22 assertEquals(3, boom());
23 %OptimizeFunctionOnNextCall(boom);
24 assertEquals(4, boom());
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | test/mjsunit/regress/regress-crbug-659915b.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698