Index: test/mjsunit/smi-ops.js |
=================================================================== |
--- test/mjsunit/smi-ops.js (revision 2133) |
+++ test/mjsunit/smi-ops.js (working copy) |
@@ -585,3 +585,10 @@ |
} |
testShiftNonSmis(); |
+ |
+ |
+// Verify that we handle the (optimized) corner case of shifting by |
+// zero even for non-smis. |
+function shiftByZero(n) { return n << 0; } |
+ |
+assertEquals(3, shiftByZero(3.1415)); |