Home
last modified time | relevance | path

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

/art/runtime/interpreter/
Dinterpreter.cc326 JValue ExecuteGotoImpl(Thread* self, MethodHelper& mh, const DexFile::CodeItem* code_item, in ExecuteGotoImpl() argument
333 JValue ExecuteGotoImpl<true, false>(Thread* self, MethodHelper& mh,
337 JValue ExecuteGotoImpl<false, false>(Thread* self, MethodHelper& mh,
341 JValue ExecuteGotoImpl<true, true>(Thread* self, MethodHelper& mh,
345 JValue ExecuteGotoImpl<false, true>(Thread* self, MethodHelper& mh,
350 static JValue Execute(Thread* self, MethodHelper& mh, const DexFile::CodeItem* code_item,
354 static inline JValue Execute(Thread* self, MethodHelper& mh, const DexFile::CodeItem* code_item, in Execute() argument
356 DCHECK(shadow_frame.GetMethod() == mh.GetMethod() || in Execute()
367 return ExecuteSwitchImpl<false, true>(self, mh, code_item, shadow_frame, result_register); in Execute()
369 return ExecuteSwitchImpl<false, false>(self, mh, code_item, shadow_frame, result_register); in Execute()
[all …]
Dinterpreter.h45 extern JValue EnterInterpreterFromStub(Thread* self, MethodHelper& mh,
50 extern "C" void artInterpreterToInterpreterBridge(Thread* self, MethodHelper& mh,
57 extern "C" void artInterpreterToCompiledCodeBridge(Thread* self, MethodHelper& mh,
Dinterpreter_goto_table_impl.cc38 TraceExecution(shadow_frame, inst, dex_pc, mh); \
113 JValue ExecuteGotoImpl(Thread* self, MethodHelper& mh, const DexFile::CodeItem* code_item, in ExecuteGotoImpl() argument
339 MethodHelper mh(hs.NewHandle(shadow_frame.GetMethod())); in ExecuteGotoImpl() local
340 Class* return_type = mh.GetReturnType(); in ExecuteGotoImpl()
437 String* s = ResolveString(self, mh, inst->VRegB_21c()); in ExecuteGotoImpl()
448 String* s = ResolveString(self, mh, inst->VRegB_31c()); in ExecuteGotoImpl()
2280 UnexpectedOpcode(inst, mh); in ExecuteGotoImpl()
2284 UnexpectedOpcode(inst, mh); in ExecuteGotoImpl()
2288 UnexpectedOpcode(inst, mh); in ExecuteGotoImpl()
2292 UnexpectedOpcode(inst, mh); in ExecuteGotoImpl()
[all …]
Dinterpreter_common.h70 extern JValue ExecuteSwitchImpl(Thread* self, MethodHelper& mh,
75 extern JValue ExecuteGotoImpl(Thread* self, MethodHelper& mh,
187 static inline String* ResolveString(Thread* self, MethodHelper& mh, uint32_t string_idx) in ResolveString() argument
200 return mh.ResolveString(string_idx); in ResolveString()
342 void UnexpectedOpcode(const Instruction* inst, MethodHelper& mh)
347 const uint32_t dex_pc, MethodHelper& mh) in TraceExecution() argument
355 << inst->DumpString(mh.GetMethod()->GetDexFile()) << "\n"; in TraceExecution()
Dinterpreter_common.cc488 void UnexpectedOpcode(const Instruction* inst, MethodHelper& mh) { in UnexpectedOpcode() argument
489 LOG(FATAL) << "Unexpected instruction: " << inst->DumpString(mh.GetMethod()->GetDexFile()); in UnexpectedOpcode()
493 static void UnstartedRuntimeInvoke(Thread* self, MethodHelper& mh,
546 MethodHelper mh(hs.NewHandle(method)); in DoCall() local
585 Class* arg_type = mh.GetClassFromTypeIdx(params->GetTypeItem(shorty_pos).type_idx_); in DoCall()
653 (method->GetEntryPointFromInterpreter())(self, mh, code_item, new_shadow_frame, result); in DoCall()
655 UnstartedRuntimeInvoke(self, mh, code_item, new_shadow_frame, result, first_dest_reg); in DoCall()
795 static void UnstartedRuntimeInvoke(Thread* self, MethodHelper& mh, in UnstartedRuntimeInvoke() argument
874 MethodHelper mh(hs.NewHandle(shadow_frame->GetVRegReference(arg_offset)->AsArtMethod())); in UnstartedRuntimeInvoke() local
875 result->SetL(mh.GetNameAsString(self)); in UnstartedRuntimeInvoke()
[all …]
Dinterpreter_switch_impl.cc61 JValue ExecuteSwitchImpl(Thread* self, MethodHelper& mh, const DexFile::CodeItem* code_item, in ExecuteSwitchImpl() argument
89 TraceExecution(shadow_frame, inst, dex_pc, mh); in ExecuteSwitchImpl()
350 String* s = ResolveString(self, mh, inst->VRegB_21c()); in ExecuteSwitchImpl()
361 String* s = ResolveString(self, mh, inst->VRegB_31c()); in ExecuteSwitchImpl()
2174 UnexpectedOpcode(inst, mh); in ExecuteSwitchImpl()
2181 JValue ExecuteSwitchImpl<true, false>(Thread* self, MethodHelper& mh,
2185 JValue ExecuteSwitchImpl<false, false>(Thread* self, MethodHelper& mh,
2189 JValue ExecuteSwitchImpl<true, true>(Thread* self, MethodHelper& mh,
2193 JValue ExecuteSwitchImpl<false, true>(Thread* self, MethodHelper& mh,
/art/runtime/entrypoints/interpreter/
Dinterpreter_entrypoints.cc28 extern "C" void artInterpreterToCompiledCodeBridge(Thread* self, MethodHelper& mh, in artInterpreterToCompiledCodeBridge() argument
52 InvokeWithShadowFrame(self, shadow_frame, arg_offset, mh, result); in artInterpreterToCompiledCodeBridge()
56 result, mh.GetShorty()); in artInterpreterToCompiledCodeBridge()
Dinterpreter_entrypoints.h36 void (*pInterpreterToInterpreterBridge)(Thread* self, MethodHelper& mh,
39 void (*pInterpreterToCompiledCodeBridge)(Thread* self, MethodHelper& mh,
/art/runtime/
Dreflection.cc223 mirror::ObjectArray<mirror::Object>* args, MethodHelper& mh) in BuildArgArrayFromObjectArray() argument
225 const DexFile::TypeList* classes = mh.GetMethod()->GetParameterTypeList(); in BuildArgArrayFromObjectArray()
234 mh.GetClassFromTypeIdx(classes->GetTypeItem(args_offset).type_idx_); in BuildArgArrayFromObjectArray()
238 PrettyMethod(mh.GetMethod(), false).c_str(), in BuildArgArrayFromObjectArray()
266 PrettyMethod(mh.GetMethod(), false).c_str(), \ in BuildArgArrayFromObjectArray()
367 MethodHelper mh(h_m); in CheckMethodArguments() local
370 mirror::Class* param_type = mh.GetClassFromTypeIdx(type_idx); in CheckMethodArguments()
504 MethodHelper& mh, JValue* result) { in InvokeWithShadowFrame() argument
513 ArgArray arg_array(mh.GetShorty(), mh.GetShortyLength()); in InvokeWithShadowFrame()
516 mh.GetShorty()); in InvokeWithShadowFrame()
[all …]
Dnative_bridge_art_interface.cc32 MethodHelper mh(scope.NewHandle(m)); in GetMethodShorty() local
33 return mh.GetShorty(); in GetMethodShorty()
Dreflection.h67 MethodHelper& mh, JValue* result)
Dclass_linker.cc4047 MethodHelper mh(method); in CheckProxyMethod() local
4052 CHECK_EQ(mh.GetReturnType(), mh2.GetReturnType()); in CheckProxyMethod()
4328 MethodHelper mh(hs.NewHandle<mirror::ArtMethod>(nullptr)); in ValidateSuperClassDescriptors() local
4333 mh.ChangeMethod(klass->GetVTableEntry(i)); in ValidateSuperClassDescriptors()
4335 if (mh.GetMethod() != super_mh.GetMethod() && in ValidateSuperClassDescriptors()
4336 !mh.HasSameSignatureWithDifferentClassLoaders(&super_mh)) { in ValidateSuperClassDescriptors()
4340 PrettyMethod(mh.GetMethod()).c_str(), in ValidateSuperClassDescriptors()
4350 mh.ChangeMethod(klass->GetIfTable()->GetMethodArray(i)->GetWithoutChecks(j)); in ValidateSuperClassDescriptors()
4352 if (mh.GetMethod() != super_mh.GetMethod() && in ValidateSuperClassDescriptors()
4353 !mh.HasSameSignatureWithDifferentClassLoaders(&super_mh)) { in ValidateSuperClassDescriptors()
[all …]
Ddebugger.cc3670 MethodHelper mh(hs.NewHandle(m)); in InvokeMethod() local
3681 mirror::Class* parameter_type = mh.GetClassFromTypeIdx(types->GetTypeItem(i).type_idx_); in InvokeMethod()
3696 m = mh.GetMethod(); in InvokeMethod()
/art/runtime/entrypoints/portable/
Dportable_trampoline_entrypoints.cc121 static size_t ComputeArgsInRegs(MethodHelper& mh) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in ComputeArgsInRegs() argument
126 size_t num_params = mh.NumArgs(); in ComputeArgsInRegs()
128 args_in_regs = args_in_regs + (mh.IsParamALongOrDouble(i) ? 2 : 1); in ComputeArgsInRegs()
199 MethodHelper mh(hs.NewHandle(method)); in artPortableToInterpreterBridge() local
206 BuildPortableShadowFrameVisitor shadow_frame_builder(mh, sp, in artPortableToInterpreterBridge()
225 JValue result = interpreter::EnterInterpreterFromStub(self, mh, code_item, *shadow_frame); in artPortableToInterpreterBridge()
/art/runtime/mirror/
Dobject_test.cc492 MethodHelper mh(hs.NewHandle(m1_1)); in TEST_F() local
494 EXPECT_TRUE(mh.HasSameNameAndSignature(&mh2)); in TEST_F()
495 EXPECT_TRUE(mh2.HasSameNameAndSignature(&mh)); in TEST_F()
497 mh.ChangeMethod(m2_1); in TEST_F()
499 EXPECT_TRUE(mh.HasSameNameAndSignature(&mh2)); in TEST_F()
500 EXPECT_TRUE(mh2.HasSameNameAndSignature(&mh)); in TEST_F()
502 mh.ChangeMethod(m3_1); in TEST_F()
504 EXPECT_TRUE(mh.HasSameNameAndSignature(&mh2)); in TEST_F()
505 EXPECT_TRUE(mh2.HasSameNameAndSignature(&mh)); in TEST_F()
507 mh.ChangeMethod(m4_1); in TEST_F()
[all …]
Dart_method.cc124 MethodHelper mh(hs.NewHandle(this)); in FindOverriddenMethod() local
131 if (mh.HasSameNameAndSignature(&interface_mh)) { in FindOverriddenMethod()
214 MethodHelper mh(h_this); in FindCatchBlock() local
234 Class* iter_exception_type = mh.GetClassFromTypeIdx(iter_type_idx); in FindCatchBlock()
Dart_method.h42 typedef void (EntryPointFromInterpreter)(Thread* self, MethodHelper& mh,
/art/runtime/arch/arm64/
Dentrypoints_init_arm64.cc27 extern "C" void artInterpreterToInterpreterBridge(Thread* self, MethodHelper& mh,
30 extern "C" void artInterpreterToCompiledCodeBridge(Thread* self, MethodHelper& mh,
/art/runtime/arch/x86_64/
Dentrypoints_init_x86_64.cc28 extern "C" void artInterpreterToInterpreterBridge(Thread* self, MethodHelper& mh,
31 extern "C" void artInterpreterToCompiledCodeBridge(Thread* self, MethodHelper& mh,
/art/runtime/arch/x86/
Dentrypoints_init_x86.cc27 extern "C" void artInterpreterToInterpreterBridge(Thread* self, MethodHelper& mh,
30 extern "C" void artInterpreterToCompiledCodeBridge(Thread* self, MethodHelper& mh,
/art/runtime/arch/arm/
Dentrypoints_init_arm.cc28 extern "C" void artInterpreterToInterpreterBridge(Thread* self, MethodHelper& mh,
31 extern "C" void artInterpreterToCompiledCodeBridge(Thread* self, MethodHelper& mh,
/art/runtime/arch/mips/
Dentrypoints_init_mips.cc29 extern "C" void artInterpreterToInterpreterBridge(Thread* self, MethodHelper& mh,
32 extern "C" void artInterpreterToCompiledCodeBridge(Thread* self, MethodHelper& mh,
/art/compiler/driver/
Dcompiler_driver.cc648 static void ResolveExceptionsForMethod(MethodHelper* mh, in ResolveExceptionsForMethod() argument
651 const DexFile::CodeItem* code_item = mh->GetMethod()->GetCodeItem(); in ResolveExceptionsForMethod()
671 if (!mh->GetMethod()->IsResolvedTypeIdx(encoded_catch_handler_handlers_type_idx)) { in ResolveExceptionsForMethod()
674 mh->GetMethod()->GetDexFile())); in ResolveExceptionsForMethod()
691 MethodHelper mh(hs.NewHandle<mirror::ArtMethod>(nullptr)); in ResolveCatchBlockExceptionsClassVisitor() local
693 mh.ChangeMethod(c->GetVirtualMethod(i)); in ResolveCatchBlockExceptionsClassVisitor()
694 ResolveExceptionsForMethod(&mh, *exceptions_to_resolve); in ResolveCatchBlockExceptionsClassVisitor()
697 mh.ChangeMethod(c->GetDirectMethod(i)); in ResolveCatchBlockExceptionsClassVisitor()
698 ResolveExceptionsForMethod(&mh, *exceptions_to_resolve); in ResolveCatchBlockExceptionsClassVisitor()
1228 MethodHelper mh(hs.NewHandle(method)); in GetCodeAndMethodForDirectCall() local
[all …]
/art/runtime/entrypoints/quick/
Dquick_trampoline_entrypoints.cc530 MethodHelper mh(hs.NewHandle(method)); in artQuickToInterpreterBridge() local
531 JValue result = interpreter::EnterInterpreterFromStub(self, mh, code_item, *shadow_frame); in artQuickToInterpreterBridge()
824 MethodHelper mh(hs.NewHandle(called)); in artQuickResolutionTrampoline() local
825 uint32_t method_index = mh.FindDexMethodIndexInOtherDexFile(*dex_file, dex_method_idx); in artQuickResolutionTrampoline()
/art/runtime/verifier/
Dmethod_verifier.cc2232 MethodHelper mh(h_called_method); in CodeFlowVerifyInstruction() local
2233 mirror::Class* return_type_class = mh.GetReturnType(can_load_classes_); in CodeFlowVerifyInstruction()
2278 MethodHelper mh(h_called_method); in CodeFlowVerifyInstruction() local
2279 mirror::Class* return_type_class = mh.GetReturnType(can_load_classes_); in CodeFlowVerifyInstruction()