fix PowerPC build

This commit is contained in:
Joel Dice 2010-12-03 13:42:13 -07:00
parent 768fc7cf7d
commit 0bd6822ed7
3 changed files with 13 additions and 7 deletions

View File

@ -24,12 +24,12 @@
# define GLOBAL(x) x # define GLOBAL(x) x
#endif #endif
#define THREAD_STACK 2152 #define THREAD_STACK 2144
#define THREAD_CONTINUATION 2156 #define THREAD_CONTINUATION 2148
#define THREAD_EXCEPTION 44 #define THREAD_EXCEPTION 44
#define THREAD_EXCEPTION_STACK_ADJUSTMENT 2160 #define THREAD_EXCEPTION_STACK_ADJUSTMENT 2152
#define THREAD_EXCEPTION_OFFSET 2164 #define THREAD_EXCEPTION_OFFSET 2156
#define THREAD_EXCEPTION_HANDLER 2168 #define THREAD_EXCEPTION_HANDLER 2160
#define CONTINUATION_NEXT 4 #define CONTINUATION_NEXT 4
#define CONTINUATION_ADDRESS 16 #define CONTINUATION_ADDRESS 16

View File

@ -2662,6 +2662,12 @@ makeNew64(Thread* t, object class_)
return reinterpret_cast<uintptr_t>(makeNew(t, class_)); return reinterpret_cast<uintptr_t>(makeNew(t, class_));
} }
uint64_t
getJClass64(Thread* t, object class_)
{
return reinterpret_cast<uintptr_t>(getJClass(t, class_));
}
void void
gcIfNecessary(MyThread* t) gcIfNecessary(MyThread* t)
{ {
@ -4401,7 +4407,7 @@ compile(MyThread* t, Frame* initialFrame, unsigned ip,
frame->pushObject frame->pushObject
(c->call (c->call
(c->constant (c->constant
(getThunk(t, getJClassThunk), Compiler::AddressType), (getThunk(t, getJClass64Thunk), Compiler::AddressType),
0, 0,
frame->trace(0, 0), frame->trace(0, 0),
BytesPerWord, BytesPerWord,

View File

@ -48,5 +48,5 @@ THUNK(instanceOf64)
THUNK(makeNewGeneral64) THUNK(makeNewGeneral64)
THUNK(makeNew64) THUNK(makeNew64)
THUNK(set) THUNK(set)
THUNK(getJClass) THUNK(getJClass64)
THUNK(gcIfNecessary) THUNK(gcIfNecessary)