Lines Matching refs:offset
190 * Given an offset, return the bit number which would encode that offset.
197 * Is the given offset too large to be encoded?
202 * Return a single bit, encoding the offset.
203 * Undefined if the offset is too large, as defined above.
208 * Return an offset, given a bit number as returned from CLZ.
491 * For concrete virtual methods, this is the offset of the method
494 * For abstract methods in an interface class, this is the offset
589 * This field indicates the byte offset from the beginning of the
659 * Find a field and return the byte offset from the object pointer. Only
675 * Field access functions. Pass in the word offset from Field->byteOffset.
685 INLINE JValue* dvmFieldPtr(const Object* obj, int offset) {
686 return ((JValue*)BYTE_OFFSET(obj, offset));
689 INLINE bool dvmGetFieldBoolean(const Object* obj, int offset) {
690 return ((JValue*)BYTE_OFFSET(obj, offset))->z;
692 INLINE s1 dvmGetFieldByte(const Object* obj, int offset) {
693 return ((JValue*)BYTE_OFFSET(obj, offset))->b;
695 INLINE s2 dvmGetFieldShort(const Object* obj, int offset) {
696 return ((JValue*)BYTE_OFFSET(obj, offset))->s;
698 INLINE u2 dvmGetFieldChar(const Object* obj, int offset) {
699 return ((JValue*)BYTE_OFFSET(obj, offset))->c;
701 INLINE s4 dvmGetFieldInt(const Object* obj, int offset) {
702 return ((JValue*)BYTE_OFFSET(obj, offset))->i;
704 INLINE s8 dvmGetFieldLong(const Object* obj, int offset) {
705 return ((JValue*)BYTE_OFFSET(obj, offset))->j;
707 INLINE float dvmGetFieldFloat(const Object* obj, int offset) {
708 return ((JValue*)BYTE_OFFSET(obj, offset))->f;
710 INLINE double dvmGetFieldDouble(const Object* obj, int offset) {
711 return ((JValue*)BYTE_OFFSET(obj, offset))->d;
713 INLINE Object* dvmGetFieldObject(const Object* obj, int offset) {
714 return ((JValue*)BYTE_OFFSET(obj, offset))->l;
717 INLINE void dvmSetFieldBoolean(Object* obj, int offset, bool val) {
718 ((JValue*)BYTE_OFFSET(obj, offset))->i = val;
720 INLINE void dvmSetFieldByte(Object* obj, int offset, s1 val) {
721 ((JValue*)BYTE_OFFSET(obj, offset))->i = val;
723 INLINE void dvmSetFieldShort(Object* obj, int offset, s2 val) {
724 ((JValue*)BYTE_OFFSET(obj, offset))->i = val;
726 INLINE void dvmSetFieldChar(Object* obj, int offset, u2 val) {
727 ((JValue*)BYTE_OFFSET(obj, offset))->i = val;
729 INLINE void dvmSetFieldInt(Object* obj, int offset, s4 val) {
730 ((JValue*)BYTE_OFFSET(obj, offset))->i = val;
732 INLINE void dvmSetFieldLong(Object* obj, int offset, s8 val) {
733 ((JValue*)BYTE_OFFSET(obj, offset))->j = val;
735 INLINE void dvmSetFieldFloat(Object* obj, int offset, float val) {
736 ((JValue*)BYTE_OFFSET(obj, offset))->f = val;
738 INLINE void dvmSetFieldDouble(Object* obj, int offset, double val) {
739 ((JValue*)BYTE_OFFSET(obj, offset))->d = val;
741 INLINE void dvmSetFieldObject(Object* obj, int offset, Object* val) {
742 ((JValue*)BYTE_OFFSET(obj, offset))->l = val;