/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() 152 Handle<mirror::MethodType> method1_type = hs.NewHandle( in TEST_F() [all …]
|
D | emulated_stack_frame.cc | 154 Handle<mirror::ObjectArray<mirror::Class>> from_types(hs.NewHandle(caller_type->GetPTypes())); in CreateFromShadowFrameAndArgs() 155 Handle<mirror::ObjectArray<mirror::Class>> to_types(hs.NewHandle(callee_type->GetPTypes())); in CreateFromShadowFrameAndArgs() 167 Handle<mirror::Class> r_type(hs.NewHandle(callee_type->GetRType())); in CreateFromShadowFrameAndArgs() 174 Handle<mirror::ObjectArray<mirror::Object>> references(hs.NewHandle( in CreateFromShadowFrameAndArgs() 181 Handle<ByteArray> stack_frame(hs.NewHandle(ByteArray::Alloc(self, frame_size))); in CreateFromShadowFrameAndArgs() 196 Handle<EmulatedStackFrame> sf(hs.NewHandle( in CreateFromShadowFrameAndArgs() 220 Handle<mirror::MethodType> frame_callsite_type(hs.NewHandle(GetType())); in WriteToShadowFrame() 221 Handle<mirror::ObjectArray<mirror::Object>> references(hs.NewHandle(GetReferences())); in WriteToShadowFrame() 222 Handle<ByteArray> stack_frame(hs.NewHandle(GetStackFrame())); in WriteToShadowFrame() 233 Handle<mirror::Class> r_type(hs.NewHandle(GetType()->GetRType())); in GetReturnValue() [all …]
|
D | object_test.cc | 64 hs.NewHandle(String::AllocFromModifiedUtf8(self, expected_utf16_length, utf8_in))); in AssertString() 110 Handle<ObjectArray<Object>> a1(hs.NewHandle(AllocObjectArray<Object>(soa.Self(), 256))); in TEST_F() 120 Handle<ObjectArray<Object>> oa(hs.NewHandle(AllocObjectArray<Object>(soa.Self(), 2))); in TEST_F() 145 Handle<mirror::Class> klass(hs.NewHandle(oa->GetClass())); in TEST_F() 158 hs.NewHandle(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSizeShift(), in TEST_F() 181 hs.NewHandle(Array::Alloc<true, true>(soa.Self(), c, 1, c->GetComponentSizeShift(), in TEST_F() 318 Handle<Class> c(hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "I"))); in TEST_F() 319 MutableHandle<IntArray> dims(hs.NewHandle(IntArray::Alloc(soa.Self(), 1))); in TEST_F() 356 Handle<mirror::ClassLoader> loader(hs.NewHandle(soa.Decode<ClassLoader>(class_loader))); in TEST_F() 378 Handle<CharArray> char_array(hs.NewHandle(CharArray::Alloc(soa.Self(), 0))); in TEST_F() [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 | 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 | 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 | 119 hs.NewHandle(soa.Decode<mirror::ClassLoader>(jclass_loader))); in TEST_F() 121 Handle<mirror::Class> I(hs.NewHandle( in TEST_F() 123 Handle<mirror::Class> J(hs.NewHandle( in TEST_F() 131 Handle<mirror::Class> proxy_class(hs.NewHandle( in TEST_F() 153 hs.NewHandle(soa.Decode<mirror::ClassLoader>(jclass_loader))); in TEST_F() 155 Handle<mirror::Class> I(hs.NewHandle( in TEST_F() 157 Handle<mirror::Class> J(hs.NewHandle( in TEST_F() 167 proxyClass = hs.NewHandle(GenerateProxyClass(soa, jclass_loader, "$Proxy1234", interfaces)); in TEST_F() 181 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Class;"))); in TEST_F() 184 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Class;"))); in TEST_F() [all …]
|
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() 97 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"))); in TEST_F() 102 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F() 117 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"))); in TEST_F() 119 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F() 146 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"))); in TEST_F() 156 hs.NewHandle( in TEST_F() 174 hs.NewHandle(soa.Decode<mirror::ClassLoader>(LoadDex("Transaction")))); in TEST_F() 178 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LStaticFieldsTest;", class_loader))); 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 | 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 | dex_file_annotations.cc | 57 : ClassData(hs.NewHandle(field->GetDeclaringClass())) { } in ClassData() 324 Handle<mirror::Class> annotation_class(hs.NewHandle( in ProcessEncodedAnnotation() 327 hs.NewHandle(klass.GetDexCache()), in ProcessEncodedAnnotation() 328 hs.NewHandle(klass.GetClassLoader())))); in ProcessEncodedAnnotation() 354 Handle<mirror::ObjectArray<mirror::Object>> h_element_array(hs.NewHandle(element_array)); in ProcessEncodedAnnotation() 440 klass.GetDexFile(), dex::StringIndex(index), hs.NewHandle(klass.GetDexCache())); in ProcessAnnotationValue() 458 hs.NewHandle(klass.GetDexCache()), in ProcessAnnotationValue() 459 hs.NewHandle(klass.GetClassLoader())); in ProcessAnnotationValue() 485 hs.NewHandle(klass.GetDexCache()), in ProcessAnnotationValue() 486 hs.NewHandle(klass.GetClassLoader())); in ProcessAnnotationValue() [all …]
|
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 | 178 Handle<mirror::ClassLoader> loader(hs.NewHandle(class_loader)); in AssertArrayClass() 180 hs.NewHandle(class_linker_->FindClass(self, array_descriptor.c_str(), loader))); in AssertArrayClass() 413 hs.NewHandle(class_linker_->FindSystemClass(self, descriptor.c_str()))); in AssertDexFileClass() 836 hs.NewHandle(soa.Decode<mirror::ClassLoader>(LoadDex("Nested")))); in TEST_F() 870 hs.NewHandle(soa.Decode<mirror::ClassLoader>(LoadDex("MyClass")))); in TEST_F() 919 hs.NewHandle(soa.Decode<mirror::ClassLoader>(LoadDex("MyClass")))); in TEST_F() 940 hs.NewHandle(soa.Decode<mirror::ClassLoader>(LoadDex("AllFields")))); in TEST_F() 945 Handle<mirror::DexCache> dex_cache = hs.NewHandle(all_fields_klass->GetDexCache()); in TEST_F() 975 hs.NewHandle(soa.Decode<mirror::ClassLoader>(LoadDex("ErroneousInit")))); in TEST_F() 978 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 | 149 Handle<mirror::Class> dst_component_handle(hs_misc.NewHandle(dst_component_class)); in RunArrayCopy() 152 hs_misc.NewHandle(CreateObjectArray(self, src_component_class, src_data))); in RunArrayCopy() 155 hs_misc.NewHandle(CreateObjectArray(self, dst_component_handle.Get(), dst_data))); in RunArrayCopy() 308 Handle<mirror::String> h_test_string(hs.NewHandle( in TEST_F() 311 Handle<mirror::CharArray> h_char_array(hs.NewHandle( in TEST_F() 442 hs_misc.NewHandle(mirror::Class::GetJavaLangClass()->GetSuperClass())); in TEST_F() 445 hs_data.NewHandle(mirror::String::AllocFromModifiedUtf8(self, "1")); in TEST_F() 446 hs_data.NewHandle(mirror::String::AllocFromModifiedUtf8(self, "2")); in TEST_F() 447 hs_data.NewHandle(mirror::String::AllocFromModifiedUtf8(self, "3")); in TEST_F() 450 hs_misc.NewHandle(CreateObjectArray(self, object_class.Get(), hs_data))); in TEST_F() [all …]
|
/art/runtime/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() 150 art::Handle<art::mirror::ClassLoader> null_loader(hs.NewHandle<art::mirror::ClassLoader>( in FindSourceDexFileObject() 152 art::Handle<art::mirror::Class> base_dex_loader_class(hs.NewHandle(class_linker->FindClass( in FindSourceDexFileObject() 171 art::Handle<art::mirror::Class> loader_class(hs.NewHandle(loader->GetClass())); in FindSourceDexFileObject() 181 hs.NewHandle(path_list_field->GetObject(loader.Get()))); in FindSourceDexFileObject() 184 art::Handle<art::mirror::ObjectArray<art::mirror::Object>> dex_elements_list(hs.NewHandle( in FindSourceDexFileObject()
|
/art/runtime/native/ |
D | java_lang_Class.cc | 83 hs.NewHandle(soa.Decode<mirror::ClassLoader>(javaLoader))); in Class_classForName() 86 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName() 111 return soa.AddLocalReference<jstring>(mirror::Class::ComputeName(hs.NewHandle(c))); in Class_getNameNative() 125 Handle<mirror::Class> klass = hs.NewHandle(DecodeClass(soa, javaThis)); in Class_getInterfacesInternal() 137 Handle<mirror::Class> class_array_class = hs.NewHandle(GetClassArrayClass(soa.Self())); in Class_getInterfacesInternal() 138 Handle<mirror::ObjectArray<mirror::Class>> ifaces = hs.NewHandle( in Class_getInterfacesInternal() 149 MutableHandle<mirror::Class> interface(hs.NewHandle<mirror::Class>(nullptr)); in Class_getInterfacesInternal() 181 auto object_array = hs.NewHandle(mirror::ObjectArray<mirror::Field>::Alloc( in GetDeclaredFields() 309 MutableHandle<mirror::Class> h_clazz(hs.NewHandle(clazz)); in GetPublicFieldRecursive() 310 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() 93 Handle<mirror::Method> executable = hs.NewHandle(soa.Decode<mirror::Method>(javaMethod)); in Executable_getParameters0() 101 hs.NewHandle<mirror::ObjectArray<mirror::String>>(nullptr); in Executable_getParameters0() 102 MutableHandle<mirror::IntArray> access_flags = hs.NewHandle<mirror::IntArray>(nullptr); in Executable_getParameters0() 130 hs.NewHandle( in Executable_getParameters0() 133 hs.NewHandle( in Executable_getParameters0() 143 hs.NewHandle(soa.Decode<mirror::Class>(WellKnownClasses::java_lang_reflect_Parameter)); in Executable_getParameters0() 149 MutableHandle<mirror::String> name = hs.NewHandle<mirror::String>(nullptr); in Executable_getParameters0() 150 MutableHandle<mirror::Object> parameter = hs.NewHandle<mirror::Object>(nullptr); in Executable_getParameters0() 195 Handle<mirror::Class> klass(hs.NewHandle(soa.Decode<mirror::Class>(annotationType))); in Executable_isAnnotationPresentNative() [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() 81 Handle<mirror::String> string_this(hs.NewHandle(soa.Decode<mirror::String>(java_this))); in String_fastSubstring() 95 Handle<mirror::CharArray> char_array(hs.NewHandle(soa.Decode<mirror::CharArray>(buffer))); in String_getCharsNoCheck() 108 Handle<mirror::String> string = hs.NewHandle(soa.Decode<mirror::String>(java_this)); in String_doReplace()
|
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()
|
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()
|
/art/compiler/optimizing/ |
D | reference_type_propagation.h | 63 MutableHandle<T> NewHandle(T* object) REQUIRES_SHARED(Locks::mutator_lock_) { in NewHandle() function 64 return handles_->NewHandle(object); in NewHandle() 68 MutableHandle<T> NewHandle(ObjPtr<T> object) REQUIRES_SHARED(Locks::mutator_lock_) { in NewHandle() function 69 return handles_->NewHandle(object); in NewHandle()
|
D | builder.h | 89 handles->NewHandle<mirror::ClassLoader>(nullptr), in graph_() 90 handles->NewHandle<mirror::DexCache>(nullptr), in graph_() 104 handles->NewHandle<mirror::DexCache>(nullptr), in graph_()
|