Lines Matching refs:self
38 void* dvmSelfVerificationShadowSpaceAlloc(Thread* self) in dvmSelfVerificationShadowSpaceAlloc() argument
40 self->shadowSpace = (ShadowSpace*) calloc(1, sizeof(ShadowSpace)); in dvmSelfVerificationShadowSpaceAlloc()
41 if (self->shadowSpace == NULL) in dvmSelfVerificationShadowSpaceAlloc()
44 self->shadowSpace->registerSpaceSize = REG_SPACE; in dvmSelfVerificationShadowSpaceAlloc()
45 self->shadowSpace->registerSpace = in dvmSelfVerificationShadowSpaceAlloc()
46 (int*) calloc(self->shadowSpace->registerSpaceSize, sizeof(int)); in dvmSelfVerificationShadowSpaceAlloc()
48 return self->shadowSpace->registerSpace; in dvmSelfVerificationShadowSpaceAlloc()
52 void dvmSelfVerificationShadowSpaceFree(Thread* self) in dvmSelfVerificationShadowSpaceFree() argument
54 free(self->shadowSpace->registerSpace); in dvmSelfVerificationShadowSpaceFree()
55 free(self->shadowSpace); in dvmSelfVerificationShadowSpaceFree()
65 Thread *self = dvmThreadSelf(); in dvmSelfVerificationSaveState() local
66 ShadowSpace *shadowSpace = self->shadowSpace; in dvmSelfVerificationSaveState()
75 self->threadId, shadowSpace->selfVerificationState); in dvmSelfVerificationSaveState()
140 Thread *self = dvmThreadSelf(); in dvmSelfVerificationRestoreState() local
141 ShadowSpace *shadowSpace = self->shadowSpace; in dvmSelfVerificationRestoreState()
154 self->threadId, shadowSpace->selfVerificationState); in dvmSelfVerificationRestoreState()
217 static void selfVerificationDumpState(const u2* pc, Thread* self) in selfVerificationDumpState() argument
219 ShadowSpace* shadowSpace = self->shadowSpace; in selfVerificationDumpState()
220 StackSaveArea* stackSave = SAVEAREA_FROM_FP(self->curFrame); in selfVerificationDumpState()
226 if (self->curFrame < shadowSpace->fp) { in selfVerificationDumpState()
229 frameBytes2 = (int) shadowSpace->fp - (int) self->curFrame - localRegs; in selfVerificationDumpState()
239 (int)self->curFrame); in selfVerificationDumpState()
249 static void selfVerificationDumpTrace(const u2* pc, Thread* self) in selfVerificationDumpTrace() argument
251 ShadowSpace* shadowSpace = self->shadowSpace; in selfVerificationDumpTrace()
252 StackSaveArea* stackSave = SAVEAREA_FROM_FP(self->curFrame); in selfVerificationDumpTrace()
284 static bool selfVerificationDebugInterp(const u2* pc, Thread* self, in selfVerificationDebugInterp() argument
287 ShadowSpace *shadowSpace = self->shadowSpace; in selfVerificationDebugInterp()
299 self->threadId, state); in selfVerificationDebugInterp()
300 selfVerificationDumpState(pc, self); in selfVerificationDebugInterp()
301 selfVerificationDumpTrace(pc, self); in selfVerificationDebugInterp()
324 LOGD("~~~ DbgIntp(%d): REGISTERS DIVERGENCE!", self->threadId); in selfVerificationDebugInterp()
325 selfVerificationDumpState(pc, self); in selfVerificationDebugInterp()
326 selfVerificationDumpTrace(pc, self); in selfVerificationDebugInterp()
340 if (self->curFrame < shadowSpace->fp) { in selfVerificationDebugInterp()
341 StackSaveArea* stackSave = SAVEAREA_FROM_FP(self->curFrame); in selfVerificationDebugInterp()
345 (int) self->curFrame - localRegs; in selfVerificationDebugInterp()
346 if (memcmp(((char*)self->curFrame)+localRegs, in selfVerificationDebugInterp()
349 self->threadId); in selfVerificationDebugInterp()
350 selfVerificationDumpState(pc, self); in selfVerificationDebugInterp()
351 selfVerificationDumpTrace(pc, self); in selfVerificationDebugInterp()
353 (int)self->curFrame, localRegs, frameBytes2); in selfVerificationDebugInterp()
354 selfVerificationPrintRegisters((int*)self->curFrame, in selfVerificationDebugInterp()
360 (int*)self->curFrame, in selfVerificationDebugInterp()
373 LOGD("~~~ DbgIntp(%d): MEMORY DIVERGENCE!", self->threadId); in selfVerificationDebugInterp()
376 selfVerificationDumpState(pc, self); in selfVerificationDebugInterp()
377 selfVerificationDumpTrace(pc, self); in selfVerificationDebugInterp()
394 LOGD("~~~ DbgIntp(%d): CONTROL DIVERGENCE!", self->threadId); in selfVerificationDebugInterp()
397 selfVerificationDumpState(pc, self); in selfVerificationDebugInterp()
398 selfVerificationDumpTrace(pc, self); in selfVerificationDebugInterp()
708 int dvmCheckJit(const u2* pc, Thread* self, InterpState* interpState, in dvmCheckJit() argument
922 self->inJitCodeCache = 0; in dvmCheckJit()
934 if (selfVerificationDebugInterp(pc, self, interpState)) { in dvmCheckJit()
1048 bool dvmJitCheckTraceRequest(Thread* self, InterpState* interpState) in dvmJitCheckTraceRequest() argument