Home
last modified time | relevance | path

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

1234

/art/runtime/arch/arm64/
Djni_frame_arm64.h58 inline size_t GetCriticalNativeCallArgsSize(std::string_view shorty) { in GetCriticalNativeCallArgsSize() argument
60 std::count_if(shorty.begin() + 1, shorty.end(), [](char c) { return c == 'F' || c == 'D'; }); in GetCriticalNativeCallArgsSize()
61 size_t num_non_fp_args = shorty.length() - 1u - num_fp_args; in GetCriticalNativeCallArgsSize()
68 inline size_t GetCriticalNativeStubFrameSize(std::string_view shorty) { in GetCriticalNativeStubFrameSize() argument
70 size_t size = GetCriticalNativeCallArgsSize(shorty); in GetCriticalNativeStubFrameSize()
74 if (size != 0u || shorty[0] == 'B' || shorty[0] == 'C' || shorty[0] == 'S' || shorty[0] == 'Z') { in GetCriticalNativeStubFrameSize()
82 inline size_t GetCriticalNativeDirectCallFrameSize(std::string_view shorty) { in GetCriticalNativeDirectCallFrameSize() argument
84 size_t size = GetCriticalNativeCallArgsSize(shorty); in GetCriticalNativeDirectCallFrameSize()
/art/test/115-native-bridge/
Dexpected-stdout.txt5 Getting trampoline for JNI_OnLoad with shorty (null).
7 name:booleanMethod, signature:(ZZZZZZZZZZ)Z, shorty:ZZZZZZZZZZZ.
8 name:byteMethod, signature:(BBBBBBBBBB)B, shorty:BBBBBBBBBBB.
9 name:charMethod, signature:(CCCCCCCCCC)C, shorty:CCCCCCCCCCC.
10 name:shortMethod, signature:(SSSSSSSSSS)S, shorty:SSSSSSSSSSS.
11 name:testCallStaticVoidMethodOnSubClassNative, signature:()V, shorty:V.
12 name:testFindClassOnAttachedNativeThread, signature:()V, shorty:V.
13 name:testFindFieldOnAttachedNativeThreadNative, signature:()V, shorty:V.
14 name:testGetMirandaMethodNative, signature:()Ljava/lang/reflect/Method;, shorty:L.
15 name:testNewStringObject, signature:()V, shorty:V.
[all …]
/art/runtime/arch/x86/
Djni_frame_x86.h44 inline size_t GetCriticalNativeCallArgsSize(std::string_view shorty) { in GetCriticalNativeCallArgsSize() argument
46 std::count_if(shorty.begin() + 1, shorty.end(), [](char c) { return c == 'J' || c == 'D'; }); in GetCriticalNativeCallArgsSize()
48 return GetNativeOutArgsSize(/*num_args=*/ shorty.length() - 1u, num_long_or_double_args); in GetCriticalNativeCallArgsSize()
53 inline size_t GetCriticalNativeStubFrameSize(std::string_view shorty) { in GetCriticalNativeStubFrameSize() argument
55 size_t size = GetCriticalNativeCallArgsSize(shorty); in GetCriticalNativeStubFrameSize()
59 bool return_type_ok = shorty[0] == 'I' || shorty[0] == 'J' || shorty[0] == 'V'; in GetCriticalNativeStubFrameSize()
71 inline size_t GetCriticalNativeDirectCallFrameSize(std::string_view shorty) { in GetCriticalNativeDirectCallFrameSize() argument
73 size_t size = GetCriticalNativeCallArgsSize(shorty); in GetCriticalNativeDirectCallFrameSize()
/art/runtime/arch/arm/
Djni_frame_arm.h43 inline size_t GetCriticalNativeCallArgsSize(std::string_view shorty) { in GetCriticalNativeCallArgsSize() argument
45 for (size_t i = 1; i != shorty.length(); ++i) { in GetCriticalNativeCallArgsSize()
46 if (shorty[i] == 'J' || shorty[i] == 'D') { in GetCriticalNativeCallArgsSize()
60 inline size_t GetCriticalNativeStubFrameSize(std::string_view shorty) { in GetCriticalNativeStubFrameSize() argument
62 size_t size = GetCriticalNativeCallArgsSize(shorty); in GetCriticalNativeStubFrameSize()
67 if (size != 0u || shorty[0] == 'F' || shorty[0] == 'D') { in GetCriticalNativeStubFrameSize()
75 inline size_t GetCriticalNativeDirectCallFrameSize(std::string_view shorty) { in GetCriticalNativeDirectCallFrameSize() argument
77 size_t size = GetCriticalNativeCallArgsSize(shorty); in GetCriticalNativeDirectCallFrameSize()
Dquick_entrypoints_cc_arm.cc30 Thread* self, JValue* result, const char* shorty) { in quick_invoke_reg_setup() argument
38 const uint32_t result_in_float = (shorty[0] == 'F' || shorty[0] == 'D') ? 1 : 0; in quick_invoke_reg_setup()
45 for (uint32_t shorty_index = 1; shorty[shorty_index] != '\0'; ++shorty_index, ++arg_index) { in quick_invoke_reg_setup()
46 char arg_type = shorty[shorty_index]; in quick_invoke_reg_setup()
102 Thread* self, JValue* result, const char* shorty) { in art_quick_invoke_stub() argument
103 quick_invoke_reg_setup<false>(method, args, args_size, self, result, shorty); in art_quick_invoke_stub()
111 const char* shorty) { in art_quick_invoke_static_stub() argument
112 quick_invoke_reg_setup<true>(method, args, args_size, self, result, shorty); in art_quick_invoke_static_stub()
/art/runtime/
Dnterp_helpers-inl.h24 ALWAYS_INLINE inline uint32_t GetNterpFastPathFlags(std::string_view shorty, in GetNterpFastPathFlags() argument
29 for (size_t i = 1; i < shorty.length(); ++i) { in GetNterpFastPathFlags()
30 if (shorty[i] != 'L') { in GetNterpFastPathFlags()
32 if (shorty[i] == 'F' || shorty[i] == 'D' || shorty[i] == 'J') { in GetNterpFastPathFlags()
46 const bool no_float_return = shorty[0] != 'F' && shorty[0] != 'D'; in GetNterpFastPathFlags()
Dreflection.cc46 ArgArray(const char* shorty, uint32_t shorty_len) in ArgArray() argument
47 : shorty_(shorty), shorty_len_(shorty_len), num_bytes_(0) { in ArgArray()
55 char c = shorty[i]; in ArgArray()
452 const char* shorty) in InvokeWithArgArray() argument
458 method->Invoke(soa.Self(), args, arg_array->GetNumBytes(), result, shorty); in InvokeWithArgArray()
482 const char** shorty, in InvokeMethodImpl() argument
486 *shorty = np_method->GetShorty(&shorty_len); in InvokeMethodImpl()
487 ArgArray arg_array(*shorty, shorty_len); in InvokeMethodImpl()
493 InvokeWithArgArray(soa, m, &arg_array, result, *shorty); in InvokeMethodImpl()
546 const char* shorty = in InvokeWithVarArgs() local
[all …]
/art/runtime/arch/riscv64/
Djni_frame_riscv64.h61 inline size_t GetCriticalNativeCallArgsSize(std::string_view shorty) { in GetCriticalNativeCallArgsSize() argument
63 std::count_if(shorty.begin() + 1, shorty.end(), [](char c) { return c == 'F' || c == 'D'; }); in GetCriticalNativeCallArgsSize()
64 size_t num_non_fp_args = shorty.length() - 1u - num_fp_args; in GetCriticalNativeCallArgsSize()
71 inline size_t GetCriticalNativeStubFrameSize(std::string_view shorty) { in GetCriticalNativeStubFrameSize() argument
73 size_t size = GetCriticalNativeCallArgsSize(shorty); in GetCriticalNativeStubFrameSize()
85 inline size_t GetCriticalNativeDirectCallFrameSize(std::string_view shorty) { in GetCriticalNativeDirectCallFrameSize() argument
87 size_t size = GetCriticalNativeCallArgsSize(shorty); in GetCriticalNativeDirectCallFrameSize()
/art/runtime/arch/x86_64/
Djni_frame_x86_64.h63 inline size_t GetCriticalNativeCallArgsSize(std::string_view shorty) { in GetCriticalNativeCallArgsSize() argument
65 std::count_if(shorty.begin() + 1, shorty.end(), [](char c) { return c == 'F' || c == 'D'; }); in GetCriticalNativeCallArgsSize()
66 size_t num_non_fp_args = shorty.length() - 1u - num_fp_args; in GetCriticalNativeCallArgsSize()
73 inline size_t GetCriticalNativeStubFrameSize(std::string_view shorty) { in GetCriticalNativeStubFrameSize() argument
75 size_t size = GetCriticalNativeCallArgsSize(shorty); in GetCriticalNativeStubFrameSize()
88 inline size_t GetCriticalNativeDirectCallFrameSize(std::string_view shorty) { in GetCriticalNativeDirectCallFrameSize() argument
90 size_t size = GetCriticalNativeCallArgsSize(shorty); in GetCriticalNativeDirectCallFrameSize()
/art/runtime/interpreter/mterp/riscv64/
Dinvoke.S420 % try_01_args(vreg="s7", shorty="s9", z0="t0", z1="t1", z2="t2", y0="s10", y1="s11", y2="s0", skip…
425 % maybe_float_returned(shorty="s9", z0="t0", z1="t1", uniq=f"{uniq}_0")
430 % get_shorty_save_a0_a1(shorty="s9", y0="s10", y1="s11")
432 % slow_setup_args_range(shorty="s9", vC="s7", z0="t0", z1="t1", z2="t2", z3="t3", z4="t4", z5="t…
434 % slow_setup_args(shorty="s9", vregs="s7", z0="t0", z1="t1", z2="t2", z3="t3", z4="t4", z5="t5",…
437 % maybe_float_returned(shorty="s9", z0="t0", z1="t1", uniq=f"{uniq}_1")
456 % get_shorty_save_a0_a1(shorty="s9", y0="s10", y1="s11")
458 % slow_setup_args_string_init_range(shorty="s9", vC="s7", z0="t0", z1="t1", z2="t2", z3="t3", un…
460 % slow_setup_args_string_init(shorty="s9", v_fedc="s7", z0="t0", z1="t1", z2="t2", uniq=uniq)
494 % try_01_args_static(vreg="s7", shorty="s9", z0="t0", z1="t1", z2="t2", y0="s10", y1="s11", skip=f…
[all …]
Dmain.S519 % store_gpr_to_vreg(gpr="a1", offset="t3", shorty="t2", fp="t0", refs="t1", z0="t4", z1="t5", D="s…
523 % store_gpr_to_vreg(gpr="a2", offset="t3", shorty="t2", fp="t0", refs="t1", z0="t4", z1="t5", D="s…
524 % store_gpr_to_vreg(gpr="a3", offset="t3", shorty="t2", fp="t0", refs="t1", z0="t4", z1="t5", D="s…
525 % store_gpr_to_vreg(gpr="a4", offset="t3", shorty="t2", fp="t0", refs="t1", z0="t4", z1="t5", D="s…
526 % store_gpr_to_vreg(gpr="a5", offset="t3", shorty="t2", fp="t0", refs="t1", z0="t4", z1="t5", D="s…
527 % store_gpr_to_vreg(gpr="a6", offset="t3", shorty="t2", fp="t0", refs="t1", z0="t4", z1="t5", D="s…
528 % store_gpr_to_vreg(gpr="a7", offset="t3", shorty="t2", fp="t0", refs="t1", z0="t4", z1="t5", D="s…
537 % store_outs_to_vregs(outs="t3", shorty="t2", fp="t4", refs="t1", z0="t5", z1="t6", D="s0", F="s4"…
543 % store_fpr_to_vreg(fpr="fa0", offset="t2", shorty="t1", fp="t0", z0="t3", z1="t4", D="s0", F="s4"…
544 % store_fpr_to_vreg(fpr="fa1", offset="t2", shorty="t1", fp="t0", z0="t3", z1="t4", D="s0", F="s4"…
[all …]
/art/compiler/jni/quick/
Dcalling_convention.cc52 std::string_view shorty, in Create() argument
60 is_static, is_synchronized, shorty)); in Create()
66 is_static, is_synchronized, shorty)); in Create()
72 is_static, is_synchronized, shorty)); in Create()
78 is_static, is_synchronized, shorty)); in Create()
84 is_static, is_synchronized, shorty)); in Create()
90 UNUSED(shorty); in Create()
153 std::string_view shorty, in Create() argument
161 is_static, is_synchronized, is_fast_native, is_critical_native, shorty)); in Create()
167 is_static, is_synchronized, is_fast_native, is_critical_native, shorty)); in Create()
[all …]
Dcalling_convention.h79 std::string_view shorty, in CallingConvention() argument
85 shorty_(shorty) { in CallingConvention()
86 num_args_ = (is_static ? 0 : 1) + shorty.length() - 1; in CallingConvention()
90 for (size_t i = 1; i < shorty.length(); i++) { in CallingConvention()
91 char ch = shorty[i]; in CallingConvention()
241 std::string_view shorty,
280 std::string_view shorty, in ManagedRuntimeCallingConvention() argument
282 : CallingConvention(is_static, is_synchronized, shorty, frame_pointer_size) {} in ManagedRuntimeCallingConvention()
306 std::string_view shorty,
406 std::string_view shorty, in JniCallingConvention() argument
[all …]
/art/libnativebridge/
Dnative_bridge_lazy.cc67 void* NativeBridgeGetTrampoline(void* handle, const char* name, const char* shorty, uint32_t len) { in NativeBridgeGetTrampoline() argument
69 return f(handle, name, shorty, len); in NativeBridgeGetTrampoline()
73 void* handle, const char* name, const char* shorty, uint32_t len, JNICallType jni_call_type) { in NativeBridgeGetTrampoline2() argument
75 return f(handle, name, shorty, len, jni_call_type); in NativeBridgeGetTrampoline2()
79 const char* shorty, in NativeBridgeGetTrampolineForFunctionPointer() argument
83 return f(method, shorty, len, jni_call_type); in NativeBridgeGetTrampolineForFunctionPointer()
/art/runtime/entrypoints/jni/
Djni_entrypoints.cc141 std::string_view shorty = method->GetShortyView(); in artCriticalNativeFrameSize() local
147 return arm::GetCriticalNativeStubFrameSize(shorty); in artCriticalNativeFrameSize()
149 return arm64::GetCriticalNativeStubFrameSize(shorty); in artCriticalNativeFrameSize()
151 return riscv64::GetCriticalNativeStubFrameSize(shorty); in artCriticalNativeFrameSize()
153 return x86::GetCriticalNativeStubFrameSize(shorty); in artCriticalNativeFrameSize()
155 return x86_64::GetCriticalNativeStubFrameSize(shorty); in artCriticalNativeFrameSize()
178 std::string_view shorty = dex_file->GetMethodShortyView(method_idx); in artCriticalNativeFrameSize() local
184 return arm::GetCriticalNativeDirectCallFrameSize(shorty); in artCriticalNativeFrameSize()
186 return arm64::GetCriticalNativeDirectCallFrameSize(shorty); in artCriticalNativeFrameSize()
188 return riscv64::GetCriticalNativeDirectCallFrameSize(shorty); in artCriticalNativeFrameSize()
[all …]
/art/libnativebridge/include/nativebridge/
Dnative_bridge.h90 void* NativeBridgeGetTrampoline(void* handle, const char* name, const char* shorty, uint32_t len);
94 const char* shorty,
99 const char* shorty,
237 void* (*getTrampoline)(void* handle, const char* name, const char* shorty, uint32_t len);
426 const char* shorty,
440 const char* shorty,
/art/compiler/optimizing/
Dbuilder.cc150 const char* shorty = dex_file_->GetMethodShorty(dex_file_->GetMethodId(method_idx)); in BuildIntrinsicGraph() local
151 size_t num_args = strlen(shorty + 1); in BuildIntrinsicGraph()
152 size_t num_wide_args = std::count(shorty + 1, shorty + 1 + num_args, 'J') + in BuildIntrinsicGraph()
153 std::count(shorty + 1, shorty + 1 + num_args, 'D'); in BuildIntrinsicGraph()
/art/runtime/interpreter/
Dinterpreter.cc48 std::string_view shorty, in InterpreterJni() argument
57 if (shorty == "L") { in InterpreterJni()
68 } else if (shorty == "V") { in InterpreterJni()
75 } else if (shorty == "Z") { in InterpreterJni()
82 } else if (shorty == "BI") { in InterpreterJni()
89 } else if (shorty == "II") { in InterpreterJni()
96 } else if (shorty == "LL") { in InterpreterJni()
109 } else if (shorty == "IIZ") { in InterpreterJni()
116 } else if (shorty == "ILI") { in InterpreterJni()
126 } else if (shorty == "SIZ") { in InterpreterJni()
[all …]
/art/compiler/jni/quick/arm64/
Dcalling_convention_arm64.h30 bool is_static, bool is_synchronized, std::string_view shorty) in Arm64ManagedRuntimeCallingConvention() argument
33 shorty, in Arm64ManagedRuntimeCallingConvention()
56 std::string_view shorty);
/art/compiler/jni/quick/x86_64/
Dcalling_convention_x86_64.h30 bool is_static, bool is_synchronized, std::string_view shorty) in X86_64ManagedRuntimeCallingConvention() argument
33 shorty, in X86_64ManagedRuntimeCallingConvention()
56 std::string_view shorty);
/art/compiler/jni/quick/x86/
Dcalling_convention_x86.h29 X86ManagedRuntimeCallingConvention(bool is_static, bool is_synchronized, std::string_view shorty) in X86ManagedRuntimeCallingConvention() argument
32 shorty, in X86ManagedRuntimeCallingConvention()
60 std::string_view shorty);
Dcalling_convention_x86.cc105 static ManagedRegister ReturnRegisterForShorty(std::string_view shorty, bool jni) { in ReturnRegisterForShorty() argument
106 if (shorty[0] == 'F' || shorty[0] == 'D') { in ReturnRegisterForShorty()
112 } else if (shorty[0] == 'J') { in ReturnRegisterForShorty()
114 } else if (shorty[0] == 'V') { in ReturnRegisterForShorty()
208 std::string_view shorty) in X86JniCallingConvention() argument
213 shorty, in X86JniCallingConvention()
/art/compiler/jni/quick/riscv64/
Dcalling_convention_riscv64.h30 bool is_static, bool is_synchronized, std::string_view shorty) in Riscv64ManagedRuntimeCallingConvention() argument
33 shorty, in Riscv64ManagedRuntimeCallingConvention()
56 std::string_view shorty);
/art/runtime/entrypoints/quick/
Dquick_trampoline_entrypoints.cc319 QuickArgumentVisitor(ArtMethod** sp, bool is_static, std::string_view shorty) in QuickArgumentVisitor() argument
322 shorty_(shorty), in QuickArgumentVisitor()
573 std::string_view shorty, in BuildQuickShadowFrameVisitor() argument
576 : QuickArgumentVisitor(sp, is_static, shorty), sf_(sf), cur_reg_(first_arg_reg) {} in BuildQuickShadowFrameVisitor()
713 std::string_view shorty = non_proxy_method->GetShortyView(); in artQuickToInterpreterBridge() local
730 sp, method->IsStatic(), shorty, shadow_frame, first_arg_reg); in artQuickToInterpreterBridge()
761 shorty[0] == 'L' || shorty[0] == '[', // class or array in artQuickToInterpreterBridge()
771 return NanBoxResultIfNeeded(result.GetJ(), shorty[0]); in artQuickToInterpreterBridge()
780 std::string_view shorty, in BuildQuickArgumentVisitor() argument
783 : QuickArgumentVisitor(sp, is_static, shorty), soa_(soa), args_(args) {} in BuildQuickArgumentVisitor()
[all …]
/art/compiler/jni/quick/arm/
Dcalling_convention_arm.h29 ArmManagedRuntimeCallingConvention(bool is_static, bool is_synchronized, std::string_view shorty) in ArmManagedRuntimeCallingConvention() argument
32 shorty, in ArmManagedRuntimeCallingConvention()
63 std::string_view shorty);

1234