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
34 // jni types to the array of arguments passed into JavaCalls::call.
37 // These functions write a java primitive type (in native format) to
38 // a java stack slot array to be passed as an argument to
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; }
59 // *(to+1).
60 static inline void put_long(jlong from, intptr_t *to) {
61 *(jlong*) (to + 1) = from;
64 static inline void put_long(jlong from, intptr_t *to, int& pos) {
65 *(jlong*) (to + 1 + pos) = from;
69 static inline void put_long(jlong *from, intptr_t *to, int& pos) {
70 *(jlong*) (to + 1 + pos) = *from;
74 // Oops are stored in native format in one JavaCallArgument slot at *to.
75 static inline void put_obj(oop from, intptr_t *to) { *(oop *)(to + 0 ) = from; }
76 static inline void put_obj(oop from, intptr_t *to, int& pos) { *(oop *)(to + pos++) = from; }
77 static inline void put_obj(oop *from, intptr_t *to, int& pos) { *(oop *)(to + pos++) = *from; }
79 // Floats are stored in native format in one JavaCallArgument slot at *to.
80 static inline void put_float(jfloat from, intptr_t *to) { *(jfloat *)(to + 0 ) = from; }
81 static inline void put_float(jfloat from, intptr_t *to, int& pos) { *(jfloat *)(to + pos++) = from; }
82 static inline void put_float(jfloat *from, intptr_t *to, int& pos) { *(jfloat *)(to + pos++) = *from; }
85 // slot at *(to+1).
86 static inline void put_double(jdouble from, intptr_t *to) {
87 *(jdouble*) (to + 1) = from;
90 static inline void put_double(jdouble from, intptr_t *to, int& pos) {
91 *(jdouble*) (to + 1 + pos) = from;
95 static inline void put_double(jdouble *from, intptr_t *to, int& pos) {
96 *(jdouble*) (to + 1 + pos) = *from;
102 // No need to worry about alignment on Intel.