/art/runtime/mirror/ |
D | method_type_test.cc | 50 Handle<mirror::ClassLoader> boot_class_loader = hs.NewHandle<mirror::ClassLoader>(nullptr); in CreateMethodType() 52 Handle<mirror::Class> return_clazz = hs.NewHandle(class_linker->FindClass( in CreateMethodType() 58 Handle<mirror::ObjectArray<mirror::Class>> param_classes = hs.NewHandle( in CreateMethodType() 62 Handle<mirror::Class> param = hs.NewHandle(class_linker->FindClass( in CreateMethodType() 75 Handle<mirror::MethodType> mt1 = hs.NewHandle(CreateMethodType("String", { "Integer" })); in TEST_F() 76 Handle<mirror::MethodType> mt2 = hs.NewHandle(CreateMethodType("String", { "Integer" })); in TEST_F() 83 Handle<mirror::MethodType> mt1 = hs.NewHandle(CreateMethodType("String", { "Integer" })); in TEST_F() 84 Handle<mirror::MethodType> mt2 = hs.NewHandle(CreateMethodType("Integer", { "Integer" })); in TEST_F() 91 Handle<mirror::MethodType> mt1 = hs.NewHandle(CreateMethodType("String", { "Integer" })); in TEST_F() 92 Handle<mirror::MethodType> mt2 = hs.NewHandle(CreateMethodType("String", { "String" })); in TEST_F() [all …]
|
D | dex_cache_test.cc | 47 hs.NewHandle(class_linker_->AllocAndInitializeDexCache( in TEST_F() 70 hs.NewHandle(class_linker_->AllocAndInitializeDexCache( in TEST_F() 84 Handle<mirror::ClassLoader> class_loader(hs.NewHandle( in TEST_F() 98 Handle<mirror::ClassLoader> class_loader(hs.NewHandle( in TEST_F() 101 hs.NewHandle(class_linker_->FindClass(soa.Self(), "Lpackage1/Package1;", class_loader)); in TEST_F() 104 hs.NewHandle(class_linker_->FindClass(soa.Self(), "Lpackage2/Package2;", class_loader)); in TEST_F() 125 Handle<mirror::ClassLoader> class_loader(hs.NewHandle( in TEST_F() 129 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LMethodTypes;", class_loader))); in TEST_F() 146 Handle<mirror::DexCache> dex_cache = hs.NewHandle( in TEST_F() 151 Handle<mirror::MethodType> method1_type = hs.NewHandle( in TEST_F() [all …]
|
D | emulated_stack_frame.cc | 152 Handle<mirror::ObjectArray<mirror::Class>> from_types(hs.NewHandle(caller_type->GetPTypes())); in CreateFromShadowFrameAndArgs() 153 Handle<mirror::ObjectArray<mirror::Class>> to_types(hs.NewHandle(callee_type->GetPTypes())); in CreateFromShadowFrameAndArgs() 165 Handle<mirror::Class> r_type(hs.NewHandle(callee_type->GetRType())); in CreateFromShadowFrameAndArgs() 172 Handle<mirror::ObjectArray<mirror::Object>> references(hs.NewHandle( in CreateFromShadowFrameAndArgs() 179 Handle<ByteArray> stack_frame(hs.NewHandle(ByteArray::Alloc(self, frame_size))); in CreateFromShadowFrameAndArgs() 194 Handle<EmulatedStackFrame> sf(hs.NewHandle( in CreateFromShadowFrameAndArgs() 218 Handle<mirror::MethodType> frame_callsite_type(hs.NewHandle(GetType())); in WriteToShadowFrame() 219 Handle<mirror::ObjectArray<mirror::Object>> references(hs.NewHandle(GetReferences())); in WriteToShadowFrame() 220 Handle<ByteArray> stack_frame(hs.NewHandle(GetStackFrame())); in WriteToShadowFrame() 231 Handle<mirror::Class> r_type(hs.NewHandle(GetType()->GetRType())); in GetReturnValue() [all …]
|
D | class_ext.cc | 57 Handle<ClassExt> h_this(hs.NewHandle(this)); in ExtendObsoleteArrays() 58 Handle<PointerArray> old_methods(hs.NewHandle(h_this->GetObsoleteMethods())); in ExtendObsoleteArrays() 59 Handle<ObjectArray<DexCache>> old_dex_caches(hs.NewHandle(h_this->GetObsoleteDexCaches())); in ExtendObsoleteArrays() 69 Handle<PointerArray> new_methods(hs.NewHandle<PointerArray>( in ExtendObsoleteArrays() 76 Handle<ObjectArray<DexCache>> new_dex_caches(hs.NewHandle<ObjectArray<DexCache>>( in ExtendObsoleteArrays()
|
D | method_type.cc | 33 hs.NewHandle(ObjPtr<MethodType>::DownCast(StaticClass()->AllocObject(self)))); in Create() 50 Handle<Class> rtype = hs.NewHandle(method_type->GetRType()); in CloneWithoutLeadingParameter() 51 Handle<ObjectArray<Class>> src_ptypes = hs.NewHandle(method_type->GetPTypes()); in CloneWithoutLeadingParameter() 56 Handle<ObjectArray<Class>> dst_ptypes = hs.NewHandle( in CloneWithoutLeadingParameter()
|
D | array.cc | 51 hs.NewHandle( in RecursiveCreateMultiArray() 63 Handle<mirror::Class> h_component_type(hs2.NewHandle(array_class->GetComponentType())); in RecursiveCreateMultiArray() 100 hs.NewHandle(class_linker->FindArrayClass(self, &element_class_ptr))); in CreateMultiArray() 134 auto h_this(hs.NewHandle(this)); in CopyOf()
|
/art/runtime/ |
D | method_handles_test.cc | 54 auto parameter_types = hs.NewHandle( in CreateVoidMethodType() 57 Handle<mirror::Class> void_class = hs.NewHandle(cl->FindPrimitiveClass('V')); in CreateVoidMethodType() 67 Handle<mirror::MethodType> from_mt = hs.NewHandle(CreateVoidMethodType(self, from)); in TryConversion() 68 Handle<mirror::MethodType> to_mt = hs.NewHandle(CreateVoidMethodType(self, to)); in TryConversion() 83 Handle<mirror::Class> from = hs.NewHandle(cl->FindPrimitiveClass('B')); in TEST_F() 84 Handle<mirror::Class> to = hs.NewHandle(cl->FindPrimitiveClass('I')); in TEST_F() 95 Handle<mirror::Class> from = hs.NewHandle(cl->FindPrimitiveClass('C')); in TEST_F() 96 Handle<mirror::Class> to = hs.NewHandle(cl->FindPrimitiveClass('J')); in TEST_F() 108 Handle<mirror::Class> from = hs.NewHandle(cl->FindPrimitiveClass('I')); in TEST_F() 109 Handle<mirror::Class> to = hs.NewHandle(cl->FindPrimitiveClass('F')); in TEST_F() [all …]
|
D | intern_table_test.cc | 36 Handle<mirror::String> foo_1(hs.NewHandle(intern_table.InternStrong(3, "foo"))); in TEST_F() 37 Handle<mirror::String> foo_2(hs.NewHandle(intern_table.InternStrong(3, "foo"))); in TEST_F() 39 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F() 40 Handle<mirror::String> bar(hs.NewHandle(intern_table.InternStrong(3, "bar"))); in TEST_F() 61 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F() 121 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello"))); in TEST_F() 123 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "world"))); in TEST_F() 124 Handle<mirror::String> s0(hs.NewHandle(t.InternWeak(hello.Get()))); in TEST_F() 125 Handle<mirror::String> s1(hs.NewHandle(t.InternWeak(world.Get()))); in TEST_F() 142 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "still here"))); in TEST_F() [all …]
|
D | proxy_test.cc | 38 hs.NewHandle(soa.Decode<mirror::ClassLoader>(jclass_loader))); in TEST_F() 40 Handle<mirror::Class> I(hs.NewHandle( in TEST_F() 42 Handle<mirror::Class> J(hs.NewHandle( in TEST_F() 50 Handle<mirror::Class> proxy_class(hs.NewHandle( in TEST_F() 72 hs.NewHandle(soa.Decode<mirror::ClassLoader>(jclass_loader))); in TEST_F() 74 Handle<mirror::Class> I(hs.NewHandle( in TEST_F() 76 Handle<mirror::Class> J(hs.NewHandle( in TEST_F() 86 proxyClass = hs.NewHandle( in TEST_F() 101 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Class;"))); in TEST_F() 104 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Class;"))); in TEST_F() [all …]
|
D | handle_scope-inl.h | 110 inline MutableHandle<T> FixedSizeHandleScope<kNumReferences>::NewHandle(T* object) { in NewHandle() function 118 inline MutableHandle<MirrorType> FixedSizeHandleScope<kNumReferences>::NewHandle( in NewHandle() function 120 return NewHandle(object.Ptr()); in NewHandle() 125 return HandleWrapper<T>(object, NewHandle(*object)); in NewHandleWrapper() 131 return HandleWrapperObjPtr<T>(object, NewHandle(*object)); in NewHandleWrapper() 187 MutableHandle<T> VariableSizedHandleScope::NewHandle(T* object) { in NewHandle() function 191 return current_scope_->NewHandle(object); in NewHandle() 195 inline MutableHandle<MirrorType> VariableSizedHandleScope::NewHandle(ObjPtr<MirrorType> ptr) { in NewHandle() function 196 return NewHandle(ptr.Ptr()); in NewHandle()
|
D | transaction_test.cc | 37 hs.NewHandle(soa.Decode<mirror::ClassLoader>(jclass_loader))); in testTransactionAbort() 44 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), in testTransactionAbort() 95 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"))); in TEST_F() 99 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F() 112 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"))); in TEST_F() 114 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F() 139 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"))); in TEST_F() 148 hs.NewHandle( in TEST_F() 165 hs.NewHandle(soa.Decode<mirror::ClassLoader>(LoadDex("Transaction")))); in TEST_F() 169 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LStaticFieldsTest;", class_loader))); in TEST_F() [all …]
|
D | jobject_comparator.cc | 35 Handle<mirror::Object> obj1(hs.NewHandle(soa.Decode<mirror::Object>(jobj1))); in operator ()() 36 Handle<mirror::Object> obj2(hs.NewHandle(soa.Decode<mirror::Object>(jobj2))); in operator ()()
|
D | imtable_test.cc | 49 MutableHandle<mirror::ClassLoader> h_class_loader = hs.NewHandle<mirror::ClassLoader>(nullptr); in LoadClasses() 55 hs.NewHandle(class_linker->FindClass(self, class_name.c_str(), h_class_loader))); in LoadClasses() 65 hs.NewHandle(class_linker->FindClass(self, class_name.c_str(), h_class_loader))); in LoadClasses()
|
D | class_linker_test.cc | 179 Handle<mirror::ClassLoader> loader(hs.NewHandle(class_loader)); in AssertArrayClass() 181 hs.NewHandle(class_linker_->FindClass(self, array_descriptor.c_str(), loader))); in AssertArrayClass() 409 hs.NewHandle(class_linker_->FindSystemClass(self, descriptor.c_str()))); in AssertDexFileClass() 876 hs.NewHandle(soa.Decode<mirror::ClassLoader>(LoadDex("Nested")))); in TEST_F() 910 hs.NewHandle(soa.Decode<mirror::ClassLoader>(LoadDex("MyClass")))); in TEST_F() 959 hs.NewHandle(soa.Decode<mirror::ClassLoader>(LoadDex("MyClass")))); in TEST_F() 979 hs.NewHandle(soa.Decode<mirror::ClassLoader>(LoadDex("AllFields")))); in TEST_F() 984 Handle<mirror::DexCache> dex_cache = hs.NewHandle(all_fields_klass->GetDexCache()); in TEST_F() 1014 hs.NewHandle(soa.Decode<mirror::ClassLoader>(LoadDex("ErroneousInit")))); in TEST_F() 1017 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LErroneousInit;", class_loader)); in TEST_F() [all …]
|
/art/runtime/gc/ |
D | reference_queue_test.cc | 38 auto ref_class = hs.NewHandle( in TEST_F() 42 auto ref1(hs.NewHandle(ref_class->AllocObject(self)->AsReference())); in TEST_F() 44 auto ref2(hs.NewHandle(ref_class->AllocObject(self)->AsReference())); in TEST_F() 73 auto weak_ref_class = hs.NewHandle( in TEST_F() 77 auto finalizer_ref_class = hs.NewHandle( in TEST_F() 81 auto ref1(hs.NewHandle(weak_ref_class->AllocObject(self)->AsReference())); in TEST_F() 83 auto ref2(hs.NewHandle(finalizer_ref_class->AllocObject(self)->AsReference())); in TEST_F()
|
D | heap_verification_test.cc | 55 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "test"))); in TEST_F() 76 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "test"))); in TEST_F() 90 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "test"))); in TEST_F() 115 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "obj"))); in TEST_F() 117 hs.NewHandle(AllocObjectArray<mirror::Object>(soa.Self(), 256))); in TEST_F() 135 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "obj"))); in TEST_F() 138 hs.NewHandle(AllocObjectArray<mirror::Object>(soa.Self(), 256))); in TEST_F() 156 hs.NewHandle(AllocObjectArray<mirror::Object>(soa.Self(), 256))); in TEST_F()
|
/art/runtime/interpreter/ |
D | unstarted_runtime_test.cc | 150 Handle<mirror::Class> dst_component_handle(hs_misc.NewHandle(dst_component_class)); in RunArrayCopy() 153 hs_misc.NewHandle(CreateObjectArray(self, src_component_class, src_data))); in RunArrayCopy() 156 hs_misc.NewHandle(CreateObjectArray(self, dst_component_handle.Get(), dst_data))); in RunArrayCopy() 309 Handle<mirror::String> h_test_string(hs.NewHandle( in TEST_F() 312 Handle<mirror::CharArray> h_char_array(hs.NewHandle( in TEST_F() 447 hs_misc.NewHandle(mirror::Class::GetJavaLangClass()->GetSuperClass())); in TEST_F() 450 hs_data.NewHandle(mirror::String::AllocFromModifiedUtf8(self, "1")); in TEST_F() 451 hs_data.NewHandle(mirror::String::AllocFromModifiedUtf8(self, "2")); in TEST_F() 452 hs_data.NewHandle(mirror::String::AllocFromModifiedUtf8(self, "3")); in TEST_F() 455 hs_misc.NewHandle(CreateObjectArray(self, object_class.Get(), hs_data))); in TEST_F() [all …]
|
/art/runtime/native/ |
D | java_lang_Class.cc | 180 hs.NewHandle(soa.Decode<mirror::ClassLoader>(javaLoader))); in Class_classForName() 183 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName() 214 return soa.AddLocalReference<jstring>(mirror::Class::ComputeName(hs.NewHandle(c))); in Class_getNameNative() 228 Handle<mirror::Class> klass = hs.NewHandle(DecodeClass(soa, javaThis)); in Class_getInterfacesInternal() 240 Handle<mirror::Class> class_array_class = hs.NewHandle(GetClassArrayClass(soa.Self())); in Class_getInterfacesInternal() 241 Handle<mirror::ObjectArray<mirror::Class>> ifaces = hs.NewHandle( in Class_getInterfacesInternal() 253 MutableHandle<mirror::Class> interface(hs.NewHandle<mirror::Class>(nullptr)); in Class_getInterfacesInternal() 283 auto object_array = hs.NewHandle(mirror::ObjectArray<mirror::Field>::Alloc( in GetDeclaredFields() 411 MutableHandle<mirror::Class> h_clazz(hs.NewHandle(clazz)); in GetPublicFieldRecursive() 412 Handle<mirror::String> h_name(hs.NewHandle(name)); in GetPublicFieldRecursive() [all …]
|
D | java_lang_reflect_Executable.cc | 62 Handle<mirror::Class> klass(hs.NewHandle(soa.Decode<mirror::Class>(annotationType))); in Executable_getAnnotationNative() 86 hs.NewHandle(annotations::GetParameterAnnotations(method)); in Executable_getParameterAnnotationsNative() 104 Handle<mirror::Class> declaring_class = hs.NewHandle(method->GetDeclaringClass()); in Executable_getParameterAnnotationsNative() 112 Handle<mirror::ObjectArray<mirror::Object>> resized_annotations = hs.NewHandle( in Executable_getParameterAnnotationsNative() 129 Handle<mirror::ObjectArray<mirror::Object>> empty_annotations = hs.NewHandle( in Executable_getParameterAnnotationsNative() 159 Handle<mirror::Method> executable = hs.NewHandle(soa.Decode<mirror::Method>(javaMethod)); in Executable_getParameters0() 167 hs.NewHandle<mirror::ObjectArray<mirror::String>>(nullptr); in Executable_getParameters0() 168 MutableHandle<mirror::IntArray> access_flags = hs.NewHandle<mirror::IntArray>(nullptr); in Executable_getParameters0() 196 hs.NewHandle( in Executable_getParameters0() 199 hs.NewHandle( in Executable_getParameters0() [all …]
|
D | java_lang_String.cc | 58 Handle<mirror::String> string_this(hs.NewHandle(soa.Decode<mirror::String>(java_this))); in String_concat() 59 Handle<mirror::String> string_arg(hs.NewHandle(soa.Decode<mirror::String>(java_string_arg))); in String_concat() 74 Handle<mirror::String> string_this(hs.NewHandle(soa.Decode<mirror::String>(java_this))); in String_fastSubstring() 88 Handle<mirror::CharArray> char_array(hs.NewHandle(soa.Decode<mirror::CharArray>(buffer))); in String_getCharsNoCheck() 101 Handle<mirror::String> string = hs.NewHandle(soa.Decode<mirror::String>(java_this)); in String_doReplace()
|
D | java_lang_invoke_MethodHandleImpl.cc | 36 Handle<mirror::MethodHandleImpl> handle = hs.NewHandle( in MethodHandleImpl_getMemberInternal() 47 MutableHandle<mirror::Object> h_object(hs.NewHandle<mirror::Object>(nullptr)); in MethodHandleImpl_getMemberInternal()
|
D | java_lang_StringFactory.cc | 40 Handle<mirror::ByteArray> byte_array(hs.NewHandle(soa.Decode<mirror::ByteArray>(java_data))); in StringFactory_newStringFromBytes() 64 Handle<mirror::CharArray> char_array(hs.NewHandle(soa.Decode<mirror::CharArray>(java_data))); in StringFactory_newStringFromChars() 81 Handle<mirror::String> string(hs.NewHandle(soa.Decode<mirror::String>(to_copy))); in StringFactory_newStringFromString()
|
/art/compiler/optimizing/ |
D | reference_type_propagation.h | 67 MutableHandle<T> NewHandle(T* object) REQUIRES_SHARED(Locks::mutator_lock_) { in NewHandle() function 68 return handles_->NewHandle(object); in NewHandle() 72 MutableHandle<T> NewHandle(ObjPtr<T> object) REQUIRES_SHARED(Locks::mutator_lock_) { in NewHandle() function 73 return handles_->NewHandle(object); in NewHandle()
|
/art/openjdkjvmti/ |
D | ti_class_loader.cc | 71 hs.NewHandle(FindSourceDexFileObject(self, loader))); in AddToClassLoader() 75 art::Handle<art::mirror::LongArray> old_cookie(hs.NewHandle(GetDexFileCookie(java_dex_file_obj))); in AddToClassLoader() 76 art::Handle<art::mirror::LongArray> cookie(hs.NewHandle( in AddToClassLoader() 123 hs.NewHandle(art::mirror::LongArray::Alloc(self, cookie->GetLength() + 1))); in AllocateNewDexFileCookie() 143 base_dex_loader_class(hs.NewHandle(self->DecodeJObject( in GetDexElementList() 153 art::Handle<art::mirror::Class> loader_class(hs.NewHandle(loader->GetClass())); in GetDexElementList() 164 hs.NewHandle(path_list_field->GetObject(loader.Get()))); in GetDexElementList()
|
/art/runtime/dex/ |
D | dex_file_annotations.cc | 59 : ClassData(hs.NewHandle(field->GetDeclaringClass())) { } in ClassData() 345 Handle<mirror::Class> annotation_class(hs.NewHandle( in ProcessEncodedAnnotation() 347 hs.NewHandle(klass.GetDexCache()), in ProcessEncodedAnnotation() 348 hs.NewHandle(klass.GetClassLoader())))); in ProcessEncodedAnnotation() 374 Handle<mirror::ObjectArray<mirror::Object>> h_element_array(hs.NewHandle(element_array)); in ProcessEncodedAnnotation() 460 dex::StringIndex(index), hs.NewHandle(klass.GetDexCache())); in ProcessAnnotationValue() 477 hs.NewHandle(klass.GetDexCache()), in ProcessAnnotationValue() 478 hs.NewHandle(klass.GetClassLoader())); in ProcessAnnotationValue() 503 hs.NewHandle(klass.GetDexCache()), in ProcessAnnotationValue() 504 hs.NewHandle(klass.GetClassLoader())); in ProcessAnnotationValue() [all …]
|