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

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

Issue 880533002: [turbofan] Simplify reduction if IfTrue and IfFalse and fix bugs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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 | « test/cctest/compiler/test-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 // Flags: --allow-natives-syntax
6
7 function k() { throw "e"; }
8 var a = true;
9 var a = false;
10 function foo(a) {
11 var i, j;
12 if (a) {
13 for (i = 0; i < 1; j++) ;
14 for (i = 0; i < 1; k()) ;
15 for (i = 0; i < 1; i++) ;
16 }
17 }
18 %OptimizeFunctionOnNextCall(foo);
19 foo();
20
21 function bar() {
22 var __v_45;
23 for (__v_45 = 0; __v_45 < 64; __v_63++) {
24 }
25 for (__v_45 = 0; __v_45 < 128; __v_36++) {
26 }
27 for (__v_45 = 128; __v_45 < 256; __v_45++) {
28 }
29 }
30 %OptimizeFunctionOnNextCall(bar);
31 assertThrows(bar);
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-control-reducer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698