Lines Matching defs:to

17  * 2 along with this work; if not, write to the Free Software Foundation,
29 // This file holds platform-dependent routines used to write primitive
30 // 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
47 // Ints are stored in native format in one JavaCallArgument slot at *to.
48 static inline void put_int(jint from, intptr_t *to) {
49 *(jint*) to = from;
52 static inline void put_int(jint from, intptr_t *to, int& pos) {
53 *(jint*) (to + pos++) = from;
56 static inline void put_int(jint *from, intptr_t *to, int& pos) {
57 *(jint*) (to + pos++) = *from;
60 // Longs are stored in native format in one JavaCallArgument slot at *(to+1).
61 static inline void put_long(jlong from, intptr_t *to) {
62 *(jlong*) (to + 1) = from;
65 static inline void put_long(jlong from, intptr_t *to, int& pos) {
66 *(jlong*) (to + 1 + pos) = from;
70 static inline void put_long(jlong *from, intptr_t *to, int& pos) {
71 *(jlong*) (to + 1 + pos) = *from;
75 // Oops are stored in native format in one JavaCallArgument slot at *to.
76 static inline void put_obj(oop from, intptr_t *to) {
77 *(oop*) to = from;
80 static inline void put_obj(oop from, intptr_t *to, int& pos) {
81 *(oop*) (to + pos++) = from;
84 static inline void put_obj(oop *from, intptr_t *to, int& pos) {
85 *(oop*) (to + pos++) = *from;
88 // Floats are stored in native format in one JavaCallArgument slot at *to.
89 static inline void put_float(jfloat from, intptr_t *to) {
90 *(jfloat*) to = from;
93 static inline void put_float(jfloat from, intptr_t *to, int& pos) {
94 *(jfloat*) (to + pos++) = from;
97 static inline void put_float(jfloat *from, intptr_t *to, int& pos) {
98 *(jfloat*) (to + pos++) = *from;
102 // slot at *(to+1).
103 static inline void put_double(jdouble from, intptr_t *to) {
104 *(jdouble*) (to + 1) = from;
107 static inline void put_double(jdouble from, intptr_t *to, int& pos) {
108 *(jdouble*) (to + 1 + pos) = from;
112 static inline void put_double(jdouble *from, intptr_t *to, int& pos) {
113 *(jdouble*) (to + 1 + pos) = *from;
119 // No need to worry about alignment on z/Architecture.