diff src/cpu/x86/vm/jniTypes_x86.hpp @ 5747:120820e30baa

added basic high-level interpreter support to HotSpot
author Christian Haeubl <haeubl@ssw.jku.at>
date Tue, 03 Jul 2012 16:56:40 +0200
parents f95d63e2154a
children 79a7b761755c
line wrap: on
line diff
--- a/src/cpu/x86/vm/jniTypes_x86.hpp	Tue Jul 03 15:00:23 2012 +0200
+++ b/src/cpu/x86/vm/jniTypes_x86.hpp	Tue Jul 03 16:56:40 2012 +0200
@@ -127,6 +127,12 @@
   static inline oop     get_obj   (intptr_t *from) { return *(oop *)    from; }
   static inline jfloat  get_float (intptr_t *from) { return *(jfloat *) from; }
   static inline jdouble get_double(intptr_t *from) { return *(jdouble *)(from + _JNI_SLOT_OFFSET); }
+
+  static inline jint    get_int   (intptr_t *from, int& pos) { return get_int(from + pos++); }
+  static inline jlong   get_long  (intptr_t *from, int& pos) { return get_long(from + pos); pos += 2; }
+  static inline oop     get_obj   (intptr_t *from, int& pos) { return get_obj(from + pos++); }
+  static inline jfloat  get_float (intptr_t *from, int& pos) { return get_float(from + pos++); }
+  static inline jdouble get_double(intptr_t *from, int& pos) { return get_double(from + pos); pos += 2; }
 #undef _JNI_SLOT_OFFSET
 };