diff src/cpu/sparc/vm/jniTypes_sparc.hpp @ 7735:a7a93887b4c4

fix Solaris build and initial SPARC support
author twisti
date Wed, 06 Feb 2013 18:01:07 -0800
parents f95d63e2154a
children b8f261ba79c6
line wrap: on
line diff
--- a/src/cpu/sparc/vm/jniTypes_sparc.hpp	Wed Feb 06 15:14:15 2013 +0100
+++ b/src/cpu/sparc/vm/jniTypes_sparc.hpp	Wed Feb 06 18:01:07 2013 -0800
@@ -112,6 +112,25 @@
                                                           return *(jdouble *)&jl; }
 #endif
 
+  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) {
+    jlong result = get_long(from + pos);
+    pos += 2;
+    return result;
+  }
+  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) {
+    jdouble result = get_double(from + pos);
+    pos += 2;
+    return result;
+  }
 };
 
 #endif // CPU_SPARC_VM_JNITYPES_SPARC_HPP