diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2010-06-28 08:47:01 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2010-06-28 08:47:01 -0700 |
commit | 5a25338ac08ff9ab7656f91a67f06491e5cf8431 (patch) | |
tree | 40c99588d9ccab8d0ea989e9d8d177fd35b978b7 /deps/v8/test/mjsunit/smi-ops.js | |
parent | 67f7fe5e5c210f42fd3c27809a97245b4eb242f9 (diff) | |
download | node-new-5a25338ac08ff9ab7656f91a67f06491e5cf8431.tar.gz |
Upgrade V8 to 2.2.20
Diffstat (limited to 'deps/v8/test/mjsunit/smi-ops.js')
-rw-r--r-- | deps/v8/test/mjsunit/smi-ops.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/smi-ops.js b/deps/v8/test/mjsunit/smi-ops.js index d5bd21405b..499535c097 100644 --- a/deps/v8/test/mjsunit/smi-ops.js +++ b/deps/v8/test/mjsunit/smi-ops.js @@ -685,3 +685,8 @@ assertEquals(24, LeftShiftThreeBy(3)); assertEquals(24, LeftShiftThreeBy(35)); assertEquals(24, LeftShiftThreeBy(67)); assertEquals(24, LeftShiftThreeBy(-29)); + +// Regression test for a bug in the ARM code generator. For some register +// allocations we got the Smi overflow case wrong. +function f(x, y) { return y + ( 1 << (x & 31)); } +assertEquals(-2147483647, f(31, 1)); |