Home
last modified time | relevance | path

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

123

/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.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/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.cc137 const char* shorty = method->GetShorty(&shorty_len); in artCriticalNativeFrameSize() local
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()
173 const char* shorty = dex_file->GetMethodShorty(dex_file->GetMethodId(method_idx), &shorty_len); in artCriticalNativeFrameSize() local
179 return arm::GetCriticalNativeDirectCallFrameSize(shorty, shorty_len); in artCriticalNativeFrameSize()
181 return arm64::GetCriticalNativeDirectCallFrameSize(shorty, shorty_len); in artCriticalNativeFrameSize()
183 return x86::GetCriticalNativeDirectCallFrameSize(shorty, shorty_len); in artCriticalNativeFrameSize()
185 return x86_64::GetCriticalNativeDirectCallFrameSize(shorty, shorty_len); in artCriticalNativeFrameSize()
/art/compiler/jni/quick/
Dcalling_convention.cc48 const char* shorty, in Create() argument
56 is_static, is_synchronized, shorty)); in Create()
62 is_static, is_synchronized, shorty)); in Create()
68 is_static, is_synchronized, shorty)); in Create()
74 is_static, is_synchronized, shorty)); in Create()
138 const char* shorty, in Create() argument
146 is_static, is_synchronized, is_critical_native, shorty)); in Create()
152 is_static, is_synchronized, is_critical_native, shorty)); in Create()
158 is_static, is_synchronized, is_critical_native, shorty)); in Create()
164 is_static, is_synchronized, is_critical_native, shorty)); in Create()
Dcalling_convention.h78 const char* shorty, in CallingConvention() argument
84 shorty_(shorty) { in CallingConvention()
85 num_args_ = (is_static ? 0 : 1) + strlen(shorty) - 1; in CallingConvention()
89 for (size_t i = 1; i < strlen(shorty); i++) { in CallingConvention()
236 const char* shorty,
270 const char* shorty, in ManagedRuntimeCallingConvention() argument
272 : CallingConvention(is_static, is_synchronized, shorty, frame_pointer_size) {} in ManagedRuntimeCallingConvention()
295 const char* shorty,
395 const char* shorty, in JniCallingConvention() argument
397 : 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()
544 const char* shorty = in InvokeWithVarArgs() local
[all …]
/art/compiler/optimizing/
Dbuilder.cc161 const char* shorty = dex_file_->GetMethodShorty(dex_file_->GetMethodId(method_idx)); in BuildIntrinsicGraph() local
162 size_t num_args = strlen(shorty + 1); in BuildIntrinsicGraph()
163 size_t num_wide_args = std::count(shorty + 1, shorty + 1 + num_args, 'J') + in BuildIntrinsicGraph()
164 std::count(shorty + 1, shorty + 1 + num_args, 'D'); in BuildIntrinsicGraph()
Dintrinsics_utils.h115 const char* shorty = dex_file.GetShorty(invoke->AsInvokePolymorphic()->GetProtoIndex()); in GetDataTypeFromShorty() local
116 DCHECK_LT(index, strlen(shorty)); in GetDataTypeFromShorty()
118 return DataType::FromShorty(shorty[index]); in GetDataTypeFromShorty()
/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.cc143 static ManagedRegister ReturnRegisterForShorty(const char* shorty) { in ReturnRegisterForShorty() argument
144 if (shorty[0] == 'F') { in ReturnRegisterForShorty()
146 } else if (shorty[0] == 'D') { in ReturnRegisterForShorty()
148 } else if (shorty[0] == 'J') { in ReturnRegisterForShorty()
150 } else if (shorty[0] == 'V') { in ReturnRegisterForShorty()
219 const char* shorty) in Arm64JniCallingConvention() argument
223 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.cc105 static ManagedRegister ReturnRegisterForShorty(const char* shorty, bool jni ATTRIBUTE_UNUSED) { in ReturnRegisterForShorty() argument
106 if (shorty[0] == 'F' || shorty[0] == 'D') { in ReturnRegisterForShorty()
108 } else if (shorty[0] == 'J') { in ReturnRegisterForShorty()
110 } else if (shorty[0] == 'V') { in ReturnRegisterForShorty()
172 const char* shorty) in X86_64JniCallingConvention() argument
176 shorty, in X86_64JniCallingConvention()
/art/compiler/jni/quick/x86/
Dcalling_convention_x86.cc85 static ManagedRegister ReturnRegisterForShorty(const char* shorty, bool jni) { in ReturnRegisterForShorty() argument
86 if (shorty[0] == 'F' || shorty[0] == 'D') { in ReturnRegisterForShorty()
92 } else if (shorty[0] == 'J') { in ReturnRegisterForShorty()
94 } else if (shorty[0] == 'V') { in ReturnRegisterForShorty()
184 const char* shorty) in X86JniCallingConvention() argument
188 shorty, in X86JniCallingConvention()
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);
/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/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/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/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()
/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.S408 .macro LOOP_OVER_SHORTY_LOADING_XMMS xmm_reg, inst, shorty, arg_index, finished
410 movb (REG_VAR(shorty)), %al // bl := *shorty
411 addq MACRO_LITERAL(1), REG_VAR(shorty) // shorty++
469 .macro LOOP_OVER_SHORTY_LOADING_GPRS gpr_reg64, gpr_reg32, inst, shorty, arg_index, finished
471 movb (REG_VAR(shorty)), %al // al := *shorty
472 addq MACRO_LITERAL(1), REG_VAR(shorty) // shorty++
536 .macro LOOP_RANGE_OVER_SHORTY_LOADING_XMMS xmm_reg, shorty, arg_index, stack_index, finished
538 movb (REG_VAR(shorty)), %al // al := *shorty
539 addq MACRO_LITERAL(1), REG_VAR(shorty) // shorty++
575 .macro LOOP_RANGE_OVER_FPs shorty, arg_index, stack_index, finished
[all …]
/art/libnativebridge/include/nativebridge/
Dnative_bridge.h84 void* NativeBridgeGetTrampoline(void* handle, const char* name, const char* shorty, uint32_t len);
217 void* (*getTrampoline)(void* handle, const char* name, const char* shorty, uint32_t len);

123