Merge branch 'master' of oss.readytalk.com:/var/local/git/avian

This commit is contained in:
jet 2009-08-10 10:30:41 -06:00
commit 470e27d13c
5 changed files with 25 additions and 13 deletions

View File

@ -31,7 +31,11 @@
#if (defined __i386__) || (defined __POWERPC__) || (defined __arm__)
# define LD "ld"
# ifdef __MINGW32__
# define LLD "I64d"
# else
# define LLD "lld"
# endif
# ifdef __APPLE__
# define ULD "lu"
# define LX "lx"

View File

@ -189,8 +189,10 @@ compareIpToMethodBounds(Thread* t, intptr_t ip, object method)
intptr_t start = methodCompiled(t, method);
if (DebugMethodTree) {
fprintf(stderr, "find 0x%"LX" in (0x%"LX",0x%"LX")\n", ip, start,
start + compiledSize(start));
fprintf(stderr, "find %p in (%p,%p)\n",
reinterpret_cast<void*>(ip),
reinterpret_cast<void*>(start),
reinterpret_cast<void*>(start + compiledSize(start)));
}
if (ip < start) {

View File

@ -895,7 +895,7 @@ moveRR(Context* c, unsigned aSize, Assembler::Register* a,
case 4:
if (bSize == 8) {
if (BytesPerWord == 8) {
alwaysRex(c, aSize, b, a);
alwaysRex(c, bSize, b, a);
opcode(c, 0x63);
modrm(c, 0xc0, a, b);
} else {

View File

@ -35,7 +35,13 @@ public class Longs {
return a - (a % b);
}
private static int negativeOne() {
return -1;
}
public static void main(String[] args) {
expect(((long) negativeOne()) == -1);
{ long foo = 25214903884L;
int radix = 10;
expect(foo > 0);

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
log=build/log.txt
vg="nice valgrind --leak-check=full --num-callers=32 \
@ -28,7 +28,7 @@ for test in ${tests}; do
exit 1;;
esac
if (( ${?} == 0 )); then
if [ "${?}" = "0" ]; then
echo "success"
else
echo "fail"