/art/test/115-native-bridge/ |
D | expected.txt | 5 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/ |
D | quick_entrypoints_cc_arm.cc | 29 Thread* self, JValue* result, const char* shorty) { in quick_invoke_reg_setup() argument 38 (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() 105 Thread* self, JValue* result, const char* shorty) { in art_quick_invoke_stub() argument 106 quick_invoke_reg_setup<false>(method, args, args_size, self, result, shorty); in art_quick_invoke_stub() 113 const char* shorty) { in art_quick_invoke_static_stub() argument 114 quick_invoke_reg_setup<true>(method, args, args_size, self, result, shorty); in art_quick_invoke_static_stub()
|
/art/compiler/jni/quick/ |
D | calling_convention.cc | 53 const char* shorty, in Create() argument 60 new (arena) arm::ArmManagedRuntimeCallingConvention(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() 83 new (arena) x86::X86ManagedRuntimeCallingConvention(is_static, is_synchronized, shorty)); in Create() 89 is_static, is_synchronized, shorty)); in Create() 152 const char* shorty, in Create() argument 159 new (arena) arm::ArmJniCallingConvention(is_static, is_synchronized, shorty)); in Create() 164 new (arena) arm64::Arm64JniCallingConvention(is_static, is_synchronized, shorty)); in Create() [all …]
|
D | calling_convention.h | 74 CallingConvention(bool is_static, bool is_synchronized, const char* shorty, in CallingConvention() argument 81 shorty_(shorty) { in CallingConvention() 82 num_args_ = (is_static ? 0 : 1) + strlen(shorty) - 1; in CallingConvention() 86 for (size_t i = 1; i < strlen(shorty); i++) { in CallingConvention() 229 const char* shorty, 258 const char* shorty, in ManagedRuntimeCallingConvention() argument 260 : CallingConvention(is_static, is_synchronized, shorty, frame_pointer_size) {} in ManagedRuntimeCallingConvention() 282 const char* shorty, 360 JniCallingConvention(bool is_static, bool is_synchronized, const char* shorty, in JniCallingConvention() argument 362 : CallingConvention(is_static, is_synchronized, shorty, frame_pointer_size) {} in JniCallingConvention()
|
/art/runtime/lambda/ |
D | art_lambda_method.cc | 40 const char* shorty = captured_variables_shorty_; in ArtLambdaMethod() local 41 while (shorty != nullptr && *shorty != '\0') { in ArtLambdaMethod() 43 ShortyFieldType shorty_field{*shorty}; // NOLINT [readability/braces] [4] in ArtLambdaMethod() 46 ++shorty; in ArtLambdaMethod()
|
D | shorty_field_type_test.cc | 99 ShortyFieldType shorty; in ParseLongTypeDescriptorsToList() local 102 while ((parsed = ShortyFieldType::ParseFromFieldTypeDescriptor(parsed, &shorty)) != nullptr) { in ParseLongTypeDescriptorsToList() 103 lst.push_back(shorty); in ParseLongTypeDescriptorsToList() 125 ShortyFieldType shorty; in TEST_F() local 131 EXPECT_TRUE(ShortyFieldType::MaybeCreate(c, &shorty)) << c; in TEST_F() 140 EXPECT_FALSE(ShortyFieldType::MaybeCreate(static_cast<char>(c), &shorty)) << c; in TEST_F() 233 ShortyFieldType shorty = kShortyEnum; in CheckExpects() local 236 EXPECT_EQ(is_primitive_, shorty.IsPrimitive()); in CheckExpects() 237 EXPECT_EQ(is_primitive_narrow_, shorty.IsPrimitiveNarrow()); in CheckExpects() 238 EXPECT_EQ(is_primitive_wide_, shorty.IsPrimitiveWide()); in CheckExpects() [all …]
|
D | closure_test.cc | 227 const char* shorty = descriptor; in TestPrimitive() local 231 ASSERT_EQ(strlen(shorty), sizeof...(args)) in TestPrimitive() 237 shorty, in TestPrimitive() 254 TestPrimitiveWithClosure(closure_raw.get(), descriptor, shorty, args ...); in TestPrimitive() 267 TestPrimitiveWithClosure(closure_built.get(), descriptor, shorty, args ...); in TestPrimitive() 281 const char* shorty, in TestPrimitiveWithClosure() argument 286 TestPrimitiveExpects(closure, shorty, /*index*/0, args ...); in TestPrimitiveWithClosure() 292 const Closure* closure, const char* shorty, size_t index, T arg, Args ... args) { in TestPrimitiveExpects() argument 293 ASSERT_EQ(ShortyFieldType(shorty[index]).GetStaticSize(), sizeof(T)) in TestPrimitiveExpects() 296 EXPECT_EQ(ShortyFieldType(shorty[index]), closure->GetCapturedShortyType(index)); in TestPrimitiveExpects() [all …]
|
D | closure_builder.cc | 160 ShortyFieldType shorty{shorty_types[i]}; // NOLINT [readability/braces] [4] in WriteValues() local 163 if (LIKELY(shorty.IsStaticSize())) { in WriteValues() 166 if (UNLIKELY(shorty.IsObject())) { in WriteValues() 170 if (UNLIKELY(shorty.IsObject())) { in WriteValues() 175 var_size = shorty.GetStaticSize(); in WriteValues() 183 DCHECK(shorty.IsLambda()) in WriteValues()
|
/art/compiler/jni/quick/x86/ |
D | calling_convention_x86.cc | 40 static ManagedRegister ReturnRegisterForShorty(const char* shorty, bool jni) { in ReturnRegisterForShorty() argument 41 if (shorty[0] == 'F' || shorty[0] == 'D') { in ReturnRegisterForShorty() 47 } else if (shorty[0] == 'J') { in ReturnRegisterForShorty() 49 } else if (shorty[0] == 'V') { in ReturnRegisterForShorty() 170 const char* shorty) in X86JniCallingConvention() argument 171 : JniCallingConvention(is_static, is_synchronized, shorty, kFramePointerSize) { in X86JniCallingConvention()
|
D | calling_convention_x86.h | 29 X86ManagedRuntimeCallingConvention(bool is_static, bool is_synchronized, const char* shorty) in X86ManagedRuntimeCallingConvention() argument 30 : ManagedRuntimeCallingConvention(is_static, is_synchronized, shorty, kFramePointerSize), in X86ManagedRuntimeCallingConvention() 53 X86JniCallingConvention(bool is_static, bool is_synchronized, const char* shorty);
|
/art/runtime/ |
D | reflection.cc | 38 ArgArray(const char* shorty, uint32_t shorty_len) in ArgArray() argument 39 : shorty_(shorty), shorty_len_(shorty_len), num_bytes_(0) { in ArgArray() 47 char c = shorty[i]; in ArgArray() 433 const char* shorty) in InvokeWithArgArray() argument 439 method->Invoke(soa.Self(), args, arg_array->GetNumBytes(), result, shorty); in InvokeWithArgArray() 461 const char* shorty = method->GetInterfaceMethodIfProxy(sizeof(void*))->GetShorty(&shorty_len); in InvokeWithVarArgs() local 463 ArgArray arg_array(shorty, shorty_len); in InvokeWithVarArgs() 465 InvokeWithArgArray(soa, method, &arg_array, &result, shorty); in InvokeWithVarArgs() 491 const char* shorty = method->GetInterfaceMethodIfProxy(sizeof(void*))->GetShorty(&shorty_len); in InvokeWithJValues() local 493 ArgArray arg_array(shorty, shorty_len); in InvokeWithJValues() [all …]
|
D | art_method.cc | 93 size_t ArtMethod::NumArgRegisters(const StringPiece& shorty) { in NumArgRegisters() argument 94 CHECK_LE(1U, shorty.length()); in NumArgRegisters() 96 for (size_t i = 1; i < shorty.length(); ++i) { in NumArgRegisters() 97 char ch = shorty[i]; in NumArgRegisters() 237 const char* shorty) { in Invoke() argument 246 CHECK_STREQ(GetInterfaceMethodIfProxy(sizeof(void*))->GetShorty(), shorty); in Invoke() 289 (*art_quick_invoke_stub)(this, args, args_size, self, result, shorty); in Invoke() 291 (*art_quick_invoke_static_stub)(this, args, args_size, self, result, shorty); in Invoke()
|
/art/compiler/jni/quick/x86_64/ |
D | calling_convention_x86_64.cc | 41 static ManagedRegister ReturnRegisterForShorty(const char* shorty, bool jni ATTRIBUTE_UNUSED) { in ReturnRegisterForShorty() argument 42 if (shorty[0] == 'F' || shorty[0] == 'D') { in ReturnRegisterForShorty() 44 } else if (shorty[0] == 'J') { in ReturnRegisterForShorty() 46 } else if (shorty[0] == 'V') { in ReturnRegisterForShorty() 126 const char* shorty) in X86_64JniCallingConvention() argument 127 : JniCallingConvention(is_static, is_synchronized, shorty, kFramePointerSize) { in X86_64JniCallingConvention()
|
D | calling_convention_x86_64.h | 29 X86_64ManagedRuntimeCallingConvention(bool is_static, bool is_synchronized, const char* shorty) in X86_64ManagedRuntimeCallingConvention() argument 30 : ManagedRuntimeCallingConvention(is_static, is_synchronized, shorty, kFramePointerSize) {} in X86_64ManagedRuntimeCallingConvention() 49 X86_64JniCallingConvention(bool is_static, bool is_synchronized, const char* shorty);
|
/art/compiler/jni/quick/mips/ |
D | calling_convention_mips.cc | 39 static ManagedRegister ReturnRegisterForShorty(const char* shorty) { in ReturnRegisterForShorty() argument 40 if (shorty[0] == 'F') { in ReturnRegisterForShorty() 42 } else if (shorty[0] == 'D') { in ReturnRegisterForShorty() 44 } else if (shorty[0] == 'J') { in ReturnRegisterForShorty() 46 } else if (shorty[0] == 'V') { in ReturnRegisterForShorty() 148 const char* shorty) in MipsJniCallingConvention() argument 149 : JniCallingConvention(is_static, is_synchronized, shorty, kFramePointerSize) { in MipsJniCallingConvention()
|
D | calling_convention_mips.h | 29 MipsManagedRuntimeCallingConvention(bool is_static, bool is_synchronized, const char* shorty) in MipsManagedRuntimeCallingConvention() argument 30 : ManagedRuntimeCallingConvention(is_static, is_synchronized, shorty, kFramePointerSize) {} in MipsManagedRuntimeCallingConvention() 51 MipsJniCallingConvention(bool is_static, bool is_synchronized, const char* shorty);
|
/art/compiler/jni/quick/mips64/ |
D | calling_convention_mips64.cc | 43 static ManagedRegister ReturnRegisterForShorty(const char* shorty) { in ReturnRegisterForShorty() argument 44 if (shorty[0] == 'F' || shorty[0] == 'D') { in ReturnRegisterForShorty() 46 } else if (shorty[0] == 'V') { in ReturnRegisterForShorty() 127 const char* shorty) in Mips64JniCallingConvention() argument 128 : JniCallingConvention(is_static, is_synchronized, shorty, kFramePointerSize) { in Mips64JniCallingConvention()
|
D | calling_convention_mips64.h | 29 Mips64ManagedRuntimeCallingConvention(bool is_static, bool is_synchronized, const char* shorty) in Mips64ManagedRuntimeCallingConvention() argument 30 : ManagedRuntimeCallingConvention(is_static, is_synchronized, shorty, kFramePointerSize) {} in Mips64ManagedRuntimeCallingConvention() 51 Mips64JniCallingConvention(bool is_static, bool is_synchronized, const char* shorty);
|
/art/runtime/interpreter/ |
D | interpreter.cc | 35 static void InterpreterJni(Thread* self, ArtMethod* method, const StringPiece& shorty, in InterpreterJni() argument 42 if (shorty == "L") { in InterpreterJni() 53 } else if (shorty == "V") { in InterpreterJni() 60 } else if (shorty == "Z") { in InterpreterJni() 67 } else if (shorty == "BI") { in InterpreterJni() 74 } else if (shorty == "II") { in InterpreterJni() 81 } else if (shorty == "LL") { in InterpreterJni() 95 } else if (shorty == "IIZ") { in InterpreterJni() 102 } else if (shorty == "ILI") { in InterpreterJni() 113 } else if (shorty == "SIZ") { in InterpreterJni() [all …]
|
/art/compiler/jni/quick/arm64/ |
D | calling_convention_arm64.cc | 54 static ManagedRegister ReturnRegisterForShorty(const char* shorty) { in ReturnRegisterForShorty() argument 55 if (shorty[0] == 'F') { in ReturnRegisterForShorty() 57 } else if (shorty[0] == 'D') { in ReturnRegisterForShorty() 59 } else if (shorty[0] == 'J') { in ReturnRegisterForShorty() 61 } else if (shorty[0] == 'V') { in ReturnRegisterForShorty() 158 const char* shorty) in Arm64JniCallingConvention() argument 159 : JniCallingConvention(is_static, is_synchronized, shorty, kFramePointerSize) { in Arm64JniCallingConvention()
|
D | calling_convention_arm64.h | 29 Arm64ManagedRuntimeCallingConvention(bool is_static, bool is_synchronized, const char* shorty) in Arm64ManagedRuntimeCallingConvention() argument 30 : ManagedRuntimeCallingConvention(is_static, is_synchronized, shorty, kFramePointerSize) {} in Arm64ManagedRuntimeCallingConvention() 51 Arm64JniCallingConvention(bool is_static, bool is_synchronized, const char* shorty);
|
/art/compiler/jni/quick/arm/ |
D | calling_convention_arm.h | 29 ArmManagedRuntimeCallingConvention(bool is_static, bool is_synchronized, const char* shorty) in ArmManagedRuntimeCallingConvention() argument 30 : ManagedRuntimeCallingConvention(is_static, is_synchronized, shorty, kFramePointerSize) {} in ArmManagedRuntimeCallingConvention() 51 ArmJniCallingConvention(bool is_static, bool is_synchronized, const char* shorty);
|
/art/compiler/jni/ |
D | jni_cfi_test.cc | 45 const char* shorty = "IIFII"; in TestImpl() local 51 JniCallingConvention::Create(&arena, is_static, is_synchronized, shorty, isa)); in TestImpl() 53 ManagedRuntimeCallingConvention::Create(&arena, is_static, is_synchronized, shorty, isa)); in TestImpl()
|
/art/runtime/entrypoints/quick/ |
D | quick_trampoline_entrypoints.cc | 352 QuickArgumentVisitor(ArtMethod** sp, bool is_static, const char* shorty, in QuickArgumentVisitor() argument 354 is_static_(is_static), shorty_(shorty), shorty_len_(shorty_len), in QuickArgumentVisitor() 598 BuildQuickShadowFrameVisitor(ArtMethod** sp, bool is_static, const char* shorty, in BuildQuickShadowFrameVisitor() argument 600 QuickArgumentVisitor(sp, is_static, shorty, shorty_len), sf_(sf), cur_reg_(first_arg_reg) {} in BuildQuickShadowFrameVisitor() 665 const char* shorty = non_proxy_method->GetShorty(&shorty_len); in artQuickToInterpreterBridge() local 729 BuildQuickShadowFrameVisitor shadow_frame_builder(sp, method->IsStatic(), shorty, shorty_len, in artQuickToInterpreterBridge() 762 result, shorty[0] == 'L', /* from_code */ false, self->GetException()); in artQuickToInterpreterBridge() 776 BuildQuickArgumentVisitor(ArtMethod** sp, bool is_static, const char* shorty, uint32_t shorty_len, in BuildQuickArgumentVisitor() argument 778 QuickArgumentVisitor(sp, is_static, shorty, shorty_len), soa_(soa), args_(args) {} in BuildQuickArgumentVisitor() 863 const char* shorty = non_proxy_method->GetShorty(&shorty_len); in artQuickProxyInvokeHandler() local [all …]
|
/art/runtime/entrypoints/ |
D | entrypoint_utils.cc | 138 JValue InvokeProxyInvocationHandler(ScopedObjectAccessAlreadyRunnable& soa, const char* shorty, in InvokeProxyInvocationHandler() argument 156 if (shorty[i + 1] == 'L') { in InvokeProxyInvocationHandler() 162 mirror::Object* val = BoxPrimitive(Primitive::GetType(shorty[i + 1]), jv); in InvokeProxyInvocationHandler() 184 if (shorty[0] == 'V' || (shorty[0] == 'L' && result == nullptr)) { in InvokeProxyInvocationHandler()
|