Mercurial > hg > truffle
comparison src/cpu/x86/vm/jniTypes_x86.hpp @ 7310:79a7b761755c
Added getLineNumberTable and getFileName capabilities.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Thu, 20 Dec 2012 14:50:56 +0100 |
parents | 120820e30baa |
children | b8f261ba79c6 |
comparison
equal
deleted
inserted
replaced
7309:75c18356504d | 7310:79a7b761755c |
---|---|
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 | 130 |
131 static inline jint get_int (intptr_t *from, int& pos) { return get_int(from + pos++); } | 131 static inline jint get_int (intptr_t *from, int& pos) { |
132 static inline jlong get_long (intptr_t *from, int& pos) { return get_long(from + pos); pos += 2; } | 132 return get_int(from + pos++); |
133 static inline oop get_obj (intptr_t *from, int& pos) { return get_obj(from + pos++); } | 133 } |
134 static inline jfloat get_float (intptr_t *from, int& pos) { return get_float(from + pos++); } | 134 static inline jlong get_long (intptr_t *from, int& pos) { |
135 static inline jdouble get_double(intptr_t *from, int& pos) { return get_double(from + pos); pos += 2; } | 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 } | |
136 #undef _JNI_SLOT_OFFSET | 150 #undef _JNI_SLOT_OFFSET |
137 }; | 151 }; |
138 | 152 |
139 #endif // CPU_X86_VM_JNITYPES_X86_HPP | 153 #endif // CPU_X86_VM_JNITYPES_X86_HPP |