comparison src/cpu/x86/vm/jniTypes_x86.hpp @ 8151:b8f261ba79c6

Minimize diff to plain HotSpot version.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Thu, 07 Mar 2013 21:00:29 +0100
parents 79a7b761755c
children
comparison
equal deleted inserted replaced
8150:b66f831ac5ab 8151:b8f261ba79c6
125 static inline jint get_int (intptr_t *from) { return *(jint *) from; } 125 static inline jint get_int (intptr_t *from) { return *(jint *) from; }
126 static inline jlong get_long (intptr_t *from) { return *(jlong *) (from + _JNI_SLOT_OFFSET); } 126 static inline jlong get_long (intptr_t *from) { return *(jlong *) (from + _JNI_SLOT_OFFSET); }
127 static inline oop get_obj (intptr_t *from) { return *(oop *) from; } 127 static inline oop get_obj (intptr_t *from) { return *(oop *) from; }
128 static inline jfloat get_float (intptr_t *from) { return *(jfloat *) from; } 128 static inline jfloat get_float (intptr_t *from) { return *(jfloat *) from; }
129 static inline jdouble get_double(intptr_t *from) { return *(jdouble *)(from + _JNI_SLOT_OFFSET); } 129 static inline jdouble get_double(intptr_t *from) { return *(jdouble *)(from + _JNI_SLOT_OFFSET); }
130
131 static inline jint get_int (intptr_t *from, int& pos) {
132 return get_int(from + pos++);
133 }
134 static inline jlong get_long (intptr_t *from, int& pos) {
135 jlong result = get_long(from + pos);
136 pos += 2;
137 return result;
138 }
139 static inline oop get_obj (intptr_t *from, int& pos) {
140 return get_obj(from + pos++);
141 }
142 static inline jfloat get_float (intptr_t *from, int& pos) {
143 return get_float(from + pos++);
144 }
145 static inline jdouble get_double(intptr_t *from, int& pos) {
146 jdouble result = get_double(from + pos);
147 pos += 2;
148 return result;
149 }
150 #undef _JNI_SLOT_OFFSET 130 #undef _JNI_SLOT_OFFSET
151 }; 131 };
152 132
153 #endif // CPU_X86_VM_JNITYPES_X86_HPP 133 #endif // CPU_X86_VM_JNITYPES_X86_HPP