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

Side by Side Diff: test/mjsunit/compiler/regress-shift-right-logical.js

Issue 1213803008: [turbofan] Right hand side of shifts needs ToUint32. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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
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 ShiftRightLogicalWithDeoptUsage() {
8 function g() {}
9
10 function f() {
11 var tmp = 1264475713;
12 var tmp1 = tmp - (-913041544);
13 g();
14 return 1 >>> tmp1;
15 }
16
17 %OptimizeFunctionOnNextCall(f);
18 assertEquals(0, f());
19 })();
20
21
22 (function ShiftRightLogicalWithCallUsage() {
23 var f = (function() {
24 "use asm"
25 // This is not a valid asm.js, we use the "use asm" here to
26 // trigger Turbofan without deoptimization support.
27
28 function g(x) { return x; }
29
30 function f() {
31 var tmp = 1264475713;
32 var tmp1 = tmp - (-913041544);
33 return g(1 >>> tmp1, tmp1);
34 }
35
36 return f;
37 })();
38
39 %OptimizeFunctionOnNextCall(f);
40 assertEquals(0, f());
41 })();
OLDNEW
« no previous file with comments | « test/mjsunit/compiler/regress-shift-right.js ('k') | test/unittests/compiler/js-typed-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698