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

Unified Diff: test/mjsunit/compiler/regress-650215.js

Issue 2373453002: [turbofan] Fix restriction type for modulus in representation inference. (Closed)
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/regress-650215.js
diff --git a/test/mjsunit/ignition/osr-from-bytecode.js b/test/mjsunit/compiler/regress-650215.js
similarity index 62%
copy from test/mjsunit/ignition/osr-from-bytecode.js
copy to test/mjsunit/compiler/regress-650215.js
index d4f40bad796783d080e0d01c5928b88fdf240518..95ae6cfed12ada3b6e0263a6dffa1482c6cf6eeb 100644
--- a/test/mjsunit/ignition/osr-from-bytecode.js
+++ b/test/mjsunit/compiler/regress-650215.js
@@ -2,11 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --allow-natives-syntax --ignition --ignition-osr --turbo-from-bytecode
+// Flags: --allow-natives-syntax
function f() {
+ var x = 0;
for (var i = 0; i < 10; i++) {
- if (i == 5) %OptimizeOsr();
+ x = (2 % x) | 0;
+ if (i === 5) %OptimizeOsr();
}
+ return x;
}
-f();
+
+assertEquals(0, f());
« no previous file with comments | « src/compiler/simplified-lowering.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698