/art/runtime/arch/x86/ |
D | jni_frame_x86.h | 43 inline size_t GetCriticalNativeCallArgsSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeCallArgsSize() argument 44 DCHECK_EQ(shorty_len, strlen(shorty)); in GetCriticalNativeCallArgsSize() 47 std::count_if(shorty + 1, shorty + shorty_len, [](char c) { return c == 'J' || c == 'D'; }); in GetCriticalNativeCallArgsSize() 49 return GetNativeOutArgsSize(/*num_args=*/ shorty_len - 1u, num_long_or_double_args); in GetCriticalNativeCallArgsSize() 54 inline size_t GetCriticalNativeStubFrameSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeStubFrameSize() argument 56 size_t size = GetCriticalNativeCallArgsSize(shorty, shorty_len); in GetCriticalNativeStubFrameSize() 72 inline size_t GetCriticalNativeDirectCallFrameSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeDirectCallFrameSize() argument 74 size_t size = GetCriticalNativeCallArgsSize(shorty, shorty_len); in GetCriticalNativeDirectCallFrameSize()
|
/art/runtime/arch/x86_64/ |
D | jni_frame_x86_64.h | 62 inline size_t GetCriticalNativeCallArgsSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeCallArgsSize() argument 63 DCHECK_EQ(shorty_len, strlen(shorty)); in GetCriticalNativeCallArgsSize() 66 std::count_if(shorty + 1, shorty + shorty_len, [](char c) { return c == 'F' || c == 'D'; }); in GetCriticalNativeCallArgsSize() 67 size_t num_non_fp_args = shorty_len - 1u - num_fp_args; in GetCriticalNativeCallArgsSize() 74 inline size_t GetCriticalNativeStubFrameSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeStubFrameSize() argument 76 size_t size = GetCriticalNativeCallArgsSize(shorty, shorty_len); in GetCriticalNativeStubFrameSize() 89 inline size_t GetCriticalNativeDirectCallFrameSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeDirectCallFrameSize() argument 91 size_t size = GetCriticalNativeCallArgsSize(shorty, shorty_len); in GetCriticalNativeDirectCallFrameSize()
|
/art/runtime/arch/arm64/ |
D | jni_frame_arm64.h | 57 inline size_t GetCriticalNativeCallArgsSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeCallArgsSize() argument 58 DCHECK_EQ(shorty_len, strlen(shorty)); in GetCriticalNativeCallArgsSize() 61 std::count_if(shorty + 1, shorty + shorty_len, [](char c) { return c == 'F' || c == 'D'; }); in GetCriticalNativeCallArgsSize() 62 size_t num_non_fp_args = shorty_len - 1u - num_fp_args; in GetCriticalNativeCallArgsSize() 69 inline size_t GetCriticalNativeStubFrameSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeStubFrameSize() argument 71 size_t size = GetCriticalNativeCallArgsSize(shorty, shorty_len); in GetCriticalNativeStubFrameSize() 83 inline size_t GetCriticalNativeDirectCallFrameSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeDirectCallFrameSize() argument 85 size_t size = GetCriticalNativeCallArgsSize(shorty, shorty_len); in GetCriticalNativeDirectCallFrameSize()
|
/art/runtime/arch/arm/ |
D | jni_frame_arm.h | 42 inline size_t GetCriticalNativeCallArgsSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeCallArgsSize() argument 43 DCHECK_EQ(shorty_len, strlen(shorty)); in GetCriticalNativeCallArgsSize() 46 for (size_t i = 1; i != shorty_len; ++i) { in GetCriticalNativeCallArgsSize() 61 inline size_t GetCriticalNativeStubFrameSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeStubFrameSize() argument 63 size_t size = GetCriticalNativeCallArgsSize(shorty, shorty_len); in GetCriticalNativeStubFrameSize() 76 inline size_t GetCriticalNativeDirectCallFrameSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeDirectCallFrameSize() argument 78 size_t size = GetCriticalNativeCallArgsSize(shorty, shorty_len); in GetCriticalNativeDirectCallFrameSize()
|
/art/runtime/entrypoints/jni/ |
D | jni_entrypoints.cc | 136 uint32_t shorty_len; in artCriticalNativeFrameSize() local 137 const char* shorty = method->GetShorty(&shorty_len); in artCriticalNativeFrameSize() 143 return arm::GetCriticalNativeStubFrameSize(shorty, shorty_len); in artCriticalNativeFrameSize() 145 return arm64::GetCriticalNativeStubFrameSize(shorty, shorty_len); in artCriticalNativeFrameSize() 147 return x86::GetCriticalNativeStubFrameSize(shorty, shorty_len); in artCriticalNativeFrameSize() 149 return x86_64::GetCriticalNativeStubFrameSize(shorty, shorty_len); in artCriticalNativeFrameSize() 172 uint32_t shorty_len; in artCriticalNativeFrameSize() local 173 const char* shorty = dex_file->GetMethodShorty(dex_file->GetMethodId(method_idx), &shorty_len); in artCriticalNativeFrameSize() 179 return arm::GetCriticalNativeDirectCallFrameSize(shorty, shorty_len); in artCriticalNativeFrameSize() 181 return arm64::GetCriticalNativeDirectCallFrameSize(shorty, shorty_len); in artCriticalNativeFrameSize() [all …]
|
/art/runtime/entrypoints/quick/ |
D | quick_trampoline_entrypoints.cc | 289 uint32_t shorty_len) REQUIRES_SHARED(Locks::mutator_lock_) : in QuickArgumentVisitor() argument 290 is_static_(is_static), shorty_(shorty), shorty_len_(shorty_len), in QuickArgumentVisitor() 536 uint32_t shorty_len, ShadowFrame* sf, size_t first_arg_reg) : in BuildQuickShadowFrameVisitor() argument 537 QuickArgumentVisitor(sp, is_static, shorty, shorty_len), sf_(sf), cur_reg_(first_arg_reg) {} in BuildQuickShadowFrameVisitor() 664 uint32_t shorty_len = 0; in artQuickToInterpreterBridge() local 668 const char* shorty = non_proxy_method->GetShorty(&shorty_len); in artQuickToInterpreterBridge() 684 BuildQuickShadowFrameVisitor shadow_frame_builder(sp, method->IsStatic(), shorty, shorty_len, in artQuickToInterpreterBridge() 757 BuildQuickArgumentVisitor(ArtMethod** sp, bool is_static, const char* shorty, uint32_t shorty_len, in BuildQuickArgumentVisitor() argument 759 QuickArgumentVisitor(sp, is_static, shorty, shorty_len), soa_(soa), args_(args) {} in BuildQuickArgumentVisitor() 830 uint32_t shorty_len = 0; in artQuickProxyInvokeHandler() local [all …]
|
/art/runtime/ |
D | reflection.cc | 46 ArgArray(const char* shorty, uint32_t shorty_len) in ArgArray() argument 47 : shorty_(shorty), shorty_len_(shorty_len), num_bytes_(0) { in ArgArray() 48 size_t num_slots = shorty_len + 1; // +1 in case of receiver. in ArgArray() 54 for (size_t i = 1; i < shorty_len; ++i) { in ArgArray() 485 uint32_t shorty_len = 0; in InvokeMethodImpl() local 486 *shorty = np_method->GetShorty(&shorty_len); in InvokeMethodImpl() 487 ArgArray arg_array(*shorty, shorty_len); in InvokeMethodImpl() 543 uint32_t shorty_len = 0; in InvokeWithVarArgs() local 545 method->GetInterfaceMethodIfProxy(kRuntimePointerSize)->GetShorty(&shorty_len); in InvokeWithVarArgs() 547 ArgArray arg_array(shorty, shorty_len); in InvokeWithVarArgs() [all …]
|
/art/compiler/driver/ |
D | dex_compilation_unit.h | 78 const char* GetShorty(uint32_t* shorty_len) const { in GetShorty() argument 80 return dex_file_->GetMethodShorty(method_id, shorty_len); in GetShorty()
|
/art/compiler/optimizing/ |
D | code_generator.h | 576 size_t GetCriticalNativeDirectCallFrameSize(const char* shorty, uint32_t shorty_len)> 586 uint32_t shorty_len; in PrepareCriticalNativeCall() local 587 const char* shorty = GetCriticalNativeShorty(invoke, &shorty_len); in PrepareCriticalNativeCall() 588 DCHECK_EQ(GetCriticalNativeDirectCallFrameSize(shorty, shorty_len), out_frame_size); in PrepareCriticalNativeCall() 839 static const char* GetCriticalNativeShorty(HInvokeStaticOrDirect* invoke, uint32_t* shorty_len);
|
D | code_generator.cc | 569 uint32_t* shorty_len) { in GetCriticalNativeShorty() argument 572 return invoke->GetResolvedMethod()->GetShorty(shorty_len); in GetCriticalNativeShorty()
|
D | code_generator_arm_vixl.cc | 9154 uint32_t shorty_len; in GetSupportedInvokeStaticOrDirectDispatch() local 9155 const char* shorty = method->GetShorty(&shorty_len); in GetSupportedInvokeStaticOrDirectDispatch() 9156 for (uint32_t i = 1; i != shorty_len; ++i) { in GetSupportedInvokeStaticOrDirectDispatch()
|
/art/runtime/interpreter/ |
D | interpreter.cc | 457 uint32_t shorty_len = 0; in EnterInterpreterFromInvoke() local 458 const char* shorty = method->GetShorty(&shorty_len); in EnterInterpreterFromInvoke() 460 DCHECK_LT(shorty_pos + 1, shorty_len); in EnterInterpreterFromInvoke()
|
D | interpreter_common.cc | 1316 uint32_t shorty_len = 0; in DoCallCommon() local 1317 const char* shorty = method->GetShorty(&shorty_len); in DoCallCommon() 1334 DCHECK_LT(shorty_pos + 1, shorty_len) << "for shorty '" << shorty << "'"; in DoCallCommon()
|