Home
last modified time | relevance | path

Searched refs:gDvmJit (Results 1 – 25 of 29) sorted by relevance

12

/dalvik/vm/compiler/
DCompiler.c27 return gDvmJit.compilerQueueLength; in workQueueLength()
32 assert(gDvmJit.compilerWorkQueue[gDvmJit.compilerWorkDequeueIndex].kind in workDequeue()
35 gDvmJit.compilerWorkQueue[gDvmJit.compilerWorkDequeueIndex]; in workDequeue()
36 gDvmJit.compilerWorkQueue[gDvmJit.compilerWorkDequeueIndex++].kind = in workDequeue()
38 if (gDvmJit.compilerWorkDequeueIndex == COMPILER_WORK_QUEUE_SIZE) { in workDequeue()
39 gDvmJit.compilerWorkDequeueIndex = 0; in workDequeue()
41 gDvmJit.compilerQueueLength--; in workDequeue()
42 if (gDvmJit.compilerQueueLength == 0) { in workDequeue()
43 dvmSignalCond(&gDvmJit.compilerQueueEmpty); in workDequeue()
47 if (gDvmJit.compilerQueueLength > gDvmJit.compilerMaxQueued) in workDequeue()
[all …]
DCompiler.h54 (gDvmJit.profile ? PROT_WRITE : 0))
61 dvmLockMutex(&gDvmJit.codeCacheProtectionLock); \
62 mprotect((void *) (((intptr_t) (addr)) & ~gDvmJit.pageSizeMask), \
63 (size) + (((intptr_t) (addr)) & gDvmJit.pageSizeMask), \
70 mprotect((void *) (((intptr_t) (addr)) & ~gDvmJit.pageSizeMask), \
71 (size) + (((intptr_t) (addr)) & gDvmJit.pageSizeMask), \
73 dvmUnlockMutex(&gDvmJit.codeCacheProtectionLock); \
77 (gDvmJit.includeSelectedOp != \
78 ((gDvmJit.opList[opcode >> 3] & (1 << (opcode & 0x7))) != 0))
DUtility.c220 gDvmJit.numCompilations, in dvmCompilerDumpStats()
221 gDvmJit.templateSize, in dvmCompilerDumpStats()
222 gDvmJit.codeCacheByteUsed - gDvmJit.templateSize); in dvmCompilerDumpStats()
225 LOGD("Compiler work queue length is %d/%d", gDvmJit.compilerQueueLength, in dvmCompilerDumpStats()
226 gDvmJit.compilerMaxQueued); in dvmCompilerDumpStats()
229 if (gDvmJit.methodStatsTable) { in dvmCompilerDumpStats()
230 dvmHashForeach(gDvmJit.methodStatsTable, dumpMethodStats, in dvmCompilerDumpStats()
DFrontend.c281 realMethodEntry = dvmHashTableLookup(gDvmJit.methodStatsTable, hashValue, in dvmCompilerAnalyzeMethodBody()
292 dvmHashTableLookup(gDvmJit.methodStatsTable, hashValue, in dvmCompilerAnalyzeMethodBody()
389 dvmHashTableLookup(gDvmJit.methodTable, hashValue, in filterMethodByCallGraph()
396 gDvmJit.includeSelectedMethod ? "white" : "black"); in filterMethodByCallGraph()
452 cUnit.printMe = gDvmJit.printMe; in dvmCompileTrace()
455 cUnit.executionCount = gDvmJit.profile; in dvmCompileTrace()
464 if (gDvmJit.methodTable) { in dvmCompileTrace()
480 dvmHashTableLookup(gDvmJit.methodTable, hashValue, in dvmCompileTrace()
489 dvmHashTableLookup(gDvmJit.methodTable, hashValue, in dvmCompileTrace()
497 dvmHashTableLookup(gDvmJit.methodTable, hashValue, in dvmCompileTrace()
[all …]
DInlineTransformation.c117 gDvmJit.invokePolyGetterInlined++; in inlineGetter()
123 gDvmJit.invokeMonoGetterInlined++; in inlineGetter()
194 gDvmJit.invokePolySetterInlined++; in inlineSetter()
204 gDvmJit.invokeMonoSetterInlined++; in inlineSetter()
/dalvik/vm/interp/
DJit.c279 gDvmJit.selfVerificationSpin = true; in selfVerificationSpinLoop()
280 while(gDvmJit.selfVerificationSpin) sleep(10); in selfVerificationSpinLoop()
429 gDvmJit.pProfTable = NULL; in dvmJitStopTranslationRequests()
436 gDvmJit.noChainExit[from]++; in dvmBumpNoChain()
442 gDvmJit.normalExit++; in dvmBumpNormal()
448 gDvmJit.puntExit++; in dvmBumpPunt()
460 if (gDvmJit.pJitEntryTable) { in dvmJitStats()
462 i < (int) gDvmJit.jitTableSize; in dvmJitStats()
464 if (gDvmJit.pJitEntryTable[i].dPC != 0) { in dvmJitStats()
466 if (gDvmJit.pJitEntryTable[i].codeAddress == in dvmJitStats()
[all …]
DInterpDefs.h246 return gDvmJit.pProfTable != NULL in dvmJitDebuggerOrProfilerActive()
258 (gDvmJit.codeCacheFull == true) || in dvmJitHideTranslation()
259 (gDvmJit.pProfTable == NULL); in dvmJitHideTranslation()
273 (gDvmJit.compilerQueueLength >= gDvmJit.compilerHighWater); in dvmJitStayInPortableInterpreter()
DJit.h82 return dvmJitHashMask( p, gDvmJit.jitTableMask ); in dvmJitHash()
/dalvik/vm/compiler/codegen/arm/armv5te-vfp/
DArchVariant.c52 gDvmJit.jitTableSize = 1 << 9; // 512 in dvmCompilerArchVariantInit()
53 gDvmJit.jitTableMask = gDvmJit.jitTableSize - 1; in dvmCompilerArchVariantInit()
54 gDvmJit.threshold = 200; in dvmCompilerArchVariantInit()
55 gDvmJit.codeCacheSize = 512*1024; in dvmCompilerArchVariantInit()
59 gDvmJit.blockingMode = true; in dvmCompilerArchVariantInit()
/dalvik/vm/compiler/codegen/arm/armv5te/
DArchVariant.c52 gDvmJit.jitTableSize = 1 << 9; // 512 in dvmCompilerArchVariantInit()
53 gDvmJit.jitTableMask = gDvmJit.jitTableSize - 1; in dvmCompilerArchVariantInit()
54 gDvmJit.threshold = 200; in dvmCompilerArchVariantInit()
55 gDvmJit.codeCacheSize = 512*1024; in dvmCompilerArchVariantInit()
59 gDvmJit.blockingMode = true; in dvmCompilerArchVariantInit()
/dalvik/vm/compiler/codegen/arm/armv7-a/
DArchVariant.c47 gDvmJit.jitTableSize = 1 << 12; // 4096 in dvmCompilerArchVariantInit()
48 gDvmJit.jitTableMask = gDvmJit.jitTableSize - 1; in dvmCompilerArchVariantInit()
49 gDvmJit.threshold = 40; in dvmCompilerArchVariantInit()
50 gDvmJit.codeCacheSize = 1024*1024; in dvmCompilerArchVariantInit()
54 gDvmJit.blockingMode = true; in dvmCompilerArchVariantInit()
/dalvik/vm/compiler/codegen/arm/armv7-a-neon/
DArchVariant.c47 gDvmJit.jitTableSize = 1 << 12; // 4096 in dvmCompilerArchVariantInit()
48 gDvmJit.jitTableMask = gDvmJit.jitTableSize - 1; in dvmCompilerArchVariantInit()
49 gDvmJit.threshold = 40; in dvmCompilerArchVariantInit()
50 gDvmJit.codeCacheSize = 1024*1024; in dvmCompilerArchVariantInit()
54 gDvmJit.blockingMode = true; in dvmCompilerArchVariantInit()
/dalvik/vm/native/
Ddalvik_system_VMRuntime.c192 gDvmJit.disableJit == false) { in Dalvik_dalvik_system_VMRuntime_startJitCompilation()
193 dvmLockMutex(&gDvmJit.compilerLock); in Dalvik_dalvik_system_VMRuntime_startJitCompilation()
194 gDvmJit.alreadyEnabledViaFramework = true; in Dalvik_dalvik_system_VMRuntime_startJitCompilation()
195 pthread_cond_signal(&gDvmJit.compilerQueueActivity); in Dalvik_dalvik_system_VMRuntime_startJitCompilation()
196 dvmUnlockMutex(&gDvmJit.compilerLock); in Dalvik_dalvik_system_VMRuntime_startJitCompilation()
214 gDvmJit.disableJit = true; in Dalvik_dalvik_system_VMRuntime_disableJitCompilation()
/dalvik/vm/compiler/codegen/arm/
DAssemble.c892 #define UPDATE_CODE_CACHE_PATCHES() (gDvmJit.codeCachePatches++)
1142 for (i = 0; i < size - gDvmJit.signatureBreakpointSize + 1; i++) { in matchSignatureBreakpoint()
1143 if (ptr[i] == gDvmJit.signatureBreakpoint[0]) { in matchSignatureBreakpoint()
1144 for (j = 1; j < gDvmJit.signatureBreakpointSize; j++) { in matchSignatureBreakpoint()
1145 if (ptr[i+j] != gDvmJit.signatureBreakpoint[j]) { in matchSignatureBreakpoint()
1149 if (j == gDvmJit.signatureBreakpointSize) { in matchSignatureBreakpoint()
1151 i*4, gDvmJit.signatureBreakpointSize); in matchSignatureBreakpoint()
1261 gDvmJit.profile ? (chainCellOffset - 4) : chainCellOffset; in dvmCompilerAssembleLIR()
1277 if (gDvmJit.codeCacheByteUsed + cUnit->totalSize > gDvmJit.codeCacheSize) { in dvmCompilerAssembleLIR()
1278 gDvmJit.codeCacheFull = true; in dvmCompilerAssembleLIR()
[all …]
DCodegenFactory.c328 (int) gDvmJit.codeCache + templateEntryOffsets[opCode], in genDispatchToHandler()
329 (int) gDvmJit.codeCache + templateEntryOffsets[opCode]); in genDispatchToHandler()
331 (int) gDvmJit.codeCache + templateEntryOffsets[opCode], in genDispatchToHandler()
332 (int) gDvmJit.codeCache + templateEntryOffsets[opCode]); in genDispatchToHandler()
DLocalOptimizations.c505 if (!(gDvmJit.disableOpt & (1 << kLoadStoreElimination))) { in dvmCompilerApplyLocalOptimizations()
509 if (!(gDvmJit.disableOpt & (1 << kLoadHoisting))) { in dvmCompilerApplyLocalOptimizations()
DCodegenDriver.c228 (int) gDvmJit.codeCache + templateEntryOffsets[opCode], in selfVerificationBranchInsertPass()
229 (int) gDvmJit.codeCache + templateEntryOffsets[opCode]); in selfVerificationBranchInsertPass()
231 (int) gDvmJit.codeCache + templateEntryOffsets[opCode], in selfVerificationBranchInsertPass()
232 (int) gDvmJit.codeCache + templateEntryOffsets[opCode]); in selfVerificationBranchInsertPass()
911 gDvmJit.returnOp++; in genReturnCommon()
1081 gDvmJit.invokeNative++; in genInvokeSingletonCommon()
1086 gDvmJit.invokeMonomorphic++; in genInvokeSingletonCommon()
1210 gDvmJit.invokePolymorphic++; in genInvokeVirtualCommon()
3106 gDvmJit.invokePolymorphic++; in handleFmt35c_3rc()
4086 if (gDvmJit.disableOpt & (1 << kTrackLiveTemps)) { in dvmCompilerMIR2LIR()
[all …]
DRallocUtil.c580 if (!(gDvmJit.disableOpt & (1 << kSuppressLoads))) { in dvmCompilerResetDefLoc()
592 if (!(gDvmJit.disableOpt & (1 << kSuppressLoads))) { in dvmCompilerResetDefLocWide()
/dalvik/vm/mterp/
DMterp.c81 glue->pJitProfTable = gDvmJit.pProfTable; in dvmMterpStd()
82 glue->ppJitProfTable = &gDvmJit.pProfTable; in dvmMterpStd()
83 glue->jitThreshold = gDvmJit.threshold; in dvmMterpStd()
/dalvik/vm/
DInit.c53 struct DvmJitGlobals gDvmJit; variable
590 gDvmJit.opList[startValue >> 3] |= in processXjitop()
613 gDvmJit.opList[i] = 0xff; in processXjitop()
625 gDvmJit.methodTable = dvmHashTableCreate(8, NULL); in processXjitmethod()
642 dvmHashTableLookup(gDvmJit.methodTable, hashValue, in processXjitmethod()
845 gDvmJit.runningInAndroidFramework = true; in dvmProcessOptions()
911 gDvmJit.blockingMode = true; in dvmProcessOptions()
913 gDvmJit.threshold = atoi(argv[i] + 15); in dvmProcessOptions()
915 gDvmJit.includeSelectedOp = true; in dvmProcessOptions()
917 gDvmJit.includeSelectedMethod = true; in dvmProcessOptions()
[all …]
DSignalCatcher.c231 gDvmJit.codeCacheFull = true; in handleSigUsr2()
DGlobals.h869 extern struct DvmJitGlobals gDvmJit;
DThread.c2665 if (gDvmJit.pJitEntryTable && retryCount > 0 && in waitForThreadSuspend()
2666 gDvmJit.hasNewChain && thread->inJitCodeCache) { in waitForThreadSuspend()
/dalvik/vm/mterp/armv5te/
Dfooter.S475 ldr r3, [rGLUE, #offGlue_ppJitProfTable] @ r3<-&gDvmJit.pJitProfTable
/dalvik/vm/mterp/out/
DInterpAsm-armv5te-vfp.S9860 ldr r3, [rGLUE, #offGlue_ppJitProfTable] @ r3<-&gDvmJit.pJitProfTable

12