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

Unified Diff: test/mjsunit/shift-for-integer-div.js

Issue 181453002: Reset trunk to 3.24.35.4 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 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 | « test/mjsunit/regress/string-set-char-deopt.js ('k') | test/mjsunit/smi-mul-const.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/shift-for-integer-div.js
diff --git a/test/mjsunit/shift-for-integer-div.js b/test/mjsunit/shift-for-integer-div.js
index 884202d3133893894a8283e6e9c1eb4f2c4e37e3..aaa67e97fe21ea4dffe94c38cea96794f4eb4a12 100644
--- a/test/mjsunit/shift-for-integer-div.js
+++ b/test/mjsunit/shift-for-integer-div.js
@@ -60,7 +60,7 @@ divn1(2);
divn1(2);
%OptimizeFunctionOnNextCall(divn1);
assertEquals(-2, divn1(2));
-assertEquals(-two_31, divn1(two_31));
+assertEquals(two_31, divn1(-two_31));
//Check for truncating to int32 case
@@ -85,14 +85,3 @@ divn4t(8);
assertEquals(1, divn4t(-5));
assertEquals(-1, divn4t(5));
assertOptimized(divn4t);
-
-// Check kMinInt case.
-function div_by_two(x) {
- return (x / 2) | 0;
-}
-
-div_by_two(12);
-div_by_two(34);
-%OptimizeFunctionOnNextCall(div_by_two);
-div_by_two(56);
-assertEquals(-(1 << 30), div_by_two(1 << 31));
« no previous file with comments | « test/mjsunit/regress/string-set-char-deopt.js ('k') | test/mjsunit/smi-mul-const.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698