aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-03-16 11:13:32 +0000
committerBen Murdoch <benm@google.com>2011-03-16 11:13:32 +0000
commitdf5bff59602802b769e994b0dc1d8869a27fa40c (patch)
tree577f26329c35b6a079af4925e862aea242bee6c7 /test
parent8c569c4a1286b419597940890e04517bc59eefcd (diff)
downloadv8-df5bff59602802b769e994b0dc1d8869a27fa40c.tar.gz
Pull in the latest V8 for various stability fixes. Note that this deviates from the Chromium 9.0.597.x branch. Bug: 3483676 Change-Id: Ic5178f532775218e1c87a71c54995c2820604cb3
Diffstat (limited to 'test')
-rw-r--r--test/mjsunit/bitops-info.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/mjsunit/bitops-info.js b/test/mjsunit/bitops-info.js
index 4660fdf9..4b114c54 100644
--- a/test/mjsunit/bitops-info.js
+++ b/test/mjsunit/bitops-info.js
@@ -37,7 +37,6 @@ function hidden_int32() {
return 1600822924; // It's a signed Int32.
}
-
function f() {
var x = non_int32(); // Not a constant.
var y = hidden_smi(); // Not a constant.
@@ -66,6 +65,13 @@ function f() {
assertEquals(46512102 & 2600822924, x & y, "10rev");
assertEquals(1600822924 & 2600822924, x & z, "11rev");
+ assertEquals((46512102 & -0x20123456) | 1, (y & -0x20123456) | 1, "12");
+ assertEquals((1600822924 & -0x20123456) | 1, (z & -0x20123456) | 1, "13");
+ assertEquals((2600822924 & -0x20123456) | 1, (x & -0x20123456) | 1, "14");
+ assertEquals((46512102 & -0x20123456) | 1, (-0x20123456 & y) | 1, "12rev");
+ assertEquals((1600822924 & -0x20123456) | 1, (-0x20123456 & z) | 1, "13rev");
+ assertEquals((2600822924 & -0x20123456) | 1, (-0x20123456 & x) | 1, "14rev");
+
assertEquals(2600822924 & 2600822924, x & x, "xx");
assertEquals(y, y & y, "yy");
assertEquals(z, z & z, "zz");