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.
49 static inline void put_int2r(jint *from, intptr_t *to) { *(jint *)(to++) = from[1];
50 *(jint *)(to ) = from[0]; }
51 static inline void put_int2r(jint *from, intptr_t *to, int& pos) { put_int2r(from, to + pos); pos += 2; }
55 // Ints are stored in native format in one JavaCallArgument slot at *to.
56 static inline void put_int(jint from, intptr_t *to) { *(jint *)(to + 0 ) = from; }
57 static inline void put_int(jint from, intptr_t *to, int& pos) { *(jint *)(to + pos++) = from; }
58 static inline void put_int(jint *from, intptr_t *to, int& pos) { *(jint *)(to + pos++) = *from; }
62 // *(to+1).
63 static inline void put_long(jlong from, intptr_t *to) {
64 *(jlong*) (to + 1) = from;
67 static inline void put_long(jlong from, intptr_t *to, int& pos) {
68 *(jlong*) (to + 1 + pos) = from;
72 static inline void put_long(jlong *from, intptr_t *to, int& pos) {
73 *(jlong*) (to + 1 + pos) = *from;
77 // Longs are stored in big-endian word format in two JavaCallArgument slots at *to.
78 // The high half is in *to and the low half in *(to+1).
79 static inline void put_long(jlong from, intptr_t *to) { put_int2r((jint *)&from, to); }
80 static inline void put_long(jlong from, intptr_t *to, int& pos) { put_int2r((jint *)&from, to, pos); }
81 static inline void put_long(jlong *from, intptr_t *to, int& pos) { put_int2r((jint *) from, to, pos); }
84 // Oops are stored in native format in one JavaCallArgument slot at *to.
85 static inline void put_obj(oop from, intptr_t *to) { *(oop *)(to + 0 ) = from; }
86 static inline void put_obj(oop from, intptr_t *to, int& pos) { *(oop *)(to + pos++) = from; }
87 static inline void put_obj(oop *from, intptr_t *to, int& pos) { *(oop *)(to + pos++) = *from; }
89 // Floats are stored in native format in one JavaCallArgument slot at *to.
90 static inline void put_float(jfloat from, intptr_t *to) { *(jfloat *)(to + 0 ) = from; }
91 static inline void put_float(jfloat from, intptr_t *to, int& pos) { *(jfloat *)(to + pos++) = from; }
92 static inline void put_float(jfloat *from, intptr_t *to, int& pos) { *(jfloat *)(to + pos++) = *from; }
98 // slot at *(to+1).
99 static inline void put_double(jdouble from, intptr_t *to) {
100 *(jdouble*) (to + 1) = from;
103 static inline void put_double(jdouble from, intptr_t *to, int& pos) {
104 *(jdouble*) (to + 1 + pos) = from;
108 static inline void put_double(jdouble *from, intptr_t *to, int& pos) {
109 *(jdouble*) (to + 1 + pos) = *from;
114 // Doubles are stored in big-endian word format in two JavaCallArgument slots at *to.
115 // The high half is in *to and the low half in *(to+1).
116 static inline void put_double(jdouble from, intptr_t *to) { put_int2r((jint *)&from, to); }
117 static inline void put_double(jdouble from, intptr_t *to, int& pos) { put_int2r((jint *)&from, to, pos); }
118 static inline void put_double(jdouble *from, intptr_t *to, int& pos) { put_int2r((jint *) from, to, pos); }
124 // No need to worry about alignment on Intel.