Home
last modified time | relevance | path

Searched refs:Runtime (Results 1 – 25 of 181) sorted by relevance

12345678

/art/runtime/
Druntime-inl.h26 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 …]
Druntime.cc96 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/
Dquick_trampoline_entrypoints_test.cc29 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 …]
Dquick_instrumentation_entrypoints.cc33 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()
Dquick_throw_entrypoints.cc30 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()
Dquick_field_entrypoints.cc37 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 …]
Dquick_dexcache_entrypoints.cc36 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()
Dcallee_save_frame.h39 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()
Dquick_alloc_entrypoints.cc33 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/
Djava_lang_Runtime.cc33 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 …]
Ddalvik_system_ZygoteHooks.cc62 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()
Ddalvik_system_VMRuntime.cc46 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/
Darch_test.cc27 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/
Dquick_method_frame_info_arm64.h62 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/
Dquick_method_frame_info_arm.h45 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/
Dthread_x86_64.cc61 Runtime::GetCalleeSaveMethodOffset(Runtime::kSaveAll)); in InitCpu()
63 Runtime::GetCalleeSaveMethodOffset(Runtime::kRefsOnly)); in InitCpu()
65 Runtime::GetCalleeSaveMethodOffset(Runtime::kRefsAndArgs)); in InitCpu()
Dquick_method_frame_info_x86_64.h41 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/
Dquick_method_frame_info_mips.h35 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/
Dart_method-inl.h192 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/
DMain.java41 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/
Dquick_method_frame_info_x86.h32 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/
Dnoimage-dex2oat.cc32 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/
DMain.java191 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/
Dreference_queue.cc51 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/
DInternedString.java37 Runtime.getRuntime().gc(); in testDeadInternedString()
44 Runtime.getRuntime().gc(); in testImmortalInternedString()
56 Runtime.getRuntime().gc(); in testImmortalInternedString()

12345678