comparison src/cpu/sparc/vm/bytecodeInterpreter_sparc.hpp @ 123:9e5a7340635e

6688137: c++ interpreter fails on 64bit sparc Summary: Misc. 64bit and endian fixes for sparc Reviewed-by: never, kvn, rasbold Contributed-by: volker.simonis@gmail.com
author sgoldman
date Thu, 17 Apr 2008 07:16:03 -0700
parents a61af66fc99e
children d1605aabd0a1
comparison
equal deleted inserted replaced
119:d1a5218d7eaf 123:9e5a7340635e
76 #define SET_STACK_LONG_FROM_ADDR(addr, offset) (((VMJavaVal64*)&topOfStack[-(offset)])->l = \ 76 #define SET_STACK_LONG_FROM_ADDR(addr, offset) (((VMJavaVal64*)&topOfStack[-(offset)])->l = \
77 ((VMJavaVal64*)(addr))->l) 77 ((VMJavaVal64*)(addr))->l)
78 78
79 #define LOCALS_SLOT(offset) ((intptr_t*)&locals[-(offset)]) 79 #define LOCALS_SLOT(offset) ((intptr_t*)&locals[-(offset)])
80 #define LOCALS_ADDR(offset) ((address)locals[-(offset)]) 80 #define LOCALS_ADDR(offset) ((address)locals[-(offset)])
81 #define LOCALS_INT(offset) ((jint)(locals[-(offset)])) 81 #define LOCALS_INT(offset) (*((jint*)&locals[-(offset)]))
82 #define LOCALS_FLOAT(offset) (*((jfloat*)&locals[-(offset)])) 82 #define LOCALS_FLOAT(offset) (*((jfloat*)&locals[-(offset)]))
83 #define LOCALS_OBJECT(offset) ((oop)locals[-(offset)]) 83 #define LOCALS_OBJECT(offset) ((oop)locals[-(offset)])
84 #define LOCALS_DOUBLE(offset) (((VMJavaVal64*)&locals[-((offset) + 1)])->d) 84 #define LOCALS_DOUBLE(offset) (((VMJavaVal64*)&locals[-((offset) + 1)])->d)
85 #define LOCALS_LONG(offset) (((VMJavaVal64*)&locals[-((offset) + 1)])->l) 85 #define LOCALS_LONG(offset) (((VMJavaVal64*)&locals[-((offset) + 1)])->l)
86 #define LOCALS_LONG_AT(offset) (((address)&locals[-((offset) + 1)])) 86 #define LOCALS_LONG_AT(offset) (((address)&locals[-((offset) + 1)]))