/art/runtime/ |
D | runtime-inl.h | 26 inline QuickMethodFrameInfo Runtime::GetRuntimeMethodFrameInfo(mirror::ArtMethod* method) { in GetRuntimeMethodFrameInfo() 32 if (method == GetCalleeSaveMethodUnchecked(Runtime::kRefsAndArgs)) { in GetRuntimeMethodFrameInfo() 33 return GetCalleeSaveMethodFrameInfo(Runtime::kRefsAndArgs); in GetRuntimeMethodFrameInfo() 34 } else if (method == GetCalleeSaveMethodUnchecked(Runtime::kSaveAll)) { in GetRuntimeMethodFrameInfo() 35 return GetCalleeSaveMethodFrameInfo(Runtime::kSaveAll); in GetRuntimeMethodFrameInfo() 37 DCHECK(method == GetCalleeSaveMethodUnchecked(Runtime::kRefsOnly)); in GetRuntimeMethodFrameInfo() 38 return GetCalleeSaveMethodFrameInfo(Runtime::kRefsOnly); in GetRuntimeMethodFrameInfo() 42 inline mirror::ArtMethod* Runtime::GetResolutionMethod() { in GetResolutionMethod() 47 inline mirror::ArtMethod* Runtime::GetImtConflictMethod() { in GetImtConflictMethod() 52 inline mirror::ArtMethod* Runtime::GetImtUnimplementedMethod() { in GetImtUnimplementedMethod() [all …]
|
D | runtime.cc | 96 const char* Runtime::kDefaultInstructionSetFeatures = 98 Runtime* Runtime::instance_ = NULL; 100 Runtime::Runtime() in Runtime() function in art::Runtime 154 Runtime::~Runtime() { in ~Runtime() 222 if (Runtime::Current() == NULL) { in Dump() 257 Runtime* runtime = Runtime::Current(); in DumpAllThreads() 276 void Runtime::Abort() { in Abort() 292 if (Runtime::Current() != NULL && Runtime::Current()->abort_ != NULL) { in Abort() 294 Runtime::Current()->abort_(); in Abort() 315 void Runtime::PreZygoteFork() { in PreZygoteFork() [all …]
|
/art/runtime/entrypoints/quick/ |
D | quick_trampoline_entrypoints_test.cc | 29 Runtime::CalleeSaveType type) in CreateCalleeSaveMethod() 31 Runtime* r = Runtime::Current(); in CreateCalleeSaveMethod() 45 static void CheckFrameSize(InstructionSet isa, Runtime::CalleeSaveType type, uint32_t save_size) in CheckFrameSize() 54 static void CheckPCOffset(InstructionSet isa, Runtime::CalleeSaveType type, size_t pc_offset) in CheckPCOffset() 72 CheckFrameSize(isa, Runtime::kRefsAndArgs, GetCalleeSaveFrameSize(isa, Runtime::kRefsAndArgs)); \ in TEST_F() 73 CheckFrameSize(isa, Runtime::kRefsOnly, GetCalleeSaveFrameSize(isa, Runtime::kRefsOnly)); \ in TEST_F() 74 CheckFrameSize(isa, Runtime::kSaveAll, GetCalleeSaveFrameSize(isa, Runtime::kSaveAll)) in TEST_F() 99 CheckPCOffset(kRuntimeISA, Runtime::kRefsAndArgs, in TEST_F() 100 GetCalleeSavePCOffset(kRuntimeISA, Runtime::kRefsAndArgs)); in TEST_F() 101 CheckPCOffset(kRuntimeISA, Runtime::kRefsOnly, in TEST_F() [all …]
|
D | quick_instrumentation_entrypoints.cc | 33 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsAndArgs); in artInstrumentationMethodEntryFromCode() 34 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in artInstrumentationMethodEntryFromCode() 41 DCHECK((result != Runtime::Current()->GetClassLinker()->GetQuickToInterpreterBridgeTrampoline()) in artInstrumentationMethodEntryFromCode() 42 || !Runtime::Current()->GetHeap()->HasImageSpace()); in artInstrumentationMethodEntryFromCode() 60 Runtime* runtime = Runtime::Current(); in artInstrumentationMethodExitFromCode() 61 sp->Assign(runtime->GetCalleeSaveMethod(Runtime::kRefsOnly)); in artInstrumentationMethodExitFromCode() 62 uint32_t return_pc_offset = GetCalleeSavePCOffset(kRuntimeISA, Runtime::kRefsOnly); in artInstrumentationMethodExitFromCode() 68 instrumentation::Instrumentation* instrumentation = Runtime::Current()->GetInstrumentation(); in artInstrumentationMethodExitFromCode()
|
D | quick_throw_entrypoints.cc | 30 FinishCalleeSaveFrameSetup(thread, sp, Runtime::kSaveAll); in artDeliverPendingExceptionFromCode() 45 FinishCalleeSaveFrameSetup(self, sp, Runtime::kSaveAll); in artDeliverExceptionFromCode() 60 FinishCalleeSaveFrameSetup(self, sp, Runtime::kSaveAll); in artThrowNullPointerExceptionFromCode() 71 FinishCalleeSaveFrameSetup(self, sp, Runtime::kSaveAll); in artThrowDivZeroFromCode() 80 FinishCalleeSaveFrameSetup(self, sp, Runtime::kSaveAll); in artThrowArrayBoundsFromCode() 87 FinishCalleeSaveFrameSetup(self, sp, Runtime::kSaveAll); in artThrowStackOverflowFromCode() 97 FinishCalleeSaveFrameSetup(self, sp, Runtime::kSaveAll); in artThrowNoSuchMethodFromCode() 105 FinishCalleeSaveFrameSetup(self, sp, Runtime::kSaveAll); in artThrowClassCastException() 114 FinishCalleeSaveFrameSetup(self, sp, Runtime::kSaveAll); in artThrowArrayStoreException()
|
D | quick_field_entrypoints.cc | 37 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); in artGet32StaticFromCode() 54 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); in artGet64StaticFromCode() 72 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); in artGetObjStaticFromCode() 90 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); in artGet32InstanceFromCode() 113 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); in artGet64InstanceFromCode() 137 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); in artGetObjInstanceFromCode() 162 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); in artSet32StaticFromCode() 183 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); in artSet64StaticFromCode() 206 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); in artSetObjStaticFromCode() 228 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); in artSet32InstanceFromCode() [all …]
|
D | quick_dexcache_entrypoints.cc | 36 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); in artInitializeStaticStorageFromCode() 46 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); in artInitializeTypeFromCode() 56 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); in artInitializeTypeAndVerifyAccessFromCode() 65 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); in artResolveStringFromCode()
|
D | callee_save_frame.h | 39 Runtime::CalleeSaveType type) in FinishCalleeSaveFrameSetup() 43 sp->Assign(Runtime::Current()->GetCalleeSaveMethod(type)); in FinishCalleeSaveFrameSetup() 48 static constexpr size_t GetCalleeSaveFrameSize(InstructionSet isa, Runtime::CalleeSaveType type) { in GetCalleeSaveFrameSize() 72 static constexpr size_t GetCalleeSavePCOffset(InstructionSet isa, Runtime::CalleeSaveType type) { in GetCalleeSavePCOffset()
|
D | quick_alloc_entrypoints.cc | 33 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); \ 40 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); \ 47 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); \ 54 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); \ 61 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); \ 69 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); \ 77 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); \ 85 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); \ 96 FinishCalleeSaveFrameSetup(self, sp, Runtime::kRefsOnly); \
|
/art/runtime/native/ |
D | java_lang_Runtime.cc | 33 if (Runtime::Current()->IsExplicitGcDisabled()) { in Runtime_gc() 37 Runtime::Current()->GetHeap()->CollectGarbage(false); in Runtime_gc() 42 Runtime::Current()->CallExitHook(status); in Runtime_nativeExit() 73 JavaVMExt* vm = Runtime::Current()->GetJavaVM(); in Runtime_nativeLoad() 86 return Runtime::Current()->GetHeap()->GetMaxMemory(); in Runtime_maxMemory() 90 return Runtime::Current()->GetHeap()->GetTotalMemory(); in Runtime_totalMemory() 94 return Runtime::Current()->GetHeap()->GetFreeMemory(); in Runtime_freeMemory() 98 NATIVE_METHOD(Runtime, freeMemory, "!()J"), 99 NATIVE_METHOD(Runtime, gc, "()V"), 100 NATIVE_METHOD(Runtime, maxMemory, "!()J"), [all …]
|
D | dalvik_system_ZygoteHooks.cc | 62 Runtime* runtime = Runtime::Current(); in EnableDebugFeatures() 88 Runtime* runtime = Runtime::Current(); in EnableDebugFeatures() 102 Runtime* runtime = Runtime::Current(); in ZygoteHooks_nativePreFork() 122 Runtime::NativeBridgeAction action = Runtime::NativeBridgeAction::kUnload; in ZygoteHooks_nativePostForkChild() 124 action = Runtime::NativeBridgeAction::kInitialize; in ZygoteHooks_nativePostForkChild() 126 Runtime::Current()->DidForkFromZygote(env, action, isa_string.c_str()); in ZygoteHooks_nativePostForkChild() 128 Runtime::Current()->DidForkFromZygote(env, Runtime::NativeBridgeAction::kUnload, nullptr); in ZygoteHooks_nativePostForkChild()
|
D | dalvik_system_VMRuntime.cc | 46 return Runtime::Current()->GetHeap()->GetTargetHeapUtilization(); in VMRuntime_getTargetHeapUtilization() 50 Runtime::Current()->GetHeap()->SetTargetHeapUtilization(target); in VMRuntime_nativeSetTargetHeapUtilization() 71 Runtime* runtime = Runtime::Current(); in VMRuntime_newNonMovableArray() 95 Runtime* runtime = Runtime::Current(); in VMRuntime_newUnpaddedArray() 118 if (Runtime::Current()->GetHeap()->IsMovableObject(array)) { in VMRuntime_addressOf() 126 Runtime::Current()->GetHeap()->ClearGrowthLimit(); in VMRuntime_clearGrowthLimit() 134 return toStringArray(env, Runtime::Current()->GetProperties()); in VMRuntime_properties() 147 return env->NewStringUTF(DefaultToDot(Runtime::Current()->GetBootClassPathString())); in VMRuntime_bootClassPath() 151 return env->NewStringUTF(DefaultToDot(Runtime::Current()->GetClassPathString())); in VMRuntime_classPath() 155 return env->NewStringUTF(Runtime::GetVersion()); in VMRuntime_vmVersion() [all …]
|
/art/runtime/arch/ |
D | arch_test.cc | 27 static void CheckFrameSize(InstructionSet isa, Runtime::CalleeSaveType type, uint32_t save_size) in CheckFrameSize() 29 Runtime* r = Runtime::Current(); in CheckFrameSize() 53 CheckFrameSize(InstructionSet::kArm, Runtime::kSaveAll, FRAME_SIZE_SAVE_ALL_CALLEE_SAVE); in TEST_F() 58 CheckFrameSize(InstructionSet::kArm, Runtime::kRefsOnly, FRAME_SIZE_REFS_ONLY_CALLEE_SAVE); in TEST_F() 63 CheckFrameSize(InstructionSet::kArm, Runtime::kRefsAndArgs, FRAME_SIZE_REFS_AND_ARGS_CALLEE_SAVE); in TEST_F() 111 CheckFrameSize(InstructionSet::kArm64, Runtime::kSaveAll, FRAME_SIZE_SAVE_ALL_CALLEE_SAVE); in TEST_F() 116 CheckFrameSize(InstructionSet::kArm64, Runtime::kRefsOnly, FRAME_SIZE_REFS_ONLY_CALLEE_SAVE); in TEST_F() 121 …CheckFrameSize(InstructionSet::kArm64, Runtime::kRefsAndArgs, FRAME_SIZE_REFS_AND_ARGS_CALLEE_SAVE… in TEST_F() 169 CheckFrameSize(InstructionSet::kMips, Runtime::kSaveAll, FRAME_SIZE_SAVE_ALL_CALLEE_SAVE); in TEST_F() 174 CheckFrameSize(InstructionSet::kMips, Runtime::kRefsOnly, FRAME_SIZE_REFS_ONLY_CALLEE_SAVE); in TEST_F() [all …]
|
/art/runtime/arch/arm64/ |
D | quick_method_frame_info_arm64.h | 62 constexpr uint32_t Arm64CalleeSaveCoreSpills(Runtime::CalleeSaveType type) { in Arm64CalleeSaveCoreSpills() 64 (type == Runtime::kRefsAndArgs ? kArm64CalleeSaveArgSpills : 0) | in Arm64CalleeSaveCoreSpills() 65 (type == Runtime::kSaveAll ? kArm64CalleeSaveAllSpills : 0); in Arm64CalleeSaveCoreSpills() 68 constexpr uint32_t Arm64CalleeSaveFpSpills(Runtime::CalleeSaveType type) { in Arm64CalleeSaveFpSpills() 70 (type == Runtime::kRefsAndArgs ? kArm64CalleeSaveFpArgSpills: 0) | in Arm64CalleeSaveFpSpills() 71 (type == Runtime::kSaveAll ? kArm64FpAllSpills : 0); in Arm64CalleeSaveFpSpills() 74 constexpr uint32_t Arm64CalleeSaveFrameSize(Runtime::CalleeSaveType type) { in Arm64CalleeSaveFrameSize() 80 constexpr QuickMethodFrameInfo Arm64CalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { in Arm64CalleeSaveMethodFrameInfo() 86 constexpr size_t Arm64CalleeSaveFpr1Offset(Runtime::CalleeSaveType type) { in Arm64CalleeSaveFpr1Offset() 92 constexpr size_t Arm64CalleeSaveGpr1Offset(Runtime::CalleeSaveType type) { in Arm64CalleeSaveGpr1Offset() [all …]
|
/art/runtime/arch/arm/ |
D | quick_method_frame_info_arm.h | 45 constexpr uint32_t ArmCalleeSaveCoreSpills(Runtime::CalleeSaveType type) { in ArmCalleeSaveCoreSpills() 46 return kArmCalleeSaveRefSpills | (type == Runtime::kRefsAndArgs ? kArmCalleeSaveArgSpills : 0) | in ArmCalleeSaveCoreSpills() 47 (type == Runtime::kSaveAll ? kArmCalleeSaveAllSpills : 0) | (1 << art::arm::LR); in ArmCalleeSaveCoreSpills() 50 constexpr uint32_t ArmCalleeSaveFpSpills(Runtime::CalleeSaveType type) { in ArmCalleeSaveFpSpills() 51 return type == Runtime::kSaveAll ? kArmCalleeSaveFpAllSpills : 0; in ArmCalleeSaveFpSpills() 54 constexpr uint32_t ArmCalleeSaveFrameSize(Runtime::CalleeSaveType type) { in ArmCalleeSaveFrameSize() 60 constexpr QuickMethodFrameInfo ArmCalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { in ArmCalleeSaveMethodFrameInfo() 66 constexpr size_t ArmCalleeSaveFpr1Offset(Runtime::CalleeSaveType type) { in ArmCalleeSaveFpr1Offset() 72 constexpr size_t ArmCalleeSaveGpr1Offset(Runtime::CalleeSaveType type) { in ArmCalleeSaveGpr1Offset() 77 constexpr size_t ArmCalleeSaveLrOffset(Runtime::CalleeSaveType type) { in ArmCalleeSaveLrOffset()
|
/art/runtime/arch/x86_64/ |
D | thread_x86_64.cc | 61 Runtime::GetCalleeSaveMethodOffset(Runtime::kSaveAll)); in InitCpu() 63 Runtime::GetCalleeSaveMethodOffset(Runtime::kRefsOnly)); in InitCpu() 65 Runtime::GetCalleeSaveMethodOffset(Runtime::kRefsAndArgs)); in InitCpu()
|
D | quick_method_frame_info_x86_64.h | 41 constexpr uint32_t X86_64CalleeSaveCoreSpills(Runtime::CalleeSaveType type) { in X86_64CalleeSaveCoreSpills() 43 (type == Runtime::kRefsAndArgs ? kX86_64CalleeSaveArgSpills : 0) | in X86_64CalleeSaveCoreSpills() 47 constexpr uint32_t X86_64CalleeSaveFpSpills(Runtime::CalleeSaveType type) { in X86_64CalleeSaveFpSpills() 49 (type == Runtime::kRefsAndArgs ? kX86_64CalleeSaveFpArgSpills : 0); in X86_64CalleeSaveFpSpills() 52 constexpr uint32_t X86_64CalleeSaveFrameSize(Runtime::CalleeSaveType type) { in X86_64CalleeSaveFrameSize() 58 constexpr QuickMethodFrameInfo X86_64CalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { in X86_64CalleeSaveMethodFrameInfo()
|
/art/runtime/arch/mips/ |
D | quick_method_frame_info_mips.h | 35 constexpr uint32_t MipsCalleeSaveCoreSpills(Runtime::CalleeSaveType type) { in MipsCalleeSaveCoreSpills() 37 (type == Runtime::kRefsAndArgs ? kMipsCalleeSaveArgSpills : 0) | in MipsCalleeSaveCoreSpills() 38 (type == Runtime::kSaveAll ? kMipsCalleeSaveAllSpills : 0) | (1 << art::mips::RA); in MipsCalleeSaveCoreSpills() 41 constexpr uint32_t MipsCalleeSaveFrameSize(Runtime::CalleeSaveType type) { in MipsCalleeSaveFrameSize() 43 (type == Runtime::kRefsAndArgs ? 0 : 3) + 1 /* Method* */) * in MipsCalleeSaveFrameSize() 47 constexpr QuickMethodFrameInfo MipsCalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { in MipsCalleeSaveMethodFrameInfo()
|
/art/runtime/mirror/ |
D | art_method-inl.h | 192 ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); in AssertPcIsWithinQuickCode() 205 DCHECK(!Runtime::Current()->IsStarted()); in GetQuickOatCodeOffset() 212 DCHECK(!Runtime::Current()->IsStarted()); in GetPortableOatCodeOffset() 218 DCHECK(!Runtime::Current()->IsStarted()); in SetQuickOatCodeOffset() 224 DCHECK(!Runtime::Current()->IsStarted()); in SetPortableOatCodeOffset() 233 Runtime* runtime = Runtime::Current(); in GetQuickOatEntryPoint() 315 Runtime* runtime = Runtime::Current(); in IsCalleeSaveMethod() 317 for (int i = 0; i < Runtime::kLastCalleeSaveType; i++) { in IsCalleeSaveMethod() 318 if (this == runtime->GetCalleeSaveMethod(Runtime::CalleeSaveType(i))) { in IsCalleeSaveMethod() 327 bool result = this == Runtime::Current()->GetResolutionMethod(); in IsResolutionMethod() [all …]
|
/art/test/079-phantom/src/ |
D | Main.java | 41 Runtime.getRuntime().gc(); in run() 48 Runtime.getRuntime().gc(); in run() 53 Runtime.getRuntime().gc(); in run() 58 Runtime.getRuntime().gc(); in run() 63 Runtime.getRuntime().gc(); in run()
|
/art/runtime/arch/x86/ |
D | quick_method_frame_info_x86.h | 32 constexpr uint32_t X86CalleeSaveCoreSpills(Runtime::CalleeSaveType type) { in X86CalleeSaveCoreSpills() 33 return kX86CalleeSaveRefSpills | (type == Runtime::kRefsAndArgs ? kX86CalleeSaveArgSpills : 0) | in X86CalleeSaveCoreSpills() 37 constexpr uint32_t X86CalleeSaveFrameSize(Runtime::CalleeSaveType type) { in X86CalleeSaveFrameSize() 42 constexpr QuickMethodFrameInfo X86CalleeSaveMethodFrameInfo(Runtime::CalleeSaveType type) { in X86CalleeSaveMethodFrameInfo()
|
/art/test/118-noimage-dex2oat/ |
D | noimage-dex2oat.cc | 32 Runtime::Current()->GetClassLinker()->FindOpenedOatDexFileForDexFile(dex_file); in hasOat() 38 return Runtime::Current()->GetHeap()->HasImageSpace(); in Java_Main_hasImage() 42 return Runtime::Current()->IsImageDex2OatEnabled(); in Java_Main_isImageDex2OatEnabled()
|
/art/test/401-optimizing-compiler/src/ |
D | Main.java | 191 Runtime.getRuntime().gc(); in forceGCStaticMethod() 192 Runtime.getRuntime().gc(); in forceGCStaticMethod() 193 Runtime.getRuntime().gc(); in forceGCStaticMethod() 194 Runtime.getRuntime().gc(); in forceGCStaticMethod() 195 Runtime.getRuntime().gc(); in forceGCStaticMethod() 196 Runtime.getRuntime().gc(); in forceGCStaticMethod()
|
/art/runtime/gc/ |
D | reference_queue.cc | 51 if (Runtime::Current()->IsActiveTransaction()) { in EnqueuePendingReference() 57 if (Runtime::Current()->IsActiveTransaction()) { in EnqueuePendingReference() 76 if (Runtime::Current()->IsActiveTransaction()) { in DequeuePendingReference() 83 if (Runtime::Current()->IsActiveTransaction()) { in DequeuePendingReference() 113 if (Runtime::Current()->IsActiveTransaction()) { in ClearWhiteReferences() 137 if (Runtime::Current()->IsActiveTransaction()) { in EnqueueFinalizerReferences()
|
/art/test/003-omnibus-opcodes/src/ |
D | InternedString.java | 37 Runtime.getRuntime().gc(); in testDeadInternedString() 44 Runtime.getRuntime().gc(); in testImmortalInternedString() 56 Runtime.getRuntime().gc(); in testImmortalInternedString()
|