Home | History | Annotate | Download | only in oo

Lines Matching refs:offset

37  * Field access functions.  Pass in the word offset from Field->byteOffset.
50 INLINE JValue* dvmFieldPtr(const Object* obj, int offset) {
51 return ((JValue*)BYTE_OFFSET(obj, offset));
54 INLINE bool dvmGetFieldBoolean(const Object* obj, int offset) {
55 return ((JValue*)BYTE_OFFSET(obj, offset))->z;
57 INLINE s1 dvmGetFieldByte(const Object* obj, int offset) {
58 return ((JValue*)BYTE_OFFSET(obj, offset))->b;
60 INLINE s2 dvmGetFieldShort(const Object* obj, int offset) {
61 return ((JValue*)BYTE_OFFSET(obj, offset))->s;
63 INLINE u2 dvmGetFieldChar(const Object* obj, int offset) {
64 return ((JValue*)BYTE_OFFSET(obj, offset))->c;
66 INLINE s4 dvmGetFieldInt(const Object* obj, int offset) {
67 return ((JValue*)BYTE_OFFSET(obj, offset))->i;
69 INLINE s8 dvmGetFieldLong(const Object* obj, int offset) {
70 return ((JValue*)BYTE_OFFSET(obj, offset))->j;
72 INLINE float dvmGetFieldFloat(const Object* obj, int offset) {
73 return ((JValue*)BYTE_OFFSET(obj, offset))->f;
75 INLINE double dvmGetFieldDouble(const Object* obj, int offset) {
76 return ((JValue*)BYTE_OFFSET(obj, offset))->d;
78 INLINE Object* dvmGetFieldObject(const Object* obj, int offset) {
79 return ((JValue*)BYTE_OFFSET(obj, offset))->l;
81 INLINE bool dvmGetFieldBooleanVolatile(const Object* obj, int offset) {
82 s4* ptr = &((JValue*)BYTE_OFFSET(obj, offset))->i;
85 INLINE s1 dvmGetFieldByteVolatile(const Object* obj, int offset) {
86 s4* ptr = &((JValue*)BYTE_OFFSET(obj, offset))->i;
89 INLINE s2 dvmGetFieldShortVolatile(const Object* obj, int offset) {
90 s4* ptr = &((JValue*)BYTE_OFFSET(obj, offset))->i;
93 INLINE u2 dvmGetFieldCharVolatile(const Object* obj, int offset) {
94 s4* ptr = &((JValue*)BYTE_OFFSET(obj, offset))->i;
97 INLINE s4 dvmGetFieldIntVolatile(const Object* obj, int offset) {
98 s4* ptr = &((JValue*)BYTE_OFFSET(obj, offset))->i;
101 INLINE float dvmGetFieldFloatVolatile(const Object* obj, int offset) {
103 s4* ptr = &((JValue*)BYTE_OFFSET(obj, offset))->i;
107 INLINE s8 dvmGetFieldLongVolatile(const Object* obj, int offset) {
108 const s8* addr = (const s8*)BYTE_OFFSET(obj, offset);
113 INLINE double dvmGetFieldDoubleVolatile(const Object* obj, int offset) {
115 const s8* addr = (const s8*)BYTE_OFFSET(obj, offset);
120 INLINE Object* dvmGetFieldObjectVolatile(const Object* obj, int offset) {
121 Object** ptr = &((JValue*)BYTE_OFFSET(obj, offset))->l;
125 INLINE void dvmSetFieldBoolean(Object* obj, int offset, bool val) {
126 ((JValue*)BYTE_OFFSET(obj, offset))->i = val;
128 INLINE void dvmSetFieldByte(Object* obj, int offset, s1 val) {
129 ((JValue*)BYTE_OFFSET(obj, offset))->i = val;
131 INLINE void dvmSetFieldShort(Object* obj, int offset, s2 val) {
132 ((JValue*)BYTE_OFFSET(obj, offset))->i = val;
134 INLINE void dvmSetFieldChar(Object* obj, int offset, u2 val) {
135 ((JValue*)BYTE_OFFSET(obj, offset))->i = val;
137 INLINE void dvmSetFieldInt(Object* obj, int offset, s4 val) {
138 ((JValue*)BYTE_OFFSET(obj, offset))->i = val;
140 INLINE void dvmSetFieldFloat(Object* obj, int offset, float val) {
141 ((JValue*)BYTE_OFFSET(obj, offset))->f = val;
143 INLINE void dvmSetFieldLong(Object* obj, int offset, s8 val) {
144 ((JValue*)BYTE_OFFSET(obj, offset))->j = val;
146 INLINE void dvmSetFieldDouble(Object* obj, int offset, double val) {
147 ((JValue*)BYTE_OFFSET(obj, offset))->d = val;
149 INLINE void dvmSetFieldObject(Object* obj, int offset, Object* val) {
150 JValue* lhs = (JValue*)BYTE_OFFSET(obj, offset);
156 INLINE void dvmSetFieldIntVolatile(Object* obj, int offset, s4 val) {
157 s4* ptr = &((JValue*)BYTE_OFFSET(obj, offset))->i;
167 INLINE void dvmSetFieldBooleanVolatile(Object* obj, int offset, bool val) {
168 dvmSetFieldIntVolatile(obj, offset, val);
170 INLINE void dvmSetFieldByteVolatile(Object* obj, int offset, s1 val) {
171 dvmSetFieldIntVolatile(obj, offset, val);
173 INLINE void dvmSetFieldShortVolatile(Object* obj, int offset, s2 val) {
174 dvmSetFieldIntVolatile(obj, offset, val);
176 INLINE void dvmSetFieldCharVolatile(Object* obj, int offset, u2 val) {
177 dvmSetFieldIntVolatile(obj, offset, val);
179 INLINE void dvmSetFieldFloatVolatile(Object* obj, int offset, float val) {
182 dvmSetFieldIntVolatile(obj, offset, alias.ival);
184 INLINE void dvmSetFieldLongVolatile(Object* obj, int offset, s8 val) {
185 s8* addr = (s8*)BYTE_OFFSET(obj, offset);
188 INLINE void dvmSetFieldDoubleVolatile(Object* obj, int offset, double val) {
191 dvmSetFieldLongVolatile(obj, offset, alias.lval);
193 INLINE void dvmSetFieldObjectVolatile(Object* obj, int offset, Object* val) {
194 Object** ptr = &((JValue*)BYTE_OFFSET(obj, offset))->l;