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

Side by Side Diff: test/mjsunit/compiler/regress-700883.js

Issue 2751513006: [turbofan] Fix typing for NumberMin and NumberMax to handle uninhabited types. (Closed)
Patch Set: Created 3 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/operation-typer.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 2017 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 add(x) {
8 return x + x;
9 }
10
11 add(0);
12 add(1);
13 %SetForceInlineFlag(add);
14
15 var min = Math.min;
16 function foo(x) {
17 x = x|0;
18 let y = add(x ? 800000000000 : NaN);
19 return min(y, x);
20 }
21
22 %OptimizeFunctionOnNextCall(foo);
23 foo();
OLDNEW
« no previous file with comments | « src/compiler/operation-typer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698