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

Side by Side Diff: test/mjsunit/regress/regress-v8-5254-2.js

Issue 2202803003: [turbofan] Fix invalid comparison operator narrowing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/mjsunit/regress/regress-v8-5254-1.js ('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: --allow-natives-syntax
6
7 var foo = (function() {
8 "use asm";
9 var a = new Uint8Array(2);
10 a[0] = 128;
11 a[1] = 127;
12
13 function foo() {
14 var x = a[0]|0;
15 var y = a[1]|0;
16 if (x < 0) x = 4294967296 + x|0;
17 if (y < 0) y = 4294967296 + y|0;
18 return x >= y;
19 }
20
21 return foo;
22 })();
23
24 assertTrue(foo());
25 assertTrue(foo());
26 %OptimizeFunctionOnNextCall(foo);
27 assertTrue(foo());
OLDNEW
« no previous file with comments | « test/mjsunit/regress/regress-v8-5254-1.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698