Home
last modified time | relevance | path

Searched refs:ObjPtr (Results 101 – 125 of 350) sorted by relevance

12345678910>>...14

/art/runtime/
Dhandle_scope-inl.h34 ObjPtr<mirror::Object> fill_value) in FixedSizeHandleScope()
48 ObjPtr<mirror::Object> fill_value) in StackHandleScope()
77 inline ObjPtr<mirror::Object> HandleScope::GetReference(size_t i) const { in GetReference()
95 inline void HandleScope::SetReference(size_t i, ObjPtr<mirror::Object> object) { in SetReference()
123 return NewHandle(ObjPtr<T>(object)); in NewHandle()
128 ObjPtr<MirrorType> object) { in NewHandle()
142 ObjPtr<T>* object) { in NewHandleWrapper()
148 ObjPtr<mirror::Object> object) { in SetReference()
201 return NewHandle(ObjPtr<T>(object)); in NewHandle()
205 inline MutableHandle<MirrorType> VariableSizedHandleScope::NewHandle(ObjPtr<MirrorType> ptr) { in NewHandle()
Dmethod_handles.cc53 bool GetUnboxedPrimitiveType(ObjPtr<mirror::Class> klass, Primitive::Type* type) in GetUnboxedPrimitiveType()
76 ObjPtr<mirror::Class> GetBoxedPrimitiveClass(Primitive::Type type) in GetBoxedPrimitiveClass()
94 bool GetUnboxedTypeAndValue(ObjPtr<mirror::Object> o, Primitive::Type* type, JValue* value) in GetUnboxedTypeAndValue()
97 ObjPtr<mirror::Class> klass = o->GetClass(); in GetUnboxedTypeAndValue()
120 bool IsParameterTypeConvertible(ObjPtr<mirror::Class> from, ObjPtr<mirror::Class> to) in IsParameterTypeConvertible()
180 bool IsReturnTypeConvertible(ObjPtr<mirror::Class> from, ObjPtr<mirror::Class> to) in IsReturnTypeConvertible()
197 ObjPtr<mirror::Class> from, in ConvertJValueCommon()
198 ObjPtr<mirror::Class> to, in ConvertJValueCommon()
252 ObjPtr<mirror::Class> boxed_from_class = GetBoxedPrimitiveClass(from_type); in ConvertJValueCommon()
272 ObjPtr<mirror::Object> boxed = BoxPrimitive(type, src_value); in ConvertJValueCommon()
[all …]
Dhandle_scope.h36 template<class MirrorType> class ObjPtr; variable
108 ALWAYS_INLINE ObjPtr<mirror::Object> GetReference(size_t i) const
116 ALWAYS_INLINE void SetReference(size_t i, ObjPtr<mirror::Object> object)
183 ALWAYS_INLINE HandleWrapperObjPtr<T> NewHandleWrapper(ObjPtr<T>* object)
187 ALWAYS_INLINE MutableHandle<MirrorType> NewHandle(ObjPtr<MirrorType> object)
190 ALWAYS_INLINE void SetReference(size_t i, ObjPtr<mirror::Object> object)
199 ObjPtr<mirror::Object> fill_value = nullptr);
223 ObjPtr<mirror::Object> fill_value = nullptr);
250 MutableHandle<MirrorType> NewHandle(ObjPtr<MirrorType> ptr)
Dtransaction.h44 template<class MirrorType> class ObjPtr; variable
116 void RecordStrongStringInsertion(ObjPtr<mirror::String> s)
119 void RecordWeakStringInsertion(ObjPtr<mirror::String> s)
122 void RecordStrongStringRemoval(ObjPtr<mirror::String> s)
125 void RecordWeakStringRemoval(ObjPtr<mirror::String> s)
130 void RecordResolveString(ObjPtr<mirror::DexCache> dex_cache, dex::StringIndex string_idx)
143 bool ReadConstraint(Thread* self, ObjPtr<mirror::Object> obj)
147 bool WriteConstraint(Thread* self, ObjPtr<mirror::Object> obj)
151 bool WriteValueConstraint(Thread* self, ObjPtr<mirror::Object> value)
246 InternStringLog(ObjPtr<mirror::String> s, StringKind kind, StringOp op);
[all …]
Dmethod_handles-inl.h53 ALWAYS_INLINE ObjPtr<mirror::Object> GetReference() REQUIRES_SHARED(Locks::mutator_lock_) { in GetReference()
87 ALWAYS_INLINE void SetReference(ObjPtr<mirror::Object> value) in SetReference()
110 ObjPtr<mirror::Class> from_class, in ConvertArgumentValue()
111 ObjPtr<mirror::Class> to_class, in ConvertArgumentValue()
145 ObjPtr<mirror::Class> from_class(callee_type->GetRType()); in ConvertReturnValue()
146 ObjPtr<mirror::Class> to_class(callsite_type->GetRType()); in ConvertReturnValue()
178 ObjPtr<mirror::Class> from(from_types->GetWithoutChecks(i)); in PerformConversions()
179 ObjPtr<mirror::Class> to(to_types->GetWithoutChecks(i - start_index)); in PerformConversions()
Dcha.cc82 void ClassHierarchyAnalysis::ResetSingleImplementationInHierarchy(ObjPtr<mirror::Class> klass, in ResetSingleImplementationInHierarchy()
108 ObjPtr<mirror::Class> super = klass->GetSuperClass<kDefaultVerifyFlags, kWithoutReadBarrier>(); in ResetSingleImplementationInHierarchy()
120 ObjPtr<mirror::ClassLoader> loader = in ResetSingleImplementationInHierarchy()
133 for (ObjPtr<mirror::Class> super_it = super; in ResetSingleImplementationInHierarchy()
138 ObjPtr<mirror::ClassLoader> super_loader = super_it-> in ResetSingleImplementationInHierarchy()
161 ObjPtr<mirror::IfTable> iftable = klass->GetIfTable<kDefaultVerifyFlags, kWithoutReadBarrier>(); in ResetSingleImplementationInHierarchy()
164 ObjPtr<mirror::Class> interface = in ResetSingleImplementationInHierarchy()
281 static void VerifyNonSingleImplementation(ObjPtr<mirror::Class> verify_class, in VerifyNonSingleImplementation()
295 ObjPtr<mirror::Class> input_verify_class = verify_class; in VerifyNonSingleImplementation()
303 auto construct_parent_chain = [](ObjPtr<mirror::Class> failed, ObjPtr<mirror::Class> in) in VerifyNonSingleImplementation()
[all …]
/art/runtime/mirror/
Dmethod_handle_impl-inl.h28 inline ObjPtr<mirror::MethodType> MethodHandle::GetMethodType() { in GetMethodType()
32 inline ObjPtr<mirror::MethodType> MethodHandle::GetNominalType() { in GetNominalType()
Dmethod_type-inl.h27 inline ObjPtr<ObjectArray<Class>> MethodType::GetPTypes() { in GetPTypes()
35 inline ObjPtr<Class> MethodType::GetRType() { in GetRType()
Dfield.h46 ObjPtr<mirror::Class> GetDeclaringClass() REQUIRES_SHARED(Locks::mutator_lock_);
66 ObjPtr<mirror::Class> GetType() REQUIRES_SHARED(Locks::mutator_lock_);
74 static ObjPtr<mirror::Field> CreateFromArtField(Thread* self,
115 void SetDeclaringClass(ObjPtr<Class> c) REQUIRES_SHARED(Locks::mutator_lock_);
118 void SetType(ObjPtr<Class> type) REQUIRES_SHARED(Locks::mutator_lock_);
Darray.h47 ALWAYS_INLINE static ObjPtr<Array> Alloc(Thread* self,
48 ObjPtr<Class> array_class,
55 static ObjPtr<Array> CreateMultiArray(Thread* self,
128 static ObjPtr<Array> CopyOf(Handle<Array> h_this, Thread* self, int32_t new_length)
132 void ThrowArrayStoreException(ObjPtr<Object> object) REQUIRES_SHARED(Locks::mutator_lock_)
154 static ObjPtr<PrimitiveArray<T>> Alloc(Thread* self, size_t length)
157 static ObjPtr<PrimitiveArray<T>> AllocateAndFill(Thread* self, const T* data, size_t length)
195 void Memmove(int32_t dst_pos, ObjPtr<PrimitiveArray<T>> src, int32_t src_pos, int32_t count)
203 void Memcpy(int32_t dst_pos, ObjPtr<PrimitiveArray<T>> src, int32_t src_pos, int32_t count)
257 void Fixup(ObjPtr<mirror::PointerArray> dest, PointerSize pointer_size, const Visitor& visitor)
[all …]
Demulated_stack_frame.cc37 static void CalculateFrameAndReferencesSize(ObjPtr<mirror::ObjectArray<mirror::Class>> p_types, in CalculateFrameAndReferencesSize()
38 ObjPtr<mirror::Class> r_type, in CalculateFrameAndReferencesSize()
46 ObjPtr<mirror::Class> type = p_types->GetWithoutChecks(i); in CalculateFrameAndReferencesSize()
88 ALWAYS_INLINE void SetReference(ObjPtr<mirror::Object> reference) in SetReference()
109 ALWAYS_INLINE ObjPtr<mirror::Object> GetReference() REQUIRES_SHARED(Locks::mutator_lock_) { in GetReference()
146 ObjPtr<mirror::EmulatedStackFrame> EmulatedStackFrame::CreateFromShadowFrameAndArgs( in CreateFromShadowFrameAndArgs()
173 ObjPtr<mirror::Class> array_class(GetClassRoot<mirror::ObjectArray<mirror::Object>>()); in CreateFromShadowFrameAndArgs()
198 ObjPtr<EmulatedStackFrame>::DownCast(GetClassRoot<EmulatedStackFrame>()->AllocObject(self)))); in CreateFromShadowFrameAndArgs()
211 ObjPtr<mirror::ObjectArray<mirror::Class>> from_types(GetType()->GetPTypes()); in WriteToShadowFrame()
212 ObjPtr<mirror::ObjectArray<mirror::Class>> to_types(callee_type->GetPTypes()); in WriteToShadowFrame()
Dclass_loader-inl.h28 inline ObjPtr<ClassLoader> ClassLoader::GetParent() { in GetParent()
36 inline void ClassLoader::VisitReferences(ObjPtr<mirror::Class> klass, const Visitor& visitor) { in VisitReferences()
/art/openjdkjvmti/
Dobject_tagging.h64 bool Set(art::ObjPtr<art::mirror::Object> obj, jlong tag) override
67 bool SetLocked(art::ObjPtr<art::mirror::Object> obj, jlong tag) override
71 jlong GetTagOrZero(art::ObjPtr<art::mirror::Object> obj) in GetTagOrZero()
78 jlong GetTagOrZeroLocked(art::ObjPtr<art::mirror::Object> obj) in GetTagOrZeroLocked()
Dti_heap.cc93 jint ReportString(art::ObjPtr<art::mirror::Object> obj, in ReportString()
99 art::ObjPtr<art::mirror::String> str = obj->AsString(); in ReportString()
145 jint ReportPrimitiveArray(art::ObjPtr<art::mirror::Object> obj, in ReportPrimitiveArray()
153 art::ObjPtr<art::mirror::Array> array = obj->AsArray(); in ReportPrimitiveArray()
214 bool VisitorFalse(art::ObjPtr<art::mirror::Object> obj ATTRIBUTE_UNUSED, in VisitorFalse()
215 art::ObjPtr<art::mirror::Class> klass ATTRIBUTE_UNUSED, in VisitorFalse()
230 static bool ReportFields(art::ObjPtr<art::mirror::Object> obj, in ReportFields()
242 art::ObjPtr<art::mirror::Class> klass = obj->AsClass(); in ReportFields()
277 bool ReportFieldsImpl(art::ObjPtr<art::mirror::Object> obj, in ReportFieldsImpl()
278 art::ObjPtr<art::mirror::Class> klass, in ReportFieldsImpl()
[all …]
/art/runtime/native/
Djava_lang_Class.cc87 ObjPtr<mirror::Class> declaring_class = m->GetDeclaringClass(); in GetReflectionCaller()
97 ObjPtr<mirror::Class> lookup_class = GetClassRoot<mirror::MethodHandlesLookup>(); in GetReflectionCaller()
106 ObjPtr<mirror::Class> proxy_class = GetClassRoot<mirror::Proxy>(); in GetReflectionCaller()
127 ObjPtr<mirror::Class> caller = (visitor.caller == nullptr) in GetReflectionCaller()
164 ALWAYS_INLINE static inline ObjPtr<mirror::Class> DecodeClass( in DecodeClass()
167 ObjPtr<mirror::Class> c = soa.Decode<mirror::Class>(java_class); in DecodeClass()
223 ObjPtr<mirror::Class> klass = mirror::Class::GetPrimitiveClass(soa.Decode<mirror::String>(name)); in Class_getPrimitiveClass()
230 ObjPtr<mirror::Class> c = DecodeClass(soa, javaThis); in Class_getNameNative()
258 ObjPtr<mirror::Class> class_array_class = in Class_getInterfacesInternal()
260 ObjPtr<mirror::ObjectArray<mirror::Class>> ifaces = in Class_getInterfacesInternal()
[all …]
Djava_lang_reflect_Field.cc45 ObjPtr<mirror::Field> field, in VerifyFieldAccess()
46 ObjPtr<mirror::Object> obj) in VerifyFieldAccess()
57 ObjPtr<mirror::Class> calling_class; in VerifyFieldAccess()
77 ALWAYS_INLINE inline static bool GetFieldValue(ObjPtr<mirror::Object> o, in GetFieldValue()
78 ObjPtr<mirror::Field> f, in GetFieldValue()
126 ObjPtr<mirror::Field>* f, in CheckReceiver()
127 ObjPtr<mirror::Object>* class_or_rcvr) in CheckReceiver()
130 ObjPtr<mirror::Class> declaring_class = (*f)->GetDeclaringClass(); in CheckReceiver()
157 ObjPtr<mirror::Field> f = soa.Decode<mirror::Field>(javaField); in Field_get()
158 ObjPtr<mirror::Object> o; in Field_get()
[all …]
Djava_lang_reflect_Method.cc51 ObjPtr<mirror::Class> klass = method->GetDeclaringClass(); in Method_getExceptionTypes()
68 ObjPtr<mirror::ObjectArray<mirror::Class>> result_array = in Method_getExceptionTypes()
72 ObjPtr<mirror::Class> class_array_class = GetClassRoot<mirror::ObjectArray<mirror::Class>>(); in Method_getExceptionTypes()
74 ObjPtr<mirror::ObjectArray<mirror::Class>> empty_array = in Method_getExceptionTypes()
/art/benchmark/jobject-benchmark/
Djobject_benchmark.cc29 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); in Java_JObjectBenchmark_timeAddRemoveLocal()
40 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); in Java_JObjectBenchmark_timeDecodeLocal()
52 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); in Java_JObjectBenchmark_timeAddRemoveGlobal()
63 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); in Java_JObjectBenchmark_timeDecodeGlobal()
75 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); in Java_JObjectBenchmark_timeAddRemoveWeakGlobal()
86 ObjPtr<mirror::Object> obj = soa.Decode<mirror::Object>(jobj); in Java_JObjectBenchmark_timeDecodeWeakGlobal()
/art/runtime/jni/
Djava_vm_ext.h149 jobject AddGlobalRef(Thread* self, ObjPtr<mirror::Object> obj)
153 jweak AddWeakGlobalRef(Thread* self, ObjPtr<mirror::Object> obj)
165 ObjPtr<mirror::Object> DecodeGlobal(IndirectRef ref)
168 void UpdateGlobal(Thread* self, IndirectRef ref, ObjPtr<mirror::Object> result)
172 ObjPtr<mirror::Object> DecodeWeakGlobal(Thread* self, IndirectRef ref)
176 ObjPtr<mirror::Object> DecodeWeakGlobalLocked(Thread* self, IndirectRef ref)
182 ObjPtr<mirror::Object> DecodeWeakGlobalDuringShutdown(Thread* self, IndirectRef ref)
191 void UpdateWeakGlobal(Thread* self, IndirectRef ref, ObjPtr<mirror::Object> result)
/art/runtime/entrypoints/quick/
Dquick_dexcache_entrypoints.cc38 ObjPtr<mirror::Object> object) REQUIRES_SHARED(Locks::mutator_lock_) { in StoreObjectInBss()
61 ObjPtr<mirror::ClassLoader> class_loader = outer_method->GetClassLoader(); in StoreObjectInBss()
82 ObjPtr<mirror::Class> resolved_type) in StoreTypeInBss()
100 ObjPtr<mirror::String> resolved_string) in StoreStringInBss()
160 ObjPtr<mirror::Class> result = ResolveVerifyAndClinit(dex::TypeIndex(type_idx), in artResolveTypeFromCode()
178 ObjPtr<mirror::Class> result = ResolveVerifyAndClinit(dex::TypeIndex(type_idx), in artResolveTypeAndVerifyAccessFromCode()
194 ObjPtr<mirror::MethodHandle> result = ResolveMethodHandleFromCode(caller, method_handle_idx); in artResolveMethodHandleFromCode()
204 ObjPtr<mirror::MethodType> result = ResolveMethodTypeFromCode(caller, dex::ProtoIndex(proto_idx)); in artResolveMethodTypeFromCode()
214 ObjPtr<mirror::String> result = in artResolveStringFromCode()
/art/runtime/dex/
Ddex_file_annotations.cc93 ObjPtr<mirror::DexCache> GetDexCache() const REQUIRES_SHARED(Locks::mutator_lock_) { in GetDexCache()
101 ObjPtr<mirror::ClassLoader> GetClassLoader() const REQUIRES_SHARED(Locks::mutator_lock_) { in GetClassLoader()
109 ObjPtr<mirror::Class> GetRealClass() const REQUIRES_SHARED(Locks::mutator_lock_) { in GetRealClass()
137 ObjPtr<mirror::Object> CreateAnnotationMember(const ClassData& klass,
174 ObjPtr<mirror::Class> klass = field->GetDeclaringClass(); in FindAnnotationSetForField()
353 ObjPtr<mirror::Object> ProcessEncodedAnnotation(const ClassData& klass, const uint8_t** annotation) in ProcessEncodedAnnotation()
374 ObjPtr<mirror::Class> annotation_member_class = in ProcessEncodedAnnotation()
376 ObjPtr<mirror::Class> annotation_member_array_class = in ProcessEncodedAnnotation()
381 ObjPtr<mirror::ObjectArray<mirror::Object>> element_array = nullptr; in ProcessEncodedAnnotation()
393 ObjPtr<mirror::Object> new_member = CreateAnnotationMember(klass, annotation_class, annotation); in ProcessEncodedAnnotation()
[all …]
/art/dex2oat/linker/
Dimage_writer.cc152 ObjPtr<mirror::ObjectArray<mirror::Object>> AllocateBootImageLiveObjects( in AllocateBootImageLiveObjects()
164 ObjPtr<mirror::ObjectArray<mirror::Object>> live_objects = in AllocateBootImageLiveObjects()
169 ObjPtr<mirror::Object> value) REQUIRES_SHARED(Locks::mutator_lock_) { in AllocateBootImageLiveObjects()
202 ObjPtr<mirror::ClassLoader> ImageWriter::GetAppClassLoader() const in GetAppClassLoader()
205 ? ObjPtr<mirror::ClassLoader>::DownCast(Thread::Current()->DecodeJObject(app_class_loader_)) in GetAppClassLoader()
209 bool ImageWriter::IsImageDexCache(ObjPtr<mirror::DexCache> dex_cache) const { in IsImageDexCache()
284 ObjPtr<mirror::ClassLoader> class_loader = GetAppClassLoader(); in PrepareImageAddressSpace()
285 std::vector<ObjPtr<mirror::DexCache>> dex_caches = FindDexCaches(self); in PrepareImageAddressSpace()
286 for (ObjPtr<mirror::DexCache> dex_cache : dex_caches) { in PrepareImageAddressSpace()
307 info.class_table_->Visit([&](ObjPtr<mirror::Class> klass) in PrepareImageAddressSpace()
[all …]
/art/runtime/verifier/
Dreg_type_cache.h83 const RegType& From(ObjPtr<mirror::ClassLoader> loader, const char* descriptor, bool precise)
86 const RegType* FindClass(ObjPtr<mirror::Class> klass, bool precise) const
90 ObjPtr<mirror::Class> klass,
94 const RegType& FromClass(const char* descriptor, ObjPtr<mirror::Class> klass, bool precise)
102 const RegType& FromDescriptor(ObjPtr<mirror::ClassLoader> loader,
159 const RegType& GetComponentType(const RegType& array, ObjPtr<mirror::ClassLoader> loader)
175 ObjPtr<mirror::Class> ResolveClass(const char* descriptor, ObjPtr<mirror::ClassLoader> loader)
Dverifier_deps.h91 ObjPtr<mirror::Class> klass)
115 ObjPtr<mirror::Class> destination,
116 ObjPtr<mirror::Class> source,
260 bool IsInClassPath(ObjPtr<mirror::Class> klass) const
266 ObjPtr<mirror::Class> FindOneClassPathBoundaryForInterface(ObjPtr<mirror::Class> destination,
267 ObjPtr<mirror::Class> source) const
298 dex::StringIndex GetClassDescriptorStringId(const DexFile& dex_file, ObjPtr<mirror::Class> klass)
304 ObjPtr<mirror::Class> klass)
321 ObjPtr<mirror::Class> destination,
322 ObjPtr<mirror::Class> source,
/art/runtime/interpreter/
Dinterpreter_common.cc99 ObjPtr<mirror::Object> thiz, in SendMethodExitEvents()
132 ObjPtr<mirror::Object> thiz,
141 ObjPtr<mirror::Object> thiz,
266 ObjPtr<mirror::Class> declaringClass = method->GetDeclaringClass(); in ArtInterpreterToCompiledCodeBridge()
307 ObjPtr<mirror::Object> existing = shadow_frame->GetVRegReference(this_obj_vreg); in SetStringInitValueToAllAliases()
353 ObjPtr<mirror::MethodHandle>::DownCast(shadow_frame.GetVRegReference(vRegC)))); in DoMethodHandleInvokeCommon()
487 ObjPtr<mirror::Object> receiver(shadow_frame.GetVRegReference(vRegC)); in DoVarHandleInvokeCommon()
488 Handle<mirror::VarHandle> var_handle(hs.NewHandle(ObjPtr<mirror::VarHandle>::DownCast(receiver))); in DoVarHandleInvokeCommon()
597 static ObjPtr<mirror::Class> GetClassForBootstrapArgument(EncodedArrayValueIterator::ValueType type) in GetClassForBootstrapArgument()
600 ObjPtr<mirror::ObjectArray<mirror::Class>> class_roots = class_linker->GetClassRoots(); in GetClassForBootstrapArgument()
[all …]

12345678910>>...14