Lines Matching defs:to

17  * 2 along with this work; if not, write to the Free Software Foundation,
33 // This file holds platform-dependent routines used to write primitive jni
34 // types to the array of arguments passed into JavaCalls::call
38 // to a java stack slot array to be passed as an argument to JavaCalls:calls.
47 // Ints are stored in native format in one JavaCallArgument slot at *to.
48 static inline void put_int(jint from, intptr_t *to) { *(jint *)(to + 0 ) = from; }
49 static inline void put_int(jint from, intptr_t *to, int& pos) { *(jint *)(to + pos++) = from; }
50 static inline void put_int(jint *from, intptr_t *to, int& pos) { *(jint *)(to + pos++) = *from; }
53 // *(to+1).
54 static inline void put_long(jlong from, intptr_t *to) {
55 *(jlong*) (to + 1) = from;
58 static inline void put_long(jlong from, intptr_t *to, int& pos) {
59 *(jlong*) (to + 1 + pos) = from;
63 static inline void put_long(jlong *from, intptr_t *to, int& pos) {
64 *(jlong*) (to + 1 + pos) = *from;
68 // Oops are stored in native format in one JavaCallArgument slot at *to.
69 static inline void put_obj(oop from, intptr_t *to) { *(oop *)(to + 0 ) = from; }
70 static inline void put_obj(oop from, intptr_t *to, int& pos) { *(oop *)(to + pos++) = from; }
71 static inline void put_obj(oop *from, intptr_t *to, int& pos) { *(oop *)(to + pos++) = *from; }
73 // Floats are stored in native format in one JavaCallArgument slot at *to.
74 static inline void put_float(jfloat from, intptr_t *to) { *(jfloat *)(to + 0 ) = from; }
75 static inline void put_float(jfloat from, intptr_t *to, int& pos) { *(jfloat *)(to + pos++) = from; }
76 static inline void put_float(jfloat *from, intptr_t *to, int& pos) { *(jfloat *)(to + pos++) = *from; }
81 // slot at *(to+1).
82 static inline void put_double(jdouble from, intptr_t *to) {
83 *(jdouble*) (to + 1) = from;
86 static inline void put_double(jdouble from, intptr_t *to, int& pos) {
87 *(jdouble*) (to + 1 + pos) = from;
91 static inline void put_double(jdouble *from, intptr_t *to, int& pos) {
92 *(jdouble*) (to + 1 + pos) = *from;
98 // No need to worry about alignment on Intel.