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

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: 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-621816.js b/test/mjsunit/compiler/regress-5278.js
similarity index 54%
copy from test/mjsunit/regress/regress-crbug-621816.js
copy to test/mjsunit/compiler/regress-5278.js
index ca7f5ac6df314f81e4c73f9417d1a6f3240540fc..7de302237c7bf683963e081c444b88b0c322018d 100644
--- a/test/mjsunit/regress/regress-crbug-621816.js
+++ b/test/mjsunit/compiler/regress-5278.js
@@ -4,15 +4,12 @@
// Flags: --allow-natives-syntax --turbo
Benedikt Meurer 2016/08/10 08:51:07 Don't add --turbo here.
epertoso 2016/08/10 08:53:33 Done.
-function f() {
- var o = {};
- o.a = 1;
-}
-function g() {
- var o = { ['a']: function(){} };
- f();
-}
-f();
-f();
-%OptimizeFunctionOnNextCall(g);
-g();
+(function CheckedInt32Mod() {
Benedikt Meurer 2016/08/10 08:51:07 Nit: Just use global scope here.
epertoso 2016/08/10 08:53:33 Done.
+ function foo(a, b) {
+ return a % b;
+ }
+ foo(2, 1);
+ foo(2, 1);
+ %OptimizeFunctionOnNextCall(foo);
+ 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