mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
Merge branch 'master' of oss.readytalk.com:/var/local/git/avian
This commit is contained in:
commit
470e27d13c
20
src/common.h
20
src/common.h
@ -31,14 +31,18 @@
|
||||
|
||||
#if (defined __i386__) || (defined __POWERPC__) || (defined __arm__)
|
||||
# define LD "ld"
|
||||
# define LLD "lld"
|
||||
#ifdef __APPLE__
|
||||
# define ULD "lu"
|
||||
# define LX "lx"
|
||||
#else
|
||||
# define LX "x"
|
||||
# define ULD "u"
|
||||
#endif
|
||||
# ifdef __MINGW32__
|
||||
# define LLD "I64d"
|
||||
# else
|
||||
# define LLD "lld"
|
||||
# endif
|
||||
# ifdef __APPLE__
|
||||
# define ULD "lu"
|
||||
# define LX "lx"
|
||||
# else
|
||||
# define LX "x"
|
||||
# define ULD "u"
|
||||
# endif
|
||||
#elif defined __x86_64__
|
||||
# ifdef __MINGW32__
|
||||
# define LD "I64d"
|
||||
|
@ -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) {
|
||||
|
@ -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 {
|
||||
|
@ -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);
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user