Lines Matching defs:to

16  * 2 along with this work; if not, write to the Free Software Foundation,
32 // This file holds platform-dependent routines used to write primitive jni
33 // types to the array of arguments passed into JavaCalls::call
37 // to a java stack slot array to be passed as an argument to JavaCalls:calls.
47 static inline void put_int2 (jint *from, jint *to) { to[0] = from[0]; to[1] = from[1]; }
48 static inline void put_int2 (jint *from, jint *to, int& pos) { put_int2 (from, (jint *)((intptr_t *)to + pos)); pos += 2; }
49 static inline void put_int2r(jint *from, jint *to) { to[0] = from[1]; to[1] = from[0]; }
50 static inline void put_int2r(jint *from, jint *to, int& pos) { put_int2r(from, (jint *)((intptr_t *)to + pos)); pos += 2; }
53 // Ints are stored in native format in one JavaCallArgument slot at *to.
54 static inline void put_int(jint from, intptr_t *to) { *(jint *)(to + 0 ) = from; }
55 static inline void put_int(jint from, intptr_t *to, int& pos) { *(jint *)(to + pos++) = from; }
56 static inline void put_int(jint *from, intptr_t *to, int& pos) { *(jint *)(to + pos++) = *from; }
58 // Longs are stored in native format in one JavaCallArgument slot at *(to+1).
59 static inline void put_long(jlong from, intptr_t *to) { *(jlong *)(to + 1 + 0) = from; }
60 static inline void put_long(jlong from, intptr_t *to, int& pos) { *(jlong *)(to + 1 + pos) = from; pos += 2; }
61 static inline void put_long(jlong *from, intptr_t *to, int& pos) { *(jlong *)(to + 1 + pos) = *from; pos += 2; }
63 // Oops are stored in native format in one JavaCallArgument slot at *to.
64 static inline void put_obj(oop from, intptr_t *to) { *(oop *)(to + 0 ) = from; }
65 static inline void put_obj(oop from, intptr_t *to, int& pos) { *(oop *)(to + pos++) = from; }
66 static inline void put_obj(oop *from, intptr_t *to, int& pos) { *(oop *)(to + pos++) = *from; }
68 // Floats are stored in native format in one JavaCallArgument slot at *to.
69 static inline void put_float(jfloat from, intptr_t *to) { *(jfloat *)(to + 0 ) = from; }
70 static inline void put_float(jfloat from, intptr_t *to, int& pos) { *(jfloat *)(to + pos++) = from; }
71 static inline void put_float(jfloat *from, intptr_t *to, int& pos) { *(jfloat *)(to + pos++) = *from; }
73 // Doubles are stored in native word format in one JavaCallArgument slot at *(to+1).
74 static inline void put_double(jdouble from, intptr_t *to) { *(jdouble *)(to + 1 + 0) = from; }
75 static inline void put_double(jdouble from, intptr_t *to, int& pos) { *(jdouble *)(to + 1 + pos) = from; pos += 2; }
76 static inline void put_double(jdouble *from, intptr_t *to, int& pos) { *(jdouble *)(to + 1 + pos) = *from; pos += 2; }