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

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

Issue 1030623003: [turbofan] Fix control reducer bug with walking non-control edges during ConnectNTL phase. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/control-reducer.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 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 function counter() {
6 var i = 100;
7 return function() {
8 if (i-- > 0) return i;
9 throw "done";
10 }
11 }
12
13 var c1 = counter();
14 var c2 = counter();
15
16 var f = (function() {
17 "use asm";
18 return function f(i) {
19 i = i|0;
20 do {
21 if (i > 0) c1();
22 else c2();
23 } while (true);
24 }
25 })();
26
27 assertThrows(function() { f(0); });
28 assertThrows(function() { f(1); });
29
30 var c3 = counter();
31
32 var g = (function() {
33 "use asm";
34 return function g(i) {
35 i = i + 1;
36 do {
37 i = c3(i);
38 } while (true);
39 }
40 })();
41
42 assertThrows(function() { g(0); });
43 assertThrows(function() { g(1); });
OLDNEW
« no previous file with comments | « src/compiler/control-reducer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698