Home
last modified time | relevance | path

Searched refs:hs (Results 1 – 25 of 73) sorted by relevance

123

/art/runtime/
Dintern_table_test.cc32 StackHandleScope<4> hs(soa.Self()); in TEST_F() local
33 Handle<mirror::String> foo_1(hs.NewHandle(intern_table.InternStrong(3, "foo"))); in TEST_F()
34 Handle<mirror::String> foo_2(hs.NewHandle(intern_table.InternStrong(3, "foo"))); in TEST_F()
36 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F()
37 Handle<mirror::String> bar(hs.NewHandle(intern_table.InternStrong(3, "bar"))); in TEST_F()
54 StackHandleScope<1> hs(soa.Self()); in TEST_F() local
56 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "foo"))); in TEST_F()
102 StackHandleScope<5> hs(soa.Self()); in TEST_F() local
104 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello"))); in TEST_F()
106 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "world"))); in TEST_F()
[all …]
Dclass_linker-inl.h48 StackHandleScope<2> hs(Thread::Current()); in FindArrayClass()
49 Handle<mirror::ClassLoader> class_loader(hs.NewHandle((*element_class)->GetClassLoader())); in FindArrayClass()
50 HandleWrapper<mirror::Class> h_element_class(hs.NewHandleWrapper(element_class)); in FindArrayClass()
64 StackHandleScope<1> hs(Thread::Current()); in ResolveString()
65 Handle<mirror::DexCache> dex_cache(hs.NewHandle(declaring_class->GetDexCache())); in ResolveString()
80 StackHandleScope<2> hs(Thread::Current()); in ResolveType()
81 Handle<mirror::DexCache> dex_cache(hs.NewHandle(declaring_class->GetDexCache())); in ResolveType()
82 Handle<mirror::ClassLoader> class_loader(hs.NewHandle(declaring_class->GetClassLoader())); in ResolveType()
96 StackHandleScope<2> hs(Thread::Current()); in ResolveType()
97 Handle<mirror::DexCache> dex_cache(hs.NewHandle(dex_cache_ptr)); in ResolveType()
[all …]
Dproxy_test.cc112 StackHandleScope<4> hs(soa.Self()); in TEST_F() local
114 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(jclass_loader))); in TEST_F()
116 Handle<mirror::Class> I(hs.NewHandle( in TEST_F()
118 Handle<mirror::Class> J(hs.NewHandle( in TEST_F()
126 Handle<mirror::Class> proxy_class(hs.NewHandle( in TEST_F()
146 StackHandleScope<9> hs(soa.Self()); in TEST_F() local
148 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(jclass_loader))); in TEST_F()
150 Handle<mirror::Class> I(hs.NewHandle( in TEST_F()
152 Handle<mirror::Class> J(hs.NewHandle( in TEST_F()
162 proxyClass = hs.NewHandle(GenerateProxyClass(soa, jclass_loader, "$Proxy1234", interfaces)); in TEST_F()
[all …]
Dtransaction_test.cc31 StackHandleScope<2> hs(soa.Self()); in TEST_F() local
33 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"))); in TEST_F()
38 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
50 StackHandleScope<2> hs(soa.Self()); in TEST_F() local
52 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"))); in TEST_F()
54 Handle<mirror::Object> h_obj(hs.NewHandle(h_klass->AllocObject(soa.Self()))); in TEST_F()
78 StackHandleScope<2> hs(soa.Self()); in TEST_F() local
80 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"))); in TEST_F()
90 hs.NewHandle( in TEST_F()
105 StackHandleScope<4> hs(soa.Self()); in TEST_F() local
[all …]
Dquick_exception_handler.cc78 StackHandleScope<1> hs(self_); in VisitFrame() local
79 return HandleTryItems(hs.NewHandle(method)); in VisitFrame()
91 StackHandleScope<1> hs(Thread::Current()); in HandleTryItems() local
92 Handle<mirror::Class> to_find(hs.NewHandle((*exception_)->GetClass())); in HandleTryItems()
126 StackHandleScope<1> hs(self_); in FindCatch() local
127 Handle<mirror::Throwable> exception_ref(hs.NewHandle(exception)); in FindCatch()
206 StackHandleScope<3> hs(self_); // Dex cache, class loader and method. in HandleDeoptimization() local
208 Handle<mirror::DexCache> h_dex_cache(hs.NewHandle(declaring_class->GetDexCache())); in HandleDeoptimization()
209 Handle<mirror::ClassLoader> h_class_loader(hs.NewHandle(declaring_class->GetClassLoader())); in HandleDeoptimization()
210 Handle<mirror::ArtMethod> h_method(hs.NewHandle(m)); in HandleDeoptimization()
Dclass_linker_test.cc106 StackHandleScope<2> hs(self); in AssertArrayClass() local
107 Handle<mirror::ClassLoader> loader(hs.NewHandle(class_loader)); in AssertArrayClass()
109 hs.NewHandle(class_linker_->FindClass(self, array_descriptor.c_str(), loader))); in AssertArrayClass()
181 StackHandleScope<1> hs(Thread::Current()); in AssertField() local
182 FieldHelper fh(hs.NewHandle(field)); in AssertField()
279 StackHandleScope<1> hs(Thread::Current()); in AssertClass() local
280 FieldHelper fh(hs.NewHandle<mirror::ArtField>(nullptr)); in AssertClass()
326 StackHandleScope<1> hs(self); in AssertDexFileClass() local
328 hs.NewHandle(class_linker_->FindSystemClass(self, descriptor.c_str()))); in AssertDexFileClass()
626 StackHandleScope<1> hs(soa.Self()); in TEST_F() local
[all …]
Dclass_linker.cc210 StackHandleScope<64> hs(self); // 64 is picked arbitrarily. in InitWithoutImage() local
211 Handle<mirror::Class> java_lang_Class(hs.NewHandle(down_cast<mirror::Class*>( in InitWithoutImage()
226 Handle<mirror::Class> class_array_class(hs.NewHandle( in InitWithoutImage()
231 Handle<mirror::Class> java_lang_Object(hs.NewHandle( in InitWithoutImage()
239 Handle<mirror::Class> object_array_class(hs.NewHandle( in InitWithoutImage()
244 Handle<mirror::Class> char_class(hs.NewHandle( in InitWithoutImage()
248 Handle<mirror::Class> char_array_class(hs.NewHandle( in InitWithoutImage()
255 Handle<mirror::Class> java_lang_String(hs.NewHandle( in InitWithoutImage()
262 Handle<mirror::Class> java_lang_ref_Reference(hs.NewHandle( in InitWithoutImage()
295 Handle<mirror::Class> int_array_class(hs.NewHandle( in InitWithoutImage()
[all …]
/art/runtime/mirror/
Dobject_test.cc61 StackHandleScope<1> hs(self); in AssertString() local
63 hs.NewHandle(String::AllocFromModifiedUtf8(self, expected_utf16_length, utf8_in))); in AssertString()
118 StackHandleScope<2> hs(soa.Self()); in TEST_F() local
120 hs.NewHandle(class_linker_->AllocObjectArray<Object>(soa.Self(), 256))); in TEST_F()
129 StackHandleScope<2> hs(soa.Self()); in TEST_F() local
131 hs.NewHandle(class_linker_->AllocObjectArray<Object>(soa.Self(), 2))); in TEST_F()
156 Handle<mirror::Class> klass(hs.NewHandle(oa->GetClass())); in TEST_F()
167 StackHandleScope<1> hs(soa.Self()); in TEST_F() local
169 hs.NewHandle(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSize(), in TEST_F()
190 StackHandleScope<1> hs(soa.Self()); in TEST_F() local
[all …]
Darray.cc48 StackHandleScope<1> hs(self); in RecursiveCreateMultiArray() local
50 hs.NewHandle( in RecursiveCreateMultiArray()
60 StackHandleScope<1> hs(self); in RecursiveCreateMultiArray() local
61 Handle<mirror::Class> h_component_type(hs.NewHandle(array_class->GetComponentType())); in RecursiveCreateMultiArray()
96 StackHandleScope<1> hs(self); in CreateMultiArray() local
98 hs.NewHandle(class_linker->FindArrayClass(self, &element_class_ptr))); in CreateMultiArray()
Dobject.cc128 StackHandleScope<1> hs(self); in Clone() local
129 Handle<Object> this_object(hs.NewHandle(this)); in Clone()
173 StackHandleScope<1> hs(self); in IdentityHashCode() local
174 Handle<mirror::Object> h_this(hs.NewHandle(current_this)); in IdentityHashCode()
214 StackHandleScope<1> hs(Thread::Current()); in CheckFieldAssignmentImpl() local
215 FieldHelper fh(hs.NewHandle(field)); in CheckFieldAssignmentImpl()
234 StackHandleScope<1> hs(Thread::Current()); in CheckFieldAssignmentImpl() local
235 FieldHelper fh(hs.NewHandle(field)); in CheckFieldAssignmentImpl()
Dclass.cc80 StackHandleScope<3> hs(self); in SetStatus() local
82 Handle<mirror::Throwable> old_exception(hs.NewHandle(self->GetException(&old_throw_location))); in SetStatus()
84 Handle<mirror::Object> old_throw_this_object(hs.NewHandle(old_throw_location.GetThis())); in SetStatus()
85 Handle<mirror::ArtMethod> old_throw_method(hs.NewHandle(old_throw_location.GetMethod())); in SetStatus()
215 StackHandleScope<2> hs(self); in DumpClass() local
216 Handle<mirror::Class> h_this(hs.NewHandle(this)); in DumpClass()
217 Handle<mirror::Class> h_super(hs.NewHandle(GetSuperClass())); in DumpClass()
636 StackHandleScope<1> hs(self); in FindStaticField() local
637 HandleWrapper<mirror::Class> h_k(hs.NewHandleWrapper(&k)); in FindStaticField()
640 StackHandleScope<1> hs(self); in FindStaticField() local
[all …]
Dart_method.cc123 StackHandleScope<2> hs(Thread::Current()); in FindOverriddenMethod() local
124 MethodHelper mh(hs.NewHandle(this)); in FindOverriddenMethod()
125 MethodHelper interface_mh(hs.NewHandle<mirror::ArtMethod>(nullptr)); in FindOverriddenMethod()
140 StackHandleScope<2> hs(Thread::Current()); in FindOverriddenMethod() local
141 MethodHelper result_mh(hs.NewHandle(result)); in FindOverriddenMethod()
142 MethodHelper this_mh(hs.NewHandle(this)); in FindOverriddenMethod()
219 StackHandleScope<1> hs(self); in FindCatchBlock() local
220 Handle<mirror::Throwable> exception(hs.NewHandle(self->GetException(&throw_location))); in FindCatchBlock()
Ddex_cache_test.cc36 StackHandleScope<1> hs(soa.Self()); in TEST_F() local
38 hs.NewHandle(class_linker_->AllocDexCache(soa.Self(), *java_lang_dex_file_))); in TEST_F()
/art/compiler/dex/
Dmir_field_info.cc46 StackHandleScope<3> hs(soa.Self()); in Resolve() local
47 Handle<mirror::DexCache> dex_cache(hs.NewHandle(compiler_driver->GetDexCache(mUnit))); in Resolve()
49 hs.NewHandle(compiler_driver->GetClassLoader(soa, mUnit))); in Resolve()
50 Handle<mirror::Class> referrer_class(hs.NewHandle( in Resolve()
93 StackHandleScope<3> hs(soa.Self()); in Resolve() local
94 Handle<mirror::DexCache> dex_cache(hs.NewHandle(compiler_driver->GetDexCache(mUnit))); in Resolve()
96 hs.NewHandle(compiler_driver->GetClassLoader(soa, mUnit))); in Resolve()
97 Handle<mirror::Class> referrer_class(hs.NewHandle( in Resolve()
Dmir_method_info.cc48 StackHandleScope<3> hs(soa.Self()); in Resolve() local
49 Handle<mirror::DexCache> dex_cache(hs.NewHandle(compiler_driver->GetDexCache(mUnit))); in Resolve()
51 hs.NewHandle(compiler_driver->GetClassLoader(soa, mUnit))); in Resolve()
52 Handle<mirror::Class> referrer_class(hs.NewHandle( in Resolve()
/art/runtime/gc/
Dheap_test.cc47 StackHandleScope<1> hs(soa.Self()); in TEST_F() local
49 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"))); in TEST_F()
51 StackHandleScope<1> hs(soa.Self()); in TEST_F() local
52 Handle<mirror::ObjectArray<mirror::Object>> array(hs.NewHandle( in TEST_F()
/art/runtime/native/
Djava_lang_Class.cc63 StackHandleScope<2> hs(soa.Self()); in Class_classForName() local
64 …Handle<mirror::ClassLoader> class_loader(hs.NewHandle(soa.Decode<mirror::ClassLoader*>(javaLoader)… in Class_classForName()
67 hs.NewHandle(class_linker->FindClass(soa.Self(), descriptor.c_str(), class_loader))); in Class_classForName()
88 StackHandleScope<1> hs(soa.Self()); in Class_getNameNative() local
90 return soa.AddLocalReference<jstring>(mirror::Class::ComputeName(hs.NewHandle(c))); in Class_getNameNative()
Djava_lang_reflect_Array.cc31 StackHandleScope<2> hs(soa.Self()); in Array_createMultiArray() local
32 Handle<mirror::Class> element_class(hs.NewHandle(soa.Decode<mirror::Class*>(javaElementClass))); in Array_createMultiArray()
40 hs.NewHandle(down_cast<mirror::IntArray*>(dimensions_obj))); in Array_createMultiArray()
Djava_lang_reflect_Constructor.cc40 StackHandleScope<1> hs(soa.Self()); in Constructor_newInstance() local
41 Handle<mirror::Class> c(hs.NewHandle(m->GetDeclaringClass())); in Constructor_newInstance()
/art/runtime/arch/
Dstub_test.cc611 StackHandleScope<2> hs(soa.Self()); in TEST_F() local
613 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello, world!"))); in TEST_F()
637 Handle<mirror::String> obj2(hs.NewHandle( in TEST_F()
684 StackHandleScope<kNumberOfLocks + 1> hs(self); in TestUnlockObject() local
686 hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "hello, world!"))); in TestUnlockObject()
729 objects[i] = hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), "")); in TestUnlockObject()
833 StackHandleScope<2> hs(soa.Self()); in TEST_F() local
835 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"))); in TEST_F()
837 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/String;"))); in TEST_F()
886 StackHandleScope<5> hs(soa.Self()); in TEST_F() local
[all …]
/art/compiler/driver/
Dcompiler_driver.cc582 StackHandleScope<1> hs(soa.Self()); in CompileOne() local
584 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(jclass_loader))); in CompileOne()
690 StackHandleScope<1> hs(Thread::Current()); in ResolveCatchBlockExceptionsClassVisitor() local
691 MethodHelper mh(hs.NewHandle<mirror::ArtMethod>(nullptr)); in ResolveCatchBlockExceptionsClassVisitor()
727 StackHandleScope<1> hs(self); in LoadImageClasses() local
729 hs.NewHandle(class_linker->FindSystemClass(self, descriptor.c_str()))); in LoadImageClasses()
743 StackHandleScope<1> hs(self); in LoadImageClasses() local
745 hs.NewHandle(class_linker->FindSystemClass(self, "Ljava/lang/Throwable;"))); in LoadImageClasses()
753 StackHandleScope<2> hs(self); in LoadImageClasses() local
754 Handle<mirror::DexCache> dex_cache(hs.NewHandle(class_linker->FindDexCache(*dex_file))); in LoadImageClasses()
[all …]
/art/runtime/gc/space/
Dspace_test.h51 StackHandleScope<1> hs(self); in GetByteArrayClass()
52 auto null_loader(hs.NewHandle<mirror::ClassLoader>(nullptr)); in GetByteArrayClass()
66 StackHandleScope<1> hs(self); in Alloc()
67 Handle<mirror::Class> byte_array_class(hs.NewHandle(GetByteArrayClass(self))); in Alloc()
78 StackHandleScope<1> hs(self); in AllocWithGrowth()
79 Handle<mirror::Class> byte_array_class(hs.NewHandle(GetByteArrayClass(self))); in AllocWithGrowth()
183 StackHandleScope<3> hs(soa.Self()); in ZygoteSpaceTestBody()
185 hs.NewHandle(Alloc(space, self, 1 * MB, &ptr1_bytes_allocated, &ptr1_usable_size))); in ZygoteSpaceTestBody()
198 hs.NewHandle(AllocWithGrowth(space, self, 8 * MB, &ptr3_bytes_allocated, &ptr3_usable_size))); in ZygoteSpaceTestBody()
221 hs.NewHandle(AllocWithGrowth(space, self, 9 * MB, &ptr6_bytes_allocated, &ptr6_usable_size))); in ZygoteSpaceTestBody()
[all …]
/art/runtime/interpreter/
Dinterpreter_common.cc264 StackHandleScope<3> hs(self); in DoFieldPut() local
265 HandleWrapper<mirror::ArtField> h_f(hs.NewHandleWrapper(&f)); in DoFieldPut()
266 HandleWrapper<mirror::Object> h_reg(hs.NewHandleWrapper(&reg)); in DoFieldPut()
267 HandleWrapper<mirror::Object> h_obj(hs.NewHandleWrapper(&obj)); in DoFieldPut()
411 StackHandleScope<3> hs(self_); in VisitFrame() local
412 Handle<mirror::Class> exception_class(hs.NewHandle((*exception_)->GetClass())); in VisitFrame()
413 Handle<mirror::ArtMethod> h_method(hs.NewHandle(method)); in VisitFrame()
456 StackHandleScope<3> hs(self); in FindNextInstructionFollowingException() local
457 Handle<mirror::Throwable> exception(hs.NewHandle(self->GetException(&throw_location))); in FindNextInstructionFollowingException()
468 Handle<mirror::Class> exception_class(hs.NewHandle(exception->GetClass())); in FindNextInstructionFollowingException()
[all …]
/art/runtime/entrypoints/interpreter/
Dinterpreter_entrypoints.cc37 StackHandleScope<1> hs(self); in artInterpreterToCompiledCodeBridge() local
38 Handle<mirror::Class> h_class(hs.NewHandle(declaringClass)); in artInterpreterToCompiledCodeBridge()
/art/runtime/entrypoints/portable/
Dportable_trampoline_entrypoints.cc198 StackHandleScope<2> hs(self); in artPortableToInterpreterBridge() local
199 MethodHelper mh(hs.NewHandle(method)); in artPortableToInterpreterBridge()
217 Handle<mirror::Class> h_class(hs.NewHandle(method->GetDeclaringClass())); in artPortableToInterpreterBridge()
296 StackHandleScope<1> hs(self); in artPortableProxyInvokeHandler() local
297 MethodHelper proxy_mh(hs.NewHandle(proxy_method)); in artPortableProxyInvokeHandler()
400 StackHandleScope<1> hs(self); in artPortableResolutionTrampoline() local
401 Handle<mirror::Class> called_class(hs.NewHandle(called->GetDeclaringClass())); in artPortableResolutionTrampoline()

123