/dalvik/tests/023-many-interfaces/src/ |
D | ManyInterfaces.java | 176 ManyInterfaces obj = new ManyInterfaces(); in run() local 192 testIface001(obj, iter); in run() 197 testIface049(obj, iter); in run() 202 testIface099(obj, iter); in run() 207 testVirt001(obj, iter); in run() 212 testVirt049(obj, iter); in run() 217 testVirt099(obj, iter); in run() 222 testInstance001(obj, iter); in run() 227 testInstance049(obj, iter); in run() 232 testInstance099(obj, iter); in run() [all …]
|
/dalvik/vm/alloc/ |
D | Verify.c | 25 Object *obj = *(Object **)pObj; in dumpReferencesVisitor() local 27 if (lookingFor != NULL && lookingFor == obj) { in dumpReferencesVisitor() 34 Object *obj = arg; in dumpReferencesCallback() local 35 if (ptr == obj) { in dumpReferencesCallback() 36 LOGD("skipping %p == %p", ptr, obj); in dumpReferencesCallback() 39 dvmVisitObject(dumpReferencesVisitor, ptr, &obj); in dumpReferencesCallback() 40 if (obj == NULL) { in dumpReferencesCallback() 48 Object *obj = *(Object **)ptr; in dumpReferencesRootVisitor() local 50 if (obj == lookingFor) { in dumpReferencesRootVisitor() 58 static void dumpReferences(const Object *obj) in dumpReferences() argument [all …]
|
D | VisitInlines.h | 23 static void visitFields(Visitor *visitor, Object *obj, void *arg) in visitFields() argument 26 assert(obj != NULL); in visitFields() 27 assert(obj->clazz != NULL); in visitFields() 28 if (obj->clazz->refOffsets != CLASS_WALK_SUPER) { in visitFields() 29 size_t refOffsets = obj->clazz->refOffsets; in visitFields() 33 Object **ref = BYTE_OFFSET(obj, offset); in visitFields() 39 for (clazz = obj->clazz; clazz != NULL; clazz = clazz->super) { in visitFields() 44 Object **ref = BYTE_OFFSET(obj, offset); in visitFields() 87 static void visitClassObject(Visitor *visitor, Object *obj, void *arg) in visitClassObject() argument 93 assert(obj != NULL); in visitClassObject() [all …]
|
D | MarkSweep.c | 50 static inline long isMarked(const void *obj, const GcMarkContext *ctx) in isMarked() argument 52 return dvmHeapBitmapIsObjectBitSet(ctx->bitmap, obj); in isMarked() 88 #define MARK_STACK_PUSH(stack, obj) \ argument 90 *--(stack).top = (obj); \ 105 static long setAndReturnMarkBit(GcMarkContext *ctx, const void *obj) in setAndReturnMarkBit() argument 107 return dvmHeapBitmapSetAndReturnObjectBit(ctx->bitmap, obj); in setAndReturnMarkBit() 110 static void markObjectNonNull(const Object *obj, GcMarkContext *ctx, in markObjectNonNull() argument 114 assert(obj != NULL); in markObjectNonNull() 115 assert(dvmIsValidObject(obj)); in markObjectNonNull() 117 if (obj < (Object *)ctx->immuneLimit) { in markObjectNonNull() [all …]
|
D | CardTable.c | 143 static bool isObjectDirty(const Object *obj) in isObjectDirty() argument 145 assert(obj != NULL); in isObjectDirty() 146 assert(dvmIsValidObject(obj)); in isObjectDirty() 147 u1 *card = dvmCardFromAddr(obj); in isObjectDirty() 165 Object *obj; in countWhiteReferenceVisitor() local 169 obj = *(Object **)addr; in countWhiteReferenceVisitor() 170 if (obj == NULL) { in countWhiteReferenceVisitor() 173 assert(dvmIsValidObject(obj)); in countWhiteReferenceVisitor() 175 if (dvmHeapBitmapIsObjectBitSet(ctx->markBits, obj)) { in countWhiteReferenceVisitor() 185 static bool isReferentUnmarked(const Object *obj, in isReferentUnmarked() argument [all …]
|
D | Alloc.c | 89 Object* obj; in createStockException() local 105 obj = dvmAllocObject(clazz, ALLOC_DEFAULT); in createStockException() 106 if (obj == NULL) in createStockException() 115 dvmReleaseTrackedAlloc(obj, self); in createStockException() 121 dvmCallMethod(self, init, obj, &unused, msgStr); in createStockException() 124 dvmReleaseTrackedAlloc(obj, self); in createStockException() 129 return obj; in createStockException() 202 Object* dvmCloneObject(Object* obj) in dvmCloneObject() argument 208 assert(dvmIsValidObject(obj)); in dvmCloneObject() 214 assert(obj->clazz != gDvm.classJavaLangClass); in dvmCloneObject() [all …]
|
D | Alloc.h | 78 void dvmAddTrackedAlloc(Object* obj, Thread* self); 87 void dvmReleaseTrackedAlloc(Object* obj, Thread* self); 92 bool dvmIsValidObject(const Object* obj); 99 Object* dvmCloneObject(Object* obj); 111 INLINE int dvmValidateObject(Object* obj) in dvmValidateObject() argument 113 if (obj == NULL) { in dvmValidateObject() 118 if (!dvmIsValidObject(obj)) { in dvmValidateObject() 127 if (obj->clazz == NULL || ((u4) obj->clazz) <= 65536) { in dvmValidateObject() 141 size_t dvmObjectSizeInHeap(const Object* obj);
|
D | WriteBarrier.h | 29 INLINE void dvmWriteBarrierField(const Object *obj, void *addr) in dvmWriteBarrierField() argument 31 dvmMarkCard(obj); in dvmWriteBarrierField() 37 INLINE void dvmWriteBarrierObject(const Object *obj) in dvmWriteBarrierObject() argument 39 dvmMarkCard(obj); in dvmWriteBarrierObject() 47 INLINE void dvmWriteBarrierArray(const ArrayObject *obj, in dvmWriteBarrierArray() argument 50 dvmMarkCard((Object *)obj); in dvmWriteBarrierArray()
|
D | HeapBitmap.h | 194 dvmHeapBitmapCoversAddress(const HeapBitmap *hb, const void *obj) in HB_INLINE_PROTO() argument 199 if (obj != NULL) { in HB_INLINE_PROTO() 200 const uintptr_t offset = (uintptr_t)obj - hb->base; in HB_INLINE_PROTO() 212 _heapBitmapModifyObjectBit(HeapBitmap *hb, const void *obj, in HB_INLINE_PROTO() argument 216 const uintptr_t offset = (uintptr_t)obj - hb->base; in HB_INLINE_PROTO() 221 assert((uintptr_t)obj >= hb->base); in HB_INLINE_PROTO() 225 if ((uintptr_t)obj > hb->max) { in HB_INLINE_PROTO() 226 hb->max = (uintptr_t)obj; in HB_INLINE_PROTO() 252 dvmHeapBitmapSetAndReturnObjectBit(HeapBitmap *hb, const void *obj) in HB_INLINE_PROTO() argument 255 return _heapBitmapModifyObjectBit(hb, obj, true, true); in HB_INLINE_PROTO() [all …]
|
D | Copying.c | 145 static void scavengeReference(Object **obj); 149 static size_t objectSize(const Object *obj); 150 static void scavengeDataObject(Object *obj); 865 static void pinObject(const Object *obj) in pinObject() argument 867 promoteBlockByAddr(gDvm.gcHeap->heapSource, obj); in pinObject() 901 static int isPermanentString(const StringObject *obj) { in isPermanentString() argument 902 return (uintptr_t)obj & 0x1; in isPermanentString() 905 static void* getPermanentString(const StringObject *obj) in getPermanentString() argument 907 return (void *)((uintptr_t)obj & ~0x1); in getPermanentString() 921 static void scavengeClassObject(ClassObject *obj) in scavengeClassObject() argument [all …]
|
D | GC.h | 46 void dvmMarkObjectNonNull(const Object *obj); 54 #define dvmMarkObject(obj) \ argument 56 Object *DMO_obj_ = (Object *)(obj); \ 70 #define dvmMarkIfObject(obj) \ argument 72 Object *DMIO_obj_ = (Object *)(obj); \
|
/dalvik/tests/003-omnibus-opcodes/src/ |
D | Monitor.java | 12 Object obj = new Object(); in subTest() local 13 synchronized (obj) { in subTest() 15 obj = null; // does NOT cause a failure on exit in subTest() 16 assert(obj == null); in subTest() 24 Object obj = null; in run() local 27 synchronized (obj) { in run() 35 obj = new Object(); in run() 36 synchronized (obj) { in run()
|
/dalvik/vm/oo/ |
D | ObjectInlines.h | 27 INLINE void dvmSetObjectArrayElement(const ArrayObject* obj, int index, in dvmSetObjectArrayElement() argument 29 ((Object **)(obj)->contents)[index] = val; in dvmSetObjectArrayElement() 31 dvmWriteBarrierArray(obj, index, index + 1); in dvmSetObjectArrayElement() 50 INLINE JValue* dvmFieldPtr(const Object* obj, int offset) { in dvmFieldPtr() argument 51 return ((JValue*)BYTE_OFFSET(obj, offset)); in dvmFieldPtr() 54 INLINE bool dvmGetFieldBoolean(const Object* obj, int offset) { in dvmGetFieldBoolean() argument 55 return ((JValue*)BYTE_OFFSET(obj, offset))->z; in dvmGetFieldBoolean() 57 INLINE s1 dvmGetFieldByte(const Object* obj, int offset) { in dvmGetFieldByte() argument 58 return ((JValue*)BYTE_OFFSET(obj, offset))->b; in dvmGetFieldByte() 60 INLINE s2 dvmGetFieldShort(const Object* obj, int offset) { in dvmGetFieldShort() argument [all …]
|
/dalvik/vm/mterp/c/ |
D | OP_APUT_OBJECT.c | 4 Object* obj; in HANDLE_OPCODE() local 20 obj = (Object*) GET_REGISTER(vdst); in HANDLE_OPCODE() 21 if (obj != NULL) { in HANDLE_OPCODE() 22 if (!checkForNull(obj)) in HANDLE_OPCODE() 24 if (!dvmCanPutArrayElement(obj->clazz, arrayObj->obj.clazz)) { in HANDLE_OPCODE() 26 obj->clazz->descriptor, obj, in HANDLE_OPCODE() 27 arrayObj->obj.clazz->descriptor, arrayObj); in HANDLE_OPCODE()
|
D | OP_MONITOR_EXIT.c | 3 Object* obj; in HANDLE_OPCODE() local 10 obj = (Object*)GET_REGISTER(vsrc1); in HANDLE_OPCODE() 11 if (!checkForNull(obj)) { in HANDLE_OPCODE() 22 ILOGV("+ unlocking %p %s\n", obj, obj->clazz->descriptor); in HANDLE_OPCODE() 23 if (!dvmUnlockObject(self, obj)) { in HANDLE_OPCODE()
|
D | OP_MONITOR_ENTER.c | 3 Object* obj; in HANDLE_OPCODE() local 8 obj = (Object*)GET_REGISTER(vsrc1); in HANDLE_OPCODE() 9 if (!checkForNullExportPC(obj, fp, pc)) in HANDLE_OPCODE() 11 ILOGV("+ locking %p %s\n", obj, obj->clazz->descriptor); in HANDLE_OPCODE() 13 dvmLockObject(self, obj); in HANDLE_OPCODE()
|
D | OP_CHECK_CAST.c | 4 Object* obj; in HANDLE_OPCODE() local 12 obj = (Object*)GET_REGISTER(vsrc1); in HANDLE_OPCODE() 13 if (obj != NULL) { in HANDLE_OPCODE() 15 if (!checkForNull(obj)) in HANDLE_OPCODE() 24 if (!dvmInstanceof(obj->clazz, clazz)) { in HANDLE_OPCODE() 26 "Ljava/lang/ClassCastException;", obj->clazz->descriptor); in HANDLE_OPCODE()
|
D | OP_THROW.c | 3 Object* obj; in HANDLE_OPCODE() local 14 obj = (Object*) GET_REGISTER(vsrc1); in HANDLE_OPCODE() 15 if (!checkForNull(obj)) { in HANDLE_OPCODE() 20 dvmSetException(self, obj); in HANDLE_OPCODE()
|
D | OP_INSTANCE_OF.c | 4 Object* obj; in HANDLE_OPCODE() local 11 obj = (Object*)GET_REGISTER(vsrc1); in HANDLE_OPCODE() 12 if (obj == NULL) { in HANDLE_OPCODE() 16 if (!checkForNullExportPC(obj, fp, pc)) in HANDLE_OPCODE() 26 SET_REGISTER(vdst, dvmInstanceof(obj->clazz, clazz)); in HANDLE_OPCODE()
|
/dalvik/vm/native/ |
D | sun_misc_Unsafe.c | 66 Object* obj = (Object*) args[1]; in Dalvik_sun_misc_Unsafe_compareAndSwapInt() local 70 volatile int32_t* address = (volatile int32_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_compareAndSwapInt() 86 Object* obj = (Object*) args[1]; in Dalvik_sun_misc_Unsafe_compareAndSwapLong() local 90 volatile int64_t* address = (volatile int64_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_compareAndSwapLong() 107 Object* obj = (Object*) args[1]; in Dalvik_sun_misc_Unsafe_compareAndSwapObject() local 111 int32_t* address = (int32_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_compareAndSwapObject() 116 dvmWriteBarrierField(obj, address); in Dalvik_sun_misc_Unsafe_compareAndSwapObject() 127 Object* obj = (Object*) args[1]; in Dalvik_sun_misc_Unsafe_getIntVolatile() local 129 volatile int32_t* address = (volatile int32_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_getIntVolatile() 142 Object* obj = (Object*) args[1]; in Dalvik_sun_misc_Unsafe_putIntVolatile() local [all …]
|
/dalvik/vm/ |
D | Sync.c | 66 static void updateDeadlockPrediction(Thread* self, Object* obj); 67 static void removeCollectedObject(Object* obj); 120 Object* obj; /* what object are we part of [debug only] */ member 163 Monitor* dvmCreateMonitor(Object* obj) in dvmCreateMonitor() argument 176 mon->obj = obj; in dvmCreateMonitor() 228 if (mon->obj != NULL) in dvmDumpMonitorInfo() 245 return mon->obj; in dvmGetMonitorObject() 251 static u4 lockOwner(Object* obj) in lockOwner() argument 256 assert(obj != NULL); in lockOwner() 261 lock = obj->lock; in lockOwner() [all …]
|
D | Sync.h | 90 void dvmLockObject(struct Thread* self, struct Object* obj); 95 bool dvmUnlockObject(struct Thread* self, struct Object* obj); 100 void dvmObjectWait(struct Thread* self, struct Object* obj, 102 void dvmObjectNotify(struct Thread* self, struct Object* obj); 103 void dvmObjectNotifyAll(struct Thread* self, struct Object* obj); 108 u4 dvmIdentityHashCode(struct Object* obj); 123 Monitor* dvmCreateMonitor(struct Object* obj); 149 struct Thread* dvmGetObjectLockHolder(struct Object* obj); 154 bool dvmHoldsLock(struct Thread* thread, struct Object* obj);
|
/dalvik/tests/064-field-access/src/ |
D | Main.java | 51 public Object getValue(Field field, Object obj, char type, in getValue() argument 58 result = new Boolean(field.getBoolean(obj)); in getValue() 61 result = new Byte(field.getByte(obj)); in getValue() 64 result = new Short(field.getShort(obj)); in getValue() 67 result = new Character(field.getChar(obj)); in getValue() 70 result = new Integer(field.getInt(obj)); in getValue() 73 result = new Long(field.getLong(obj)); in getValue() 76 result = new Float(field.getFloat(obj)); in getValue() 79 result = new Double(field.getDouble(obj)); in getValue() 82 result = field.get(obj); in getValue() [all …]
|
/dalvik/dx/src/com/android/dx/rop/cst/ |
D | CstInteger.java | 65 CstInteger obj = cache[idx]; in make() local 67 if ((obj != null) && (obj.getValue() == value)) { in make() 68 return obj; in make() 71 obj = new CstInteger(value); in make() 72 cache[idx] = obj; in make() 73 return obj; in make()
|
/dalvik/ |
D | CleanSpec.mk | 47 $(call add-clean-step, rm -rf $(OUT)/obj/SHARED_LIBRARIES/libdvm*) 48 $(call add-clean-step, rm -rf $(OUT)/obj/SHARED_LIBRARIES/libdvm*) 49 $(call add-clean-step, rm -rf $(OUT)/obj/SHARED_LIBRARIES/libdvm*) 50 $(call add-clean-step, rm -rf $(OUT)/obj/SHARED_LIBRARIES/libdvm*) 51 $(call add-clean-step, rm -rf $(OUT)/obj/SHARED_LIBRARIES/libdvm*)
|