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

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

Issue 2233713002: [turbofan] Fix CheckedInt32Mod lowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/effect-control-linearizer.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-5278.js
diff --git a/test/mjsunit/regress/regress-crbug-614292.js b/test/mjsunit/compiler/regress-5278.js
similarity index 72%
copy from test/mjsunit/regress/regress-crbug-614292.js
copy to test/mjsunit/compiler/regress-5278.js
index 3a67c17f6010b3bf60a8b7c9aa019ff369ddfadf..25b1fb03d54d297913797e566500873ed2df092e 100644
--- a/test/mjsunit/regress/regress-crbug-614292.js
+++ b/test/mjsunit/compiler/regress-5278.js
@@ -4,11 +4,10 @@
// Flags: --allow-natives-syntax
-function foo() {
- return [] | 0 && values[0] || false;
+function foo(a, b) {
+ return a % b;
}
-
+foo(2, 1);
+foo(2, 1);
%OptimizeFunctionOnNextCall(foo);
-try {
- foo();
-} catch (e) {}
+assertEquals(-0, foo(-2, 1));
« no previous file with comments | « src/compiler/effect-control-linearizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698