Mercurial > hg > graal-compiler
diff src/share/vm/c1x/c1x_CodeInstaller.cpp @ 2215:999f8086cc4f
More changes to make it compile and work on win64.
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Mon, 21 Feb 2011 20:44:57 +0100 |
parents | 9569fdf936ff |
children | a2babfb34c24 |
line wrap: on
line diff
--- a/src/share/vm/c1x/c1x_CodeInstaller.cpp Mon Feb 21 19:53:48 2011 +0100 +++ b/src/share/vm/c1x/c1x_CodeInstaller.cpp Mon Feb 21 20:44:57 2011 +0100 @@ -56,13 +56,13 @@ const int MapWordBits = 64; if (i < MapWordBits) { jlong low = CiBitMap::low(bit_map); - return (low & (1L << i)) != 0; + return (low & (1LL << i)) != 0; } else { jint extra_idx = (i - MapWordBits) / MapWordBits; arrayOop extra = (arrayOop) CiBitMap::extra(bit_map); assert(extra_idx >= 0 && extra_idx < extra->length(), "unexpected index"); jlong word = ((jlong*) extra->base(T_LONG))[extra_idx]; - return (word & (1L << (i % MapWordBits))) != 0; + return (word & (1LL << (i % MapWordBits))) != 0; } } @@ -143,18 +143,17 @@ return new ConstantOopWriteValue(NULL); } else { obj->print(); - ShouldNotReachHere(); } } else if (type == T_ADDRESS) { return new ConstantLongValue(prim); } tty->print("%i", type); - ShouldNotReachHere(); } else { value->klass()->print(); value->print(); - ShouldNotReachHere(); } + ShouldNotReachHere(); + return NULL; } // constructor used to create a method