Home
last modified time | relevance | path

Searched refs:down_cast (Results 1 – 25 of 30) sorted by relevance

12

/art/runtime/mirror/
Dobject-inl.h93 return down_cast<Class*>(this); in AsClass()
98 return down_cast<const Class*>(this); in AsClass()
108 return down_cast<ObjectArray<T>*>(this); in AsObjectArray()
114 return down_cast<const ObjectArray<T>*>(this); in AsObjectArray()
127 return down_cast<ArtField*>(this); in AsArtField()
132 return down_cast<const ArtField*>(this); in AsArtField()
141 return down_cast<ArtMethod*>(this); in AsArtMethod()
146 return down_cast<const ArtMethod*>(this); in AsArtMethod()
155 return down_cast<Array*>(this); in AsArray()
160 return down_cast<const Array*>(this); in AsArray()
[all …]
Dthrowable.cc63 ObjectArray<Object>* method_trace = down_cast<ObjectArray<Object>*>(stack_state); in Dump()
65 IntArray* pc_trace = down_cast<IntArray*>(method_trace->Get(depth)); in Dump()
68 ArtMethod* method = down_cast<ArtMethod*>(method_trace->Get(i)); in Dump()
Diftable.h38 down_cast<ObjectArray<ArtMethod>*>(Get((i * kMax) + kMethodArray)); in GetMethodArray()
45 down_cast<ObjectArray<ArtMethod>*>(Get((i * kMax) + kMethodArray)); in GetMethodArrayCount()
Dstack_trace_element.cc46 down_cast<StackTraceElement*>(GetStackTraceElement()->AllocObject(self)); in Alloc()
Darray.cc55 Array* array = down_cast<Array*>(heap->AllocObject(self, array_class, size)); in Alloc()
149 return down_cast<PrimitiveArray<T>*>(raw_array); in Alloc()
Dstring.cc172 String* string = down_cast<String*>(java_lang_String->AllocObject(self)); in Alloc()
/art/runtime/gc/space/
Dspace-inl.h31 return down_cast<ImageSpace*>(down_cast<MemMapSpace*>(this)); in AsImageSpace()
36 return down_cast<DlMallocSpace*>(down_cast<MemMapSpace*>(this)); in AsDlMallocSpace()
Dimage_space.cc215 runtime->SetResolutionMethod(down_cast<mirror::ArtMethod*>(resolution_method)); in Init()
218 …runtime->SetCalleeSaveMethod(down_cast<mirror::ArtMethod*>(callee_save_method), Runtime::kSaveAll); in Init()
220 …runtime->SetCalleeSaveMethod(down_cast<mirror::ArtMethod*>(callee_save_method), Runtime::kRefsOnly… in Init()
222 …runtime->SetCalleeSaveMethod(down_cast<mirror::ArtMethod*>(callee_save_method), Runtime::kRefsAndA… in Init()
253 down_cast<mirror::String*>(image_header.GetImageRoot(ImageHeader::kOatLocation)); in OpenOatFile()
/art/runtime/verifier/
Dreg_type_cache.cc282 types = (down_cast<UnresolvedMergedType*>(&non_const))->GetMergedTypes(); in FromUnresolvedMerge()
288 … std::set<uint16_t> right_types = (down_cast<UnresolvedMergedType*>(&non_const))->GetMergedTypes(); in FromUnresolvedMerge()
298 (down_cast<UnresolvedMergedType*>(cur_entry))->GetMergedTypes(); in FromUnresolvedMerge()
308 UnresolvedMergedType* tmp_entry = down_cast<UnresolvedMergedType*>(entry); in FromUnresolvedMerge()
321 down_cast<UnresolvedSuperClass*>(cur_entry); in FromUnresolvedSuperClass()
342down_cast<UnresolvedUninitializedRefType*>(cur_entry)->GetAllocationPc() == allocation_pc && in Uninitialized()
353 down_cast<UninitializedReferenceType*>(cur_entry) in Uninitialized()
450 (down_cast<ConstantType*>(cur_entry))->ConstantValue() == value) { in FromCat1Const()
468 (down_cast<ConstantType*>(cur_entry))->ConstantValueLo() == value) { in FromCat2ConstLo()
486 (down_cast<ConstantType*>(cur_entry))->ConstantValueHi() == value) { in FromCat2ConstHi()
Dreg_type.cc592 UnresolvedMergedType* left = down_cast<UnresolvedMergedType*>(&__left); in GetMergedTypes()
596 UnresolvedMergedType* right = down_cast<UnresolvedMergedType*>(&_right); in GetMergedTypes()
Dreg_type_test.cc469 …std::set<uint16_t> merged_ids = (down_cast<UnresolvedMergedType*>(&merged_nonconst))->GetMergedTyp… in TEST_F()
/art/runtime/gc/collector/
Dgarbage_collector.cc135 space::LargeObjectSpace* space = down_cast<space::LargeObjectSpace*>(disc_space); in SwapBitmaps()
140 down_cast<space::LargeObjectSpace*>(space)->SwapBitmaps(); in SwapBitmaps()
/art/runtime/base/
Dcasts.h67 inline To down_cast(From* f) { // so we only accept pointers in down_cast() function
/art/runtime/
Dsirt_ref.h39 return down_cast<T*>(sirt_.GetReference(0)); in get()
Dthread_pool.cc205 WorkStealingThreadPool* thread_pool = down_cast<WorkStealingThreadPool*>(thread_pool_); in Run()
207 WorkStealingTask* stealing_task = down_cast<WorkStealingTask*>(task); in Run()
292 WorkStealingWorker* worker = down_cast<WorkStealingWorker*>(threads_[steal_index_]); in FindTaskToStealFrom()
Dclass_linker-inl.h119 return down_cast<mirror::IfTable*>( in AllocIfTable()
Dscoped_thread_state_change.h202 return down_cast<T>(Self()->DecodeJObject(obj)); in Decode()
Druntime.cc687 mirror::ClassLoader* class_loader = down_cast<mirror::ClassLoader*>(result.GetL()); in CreateSystemClassLoader()
1176 method(self, down_cast<mirror::ArtMethod*>(method_class->AllocObject(self))); in CreateResolutionMethod()
1192 method(self, down_cast<mirror::ArtMethod*>(method_class->AllocObject(self))); in CreateCalleeSaveMethod()
Dthread.cc1414 mirror::ArtMethod* method = down_cast<mirror::ArtMethod*>(method_trace->Get(i)); in InternalStackTraceToStackTraceElementArray()
1424 mirror::IntArray* pc_trace = down_cast<mirror::IntArray*>(method_trace->Get(depth)); in InternalStackTraceToStackTraceElementArray()
1460 method_trace = down_cast<ObjectArray<Object>*>(Decode<Object*>(soa.Env(), internal)); in InternalStackTraceToStackTraceElementArray()
1461 pc_trace = down_cast<IntArray*>(method_trace->Get(depth)); in InternalStackTraceToStackTraceElementArray()
1521 down_cast<mirror::Throwable*>(exception_class->AllocObject(this))); in ThrowNewWrappedException()
Dclass_linker.cc214 down_cast<mirror::Class*>(heap->AllocObject(self, NULL, in InitFromCompiler()
1181 down_cast<mirror::DexCache*>(heap->AllocObject(self, dex_cache_class, in AllocDexCache()
1250 return down_cast<mirror::ArtField*>(GetClassRoot(kJavaLangReflectArtField)->AllocObject(self)); in AllocArtField()
1254 return down_cast<mirror::ArtMethod*>(GetClassRoot(kJavaLangReflectArtMethod)->AllocObject(self)); in AllocArtMethod()
2770 down_cast<mirror::SynthesizedProxyClass*>(klass.get()); in CreateProxyClass()
2822 down_cast<mirror::ArtMethod*>(proxy_constructor->Clone(self)); in CreateProxyConstructor()
2850 mirror::ArtMethod* method = down_cast<mirror::ArtMethod*>(prototype->Clone(self)); in CreateProxyMethod()
3575 iftable.reset(down_cast<mirror::IfTable*>(iftable->CopyOf(self, idx * mirror::IfTable::kMax))); in LinkInterfaceMethods()
3644 miranda_method.reset(down_cast<mirror::ArtMethod*>(interface_method->Clone(self))); in LinkInterfaceMethods()
/art/runtime/native/
Djava_lang_reflect_Method.cc46 down_cast<mirror::SynthesizedProxyClass*>(proxy_method->GetDeclaringClass()); in Method_getExceptionTypesNative()
Djava_lang_reflect_Array.cc38 mirror::IntArray* dimensions_array = down_cast<mirror::IntArray*>(dimensions_obj); in Array_createMultiArray()
Djava_lang_Class.cc90 down_cast<mirror::SynthesizedProxyClass*>(DecodeClass(soa, javaThis)); in Class_getProxyInterfaces()
/art/compiler/
Dimage_writer.cc496 copy->SetClass(down_cast<Class*>(GetImageAddress(orig->GetClass()))); in FixupObject()
499 FixupClass(orig->AsClass(), down_cast<Class*>(copy)); in FixupObject()
501 FixupObjectArray(orig->AsObjectArray<Object>(), down_cast<ObjectArray<Object>*>(copy)); in FixupObject()
503 FixupMethod(orig->AsArtMethod(), down_cast<ArtMethod*>(copy)); in FixupObject()
/art/runtime/entrypoints/
Dentrypoint_utils.cc377 down_cast<mirror::SynthesizedProxyClass*>(rcvr->GetClass()); in InvokeProxyInvocationHandler()

12