Home
last modified time | relevance | path

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

123

/art/runtime/arch/x86/
Djni_frame_x86.h43 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()
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()
60 bool return_type_ok = shorty[0] == 'I' || shorty[0] == 'J' || shorty[0] == 'V'; 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/arm64/
Djni_frame_arm64.h57 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()
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()
75 if (size != 0u || shorty[0] == 'B' || shorty[0] == 'C' || shorty[0] == 'S' || shorty[0] == 'Z') { 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/test/115-native-bridge/
Dexpected.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/arm/
Djni_frame_arm.h42 inline size_t GetCriticalNativeCallArgsSize(const char* shorty, uint32_t shorty_len) { in GetCriticalNativeCallArgsSize() argument
43 DCHECK_EQ(shorty_len, strlen(shorty)); in GetCriticalNativeCallArgsSize()
47 if (shorty[i] == 'J' || shorty[i] == 'D') { 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()
68 if (size != 0u || shorty[0] == 'F' || shorty[0] == 'D') { 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()
Dquick_entrypoints_cc_arm.cc29 Thread* self, JValue* result, const char* shorty) { in quick_invoke_reg_setup() argument
37 const uint32_t result_in_float = (shorty[0] == 'F' || shorty[0] == 'D') ? 1 : 0; in quick_invoke_reg_setup()
44 for (uint32_t shorty_index = 1; shorty[shorty_index] != '\0'; ++shorty_index, ++arg_index) { in quick_invoke_reg_setup()
45 char arg_type = shorty[shorty_index]; in quick_invoke_reg_setup()
100 Thread* self, JValue* result, const char* shorty) { in art_quick_invoke_stub() argument
101 quick_invoke_reg_setup<false>(method, args, args_size, self, result, shorty); in art_quick_invoke_stub()
108 const char* shorty) { in art_quick_invoke_static_stub() argument
109 quick_invoke_reg_setup<true>(method, args, args_size, self, result, shorty); in art_quick_invoke_static_stub()
/art/runtime/arch/x86_64/
Djni_frame_x86_64.h62 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()
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/entrypoints/jni/
Djni_entrypoints.cc134 const char* shorty = method->GetShorty(&shorty_len); in artCriticalNativeFrameSize() local
140 return arm::GetCriticalNativeStubFrameSize(shorty, shorty_len); in artCriticalNativeFrameSize()
142 return arm64::GetCriticalNativeStubFrameSize(shorty, shorty_len); in artCriticalNativeFrameSize()
144 return x86::GetCriticalNativeStubFrameSize(shorty, shorty_len); in artCriticalNativeFrameSize()
146 return x86_64::GetCriticalNativeStubFrameSize(shorty, shorty_len); in artCriticalNativeFrameSize()
170 const char* shorty = dex_file->GetMethodShorty(dex_file->GetMethodId(method_idx), &shorty_len); in artCriticalNativeFrameSize() local
176 return arm::GetCriticalNativeDirectCallFrameSize(shorty, shorty_len); in artCriticalNativeFrameSize()
178 return arm64::GetCriticalNativeDirectCallFrameSize(shorty, shorty_len); in artCriticalNativeFrameSize()
180 return x86::GetCriticalNativeDirectCallFrameSize(shorty, shorty_len); in artCriticalNativeFrameSize()
182 return x86_64::GetCriticalNativeDirectCallFrameSize(shorty, shorty_len); in artCriticalNativeFrameSize()
/art/compiler/jni/quick/
Dcalling_convention.cc47 const char* shorty, in Create() argument
55 is_static, is_synchronized, shorty)); in Create()
61 is_static, is_synchronized, shorty)); in Create()
67 is_static, is_synchronized, shorty)); in Create()
73 is_static, is_synchronized, shorty)); in Create()
137 const char* shorty, in Create() argument
145 is_static, is_synchronized, is_critical_native, shorty)); in Create()
151 is_static, is_synchronized, is_critical_native, shorty)); in Create()
157 is_static, is_synchronized, is_critical_native, shorty)); in Create()
163 is_static, is_synchronized, is_critical_native, shorty)); in Create()
Dcalling_convention.h79 const char* shorty, in CallingConvention() argument
86 shorty_(shorty) { in CallingConvention()
87 num_args_ = (is_static ? 0 : 1) + strlen(shorty) - 1; in CallingConvention()
91 for (size_t i = 1; i < strlen(shorty); i++) { in CallingConvention()
240 const char* shorty,
274 const char* shorty, in ManagedRuntimeCallingConvention() argument
276 : CallingConvention(is_static, is_synchronized, shorty, frame_pointer_size) {} in ManagedRuntimeCallingConvention()
299 const char* shorty,
410 const char* shorty, in JniCallingConvention() argument
412 : CallingConvention(is_static, is_synchronized, shorty, frame_pointer_size), in JniCallingConvention()
/art/runtime/
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()
536 const char* shorty = in InvokeWithVarArgs() local
[all …]
/art/compiler/optimizing/
Dbuilder.cc165 const char* shorty = dex_file_->GetMethodShorty(dex_file_->GetMethodId(method_idx)); in BuildIntrinsicGraph() local
166 size_t num_args = strlen(shorty + 1); in BuildIntrinsicGraph()
167 size_t num_wide_args = std::count(shorty + 1, shorty + 1 + num_args, 'J') + in BuildIntrinsicGraph()
168 std::count(shorty + 1, shorty + 1 + num_args, 'D'); in BuildIntrinsicGraph()
/art/compiler/jni/quick/arm64/
Dcalling_convention_arm64.h28 Arm64ManagedRuntimeCallingConvention(bool is_static, bool is_synchronized, const char* shorty) in Arm64ManagedRuntimeCallingConvention() argument
31 shorty, in Arm64ManagedRuntimeCallingConvention()
52 const char* shorty);
Dcalling_convention_arm64.cc144 static ManagedRegister ReturnRegisterForShorty(const char* shorty) { in ReturnRegisterForShorty() argument
145 if (shorty[0] == 'F') { in ReturnRegisterForShorty()
147 } else if (shorty[0] == 'D') { in ReturnRegisterForShorty()
149 } else if (shorty[0] == 'J') { in ReturnRegisterForShorty()
151 } else if (shorty[0] == 'V') { in ReturnRegisterForShorty()
220 const char* shorty) in Arm64JniCallingConvention() argument
224 shorty, in Arm64JniCallingConvention()
/art/compiler/jni/quick/x86_64/
Dcalling_convention_x86_64.h28 X86_64ManagedRuntimeCallingConvention(bool is_static, bool is_synchronized, const char* shorty) in X86_64ManagedRuntimeCallingConvention() argument
31 shorty, in X86_64ManagedRuntimeCallingConvention()
52 const char* shorty);
Dcalling_convention_x86_64.cc99 static ManagedRegister ReturnRegisterForShorty(const char* shorty, bool jni ATTRIBUTE_UNUSED) { in ReturnRegisterForShorty() argument
100 if (shorty[0] == 'F' || shorty[0] == 'D') { in ReturnRegisterForShorty()
102 } else if (shorty[0] == 'J') { in ReturnRegisterForShorty()
104 } else if (shorty[0] == 'V') { in ReturnRegisterForShorty()
166 const char* shorty) in X86_64JniCallingConvention() argument
170 shorty, in X86_64JniCallingConvention()
/art/compiler/jni/quick/x86/
Dcalling_convention_x86.h28 X86ManagedRuntimeCallingConvention(bool is_static, bool is_synchronized, const char* shorty) in X86ManagedRuntimeCallingConvention() argument
31 shorty, in X86ManagedRuntimeCallingConvention()
57 const char* shorty);
Dcalling_convention_x86.cc79 static ManagedRegister ReturnRegisterForShorty(const char* shorty, bool jni) { in ReturnRegisterForShorty() argument
80 if (shorty[0] == 'F' || shorty[0] == 'D') { in ReturnRegisterForShorty()
86 } else if (shorty[0] == 'J') { in ReturnRegisterForShorty()
88 } else if (shorty[0] == 'V') { in ReturnRegisterForShorty()
178 const char* shorty) in X86JniCallingConvention() argument
182 shorty, in X86JniCallingConvention()
/art/compiler/jni/quick/arm/
Dcalling_convention_arm.h28 ArmManagedRuntimeCallingConvention(bool is_static, bool is_synchronized, const char* shorty) in ArmManagedRuntimeCallingConvention() argument
31 shorty, in ArmManagedRuntimeCallingConvention()
60 const char* shorty);
/art/runtime/interpreter/
Dinterpreter.cc50 std::string_view shorty, in InterpreterJni() argument
59 if (shorty == "L") { in InterpreterJni()
70 } else if (shorty == "V") { in InterpreterJni()
77 } else if (shorty == "Z") { in InterpreterJni()
84 } else if (shorty == "BI") { in InterpreterJni()
91 } else if (shorty == "II") { in InterpreterJni()
98 } else if (shorty == "LL") { in InterpreterJni()
111 } else if (shorty == "IIZ") { in InterpreterJni()
118 } else if (shorty == "ILI") { in InterpreterJni()
128 } else if (shorty == "SIZ") { in InterpreterJni()
[all …]
/art/runtime/entrypoints/quick/
Dquick_trampoline_entrypoints.cc288 QuickArgumentVisitor(ArtMethod** sp, bool is_static, const char* shorty, in QuickArgumentVisitor() argument
290 is_static_(is_static), shorty_(shorty), shorty_len_(shorty_len), in QuickArgumentVisitor()
535 BuildQuickShadowFrameVisitor(ArtMethod** sp, bool is_static, const char* shorty, in BuildQuickShadowFrameVisitor() argument
537 QuickArgumentVisitor(sp, is_static, shorty, shorty_len), sf_(sf), cur_reg_(first_arg_reg) {} in BuildQuickShadowFrameVisitor()
668 const char* shorty = non_proxy_method->GetShorty(&shorty_len); in artQuickToInterpreterBridge() local
684 BuildQuickShadowFrameVisitor shadow_frame_builder(sp, method->IsStatic(), shorty, shorty_len, in artQuickToInterpreterBridge()
739 shorty[0] == 'L' || shorty[0] == '[', /* class or array */ 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()
831 const char* shorty = non_proxy_method->GetShorty(&shorty_len); in artQuickProxyInvokeHandler() local
[all …]
/art/compiler/jni/
Djni_cfi_test.cc63 const char* shorty = "IIFII"; in TestImplSized() local
73 shorty, in TestImplSized()
77 &allocator, is_static, is_synchronized, shorty, isa)); in TestImplSized()
/art/runtime/interpreter/mterp/x86_64ng/
Dmain.S331 .macro LOOP_OVER_SHORTY_LOADING_XMMS xmm_reg, inst, shorty, arg_index, finished
333 movb (REG_VAR(shorty)), %al // bl := *shorty
334 addq MACRO_LITERAL(1), REG_VAR(shorty) // shorty++
392 .macro LOOP_OVER_SHORTY_LOADING_GPRS gpr_reg64, gpr_reg32, inst, shorty, arg_index, finished
394 movb (REG_VAR(shorty)), %al // bl := *shorty
395 addq MACRO_LITERAL(1), REG_VAR(shorty) // shorty++
459 .macro LOOP_RANGE_OVER_SHORTY_LOADING_XMMS xmm_reg, shorty, arg_index, stack_index, finished
461 movb (REG_VAR(shorty)), %al // bl := *shorty
462 addq MACRO_LITERAL(1), REG_VAR(shorty) // shorty++
498 .macro LOOP_RANGE_OVER_FPs shorty, arg_index, stack_index, finished
[all …]
/art/libnativebridge/include/nativebridge/
Dnative_bridge.h79 void* NativeBridgeGetTrampoline(void* handle, const char* name, const char* shorty, uint32_t len);
212 void* (*getTrampoline)(void* handle, const char* name, const char* shorty, uint32_t len);
/art/libnativebridge/
Dnative_bridge_lazy.cc93 void* NativeBridgeGetTrampoline(void* handle, const char* name, const char* shorty, uint32_t len) { in NativeBridgeGetTrampoline() argument
95 return f(handle, name, shorty, len); in NativeBridgeGetTrampoline()
/art/runtime/entrypoints/
Dentrypoint_utils.cc63 const char* shorty, in InvokeProxyInvocationHandler() argument
82 if (shorty[i + 1] == 'L') { in InvokeProxyInvocationHandler()
88 ObjPtr<mirror::Object> val = BoxPrimitive(Primitive::GetType(shorty[i + 1]), jv); in InvokeProxyInvocationHandler()
110 if (shorty[0] == 'V' || (shorty[0] == 'L' && result == nullptr)) { in InvokeProxyInvocationHandler()

123