/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 …]
|
D | nativebridge.cc | 78 const char* shorty = gNativeBridgeArtCallbacks->getMethodShorty(env, mid); in trampoline_JNI_OnLoad() local 79 if (strcmp(shorty, methods[i].signature) == 0) { in trampoline_JNI_OnLoad() 81 methods[i].name, nb_method->signature, shorty); in trampoline_JNI_OnLoad() 451 extern "C" void* native_bridge_getTrampoline(void* handle, const char* name, const char* shorty, in native_bridge_getTrampoline() argument 453 printf("Getting trampoline for %s with shorty %s.\n", name, shorty); in native_bridge_getTrampoline()
|
/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() 153 const char* shorty, in Create() argument 163 shorty)); in Create() 171 shorty)); in Create() [all …]
|
D | calling_convention.h | 76 const char* shorty, in CallingConvention() argument 83 shorty_(shorty) { in CallingConvention() 84 num_args_ = (is_static ? 0 : 1) + strlen(shorty) - 1; in CallingConvention() 88 for (size_t i = 1; i < strlen(shorty); i++) { in CallingConvention() 237 const char* shorty, 266 const char* shorty, in ManagedRuntimeCallingConvention() argument 268 : CallingConvention(is_static, is_synchronized, shorty, frame_pointer_size) {} in ManagedRuntimeCallingConvention() 291 const char* shorty, 376 const char* shorty, in JniCallingConvention() argument 378 : CallingConvention(is_static, is_synchronized, shorty, frame_pointer_size), in JniCallingConvention()
|
/art/runtime/ |
D | reflection.cc | 42 ArgArray(const char* shorty, uint32_t shorty_len) in ArgArray() argument 43 : shorty_(shorty), shorty_len_(shorty_len), num_bytes_(0) { in ArgArray() 51 char c = shorty[i]; in ArgArray() 447 const char* shorty) in InvokeWithArgArray() argument 453 method->Invoke(soa.Self(), args, arg_array->GetNumBytes(), result, shorty); in InvokeWithArgArray() 475 const char* shorty = in InvokeWithVarArgs() local 478 ArgArray arg_array(shorty, shorty_len); in InvokeWithVarArgs() 480 InvokeWithArgArray(soa, method, &arg_array, &result, shorty); in InvokeWithVarArgs() 506 const char* shorty = in InvokeWithJValues() local 509 ArgArray arg_array(shorty, shorty_len); in InvokeWithJValues() [all …]
|
D | art_method.cc | 157 size_t ArtMethod::NumArgRegisters(const StringPiece& shorty) { in NumArgRegisters() argument 158 CHECK_LE(1U, shorty.length()); in NumArgRegisters() 160 for (size_t i = 1; i < shorty.length(); ++i) { in NumArgRegisters() 161 char ch = shorty[i]; in NumArgRegisters() 298 const char* shorty) { in Invoke() argument 307 CHECK_STREQ(GetInterfaceMethodIfProxy(kRuntimePointerSize)->GetShorty(), shorty); in Invoke() 353 (*art_quick_invoke_stub)(this, args, args_size, self, result, shorty); in Invoke() 355 (*art_quick_invoke_static_stub)(this, args, args_size, self, result, shorty); in Invoke()
|
D | java_vm_ext.cc | 147 void* FindSymbol(const std::string& symbol_name, const char* shorty = nullptr) { in FindSymbol() argument 149 ? FindSymbolWithNativeBridge(symbol_name.c_str(), shorty) in FindSymbol() 159 void* FindSymbolWithNativeBridge(const std::string& symbol_name, const char* shorty) { in FindSymbolWithNativeBridge() argument 163 return android::NativeBridgeGetTrampoline(handle_, symbol_name.c_str(), shorty, len); in FindSymbolWithNativeBridge() 256 const char* shorty = library->NeedsNativeBridge() in FindNativeMethod() local 259 void* fn = library->FindSymbol(jni_short_name, shorty); in FindNativeMethod() 261 fn = library->FindSymbol(jni_long_name, shorty); in FindNativeMethod()
|
/art/compiler/jni/quick/x86/ |
D | calling_convention_x86.cc | 65 static ManagedRegister ReturnRegisterForShorty(const char* shorty, bool jni) { in ReturnRegisterForShorty() argument 66 if (shorty[0] == 'F' || shorty[0] == 'D') { in ReturnRegisterForShorty() 72 } else if (shorty[0] == 'J') { in ReturnRegisterForShorty() 74 } else if (shorty[0] == 'V') { in ReturnRegisterForShorty() 197 const char* shorty) in X86JniCallingConvention() argument 201 shorty, in X86JniCallingConvention()
|
D | calling_convention_x86.h | 30 X86ManagedRuntimeCallingConvention(bool is_static, bool is_synchronized, const char* shorty) in X86ManagedRuntimeCallingConvention() argument 33 shorty, in X86ManagedRuntimeCallingConvention() 61 const char* shorty);
|
/art/runtime/interpreter/ |
D | interpreter.cc | 45 const StringPiece& shorty, in InterpreterJni() argument 54 if (shorty == "L") { in InterpreterJni() 65 } else if (shorty == "V") { in InterpreterJni() 72 } else if (shorty == "Z") { in InterpreterJni() 79 } else if (shorty == "BI") { in InterpreterJni() 86 } else if (shorty == "II") { in InterpreterJni() 93 } else if (shorty == "LL") { in InterpreterJni() 106 } else if (shorty == "IIZ") { in InterpreterJni() 113 } else if (shorty == "ILI") { in InterpreterJni() 123 } else if (shorty == "SIZ") { in InterpreterJni() [all …]
|
/art/compiler/jni/quick/mips64/ |
D | calling_convention_mips64.cc | 73 static ManagedRegister ReturnRegisterForShorty(const char* shorty) { in ReturnRegisterForShorty() argument 74 if (shorty[0] == 'F' || shorty[0] == 'D') { in ReturnRegisterForShorty() 76 } else if (shorty[0] == 'V') { in ReturnRegisterForShorty() 159 const char* shorty) in Mips64JniCallingConvention() argument 163 shorty, in Mips64JniCallingConvention()
|
D | calling_convention_mips64.h | 32 Mips64ManagedRuntimeCallingConvention(bool is_static, bool is_synchronized, const char* shorty) in Mips64ManagedRuntimeCallingConvention() argument 35 shorty, in Mips64ManagedRuntimeCallingConvention() 60 const char* shorty);
|
/art/compiler/jni/quick/x86_64/ |
D | calling_convention_x86_64.h | 28 X86_64ManagedRuntimeCallingConvention(bool is_static, bool is_synchronized, const char* shorty) in X86_64ManagedRuntimeCallingConvention() argument 31 shorty, in X86_64ManagedRuntimeCallingConvention() 54 const char* shorty);
|
D | calling_convention_x86_64.cc | 92 static ManagedRegister ReturnRegisterForShorty(const char* shorty, bool jni ATTRIBUTE_UNUSED) { in ReturnRegisterForShorty() argument 93 if (shorty[0] == 'F' || shorty[0] == 'D') { in ReturnRegisterForShorty() 95 } else if (shorty[0] == 'J') { in ReturnRegisterForShorty() 97 } else if (shorty[0] == 'V') { in ReturnRegisterForShorty() 179 const char* shorty) in X86_64JniCallingConvention() argument 183 shorty, in X86_64JniCallingConvention()
|
/art/compiler/jni/quick/arm64/ |
D | calling_convention_arm64.h | 30 Arm64ManagedRuntimeCallingConvention(bool is_static, bool is_synchronized, const char* shorty) in Arm64ManagedRuntimeCallingConvention() argument 33 shorty, in Arm64ManagedRuntimeCallingConvention() 58 const char* shorty);
|
D | calling_convention_arm64.cc | 118 static ManagedRegister ReturnRegisterForShorty(const char* shorty) { in ReturnRegisterForShorty() argument 119 if (shorty[0] == 'F') { in ReturnRegisterForShorty() 121 } else if (shorty[0] == 'D') { in ReturnRegisterForShorty() 123 } else if (shorty[0] == 'J') { in ReturnRegisterForShorty() 125 } else if (shorty[0] == 'V') { in ReturnRegisterForShorty() 224 const char* shorty) in Arm64JniCallingConvention() argument 228 shorty, in Arm64JniCallingConvention()
|
/art/compiler/jni/quick/mips/ |
D | calling_convention_mips.h | 32 MipsManagedRuntimeCallingConvention(bool is_static, bool is_synchronized, const char* shorty) in MipsManagedRuntimeCallingConvention() argument 35 shorty, in MipsManagedRuntimeCallingConvention() 60 const char* shorty);
|
D | calling_convention_mips.cc | 84 static ManagedRegister ReturnRegisterForShorty(const char* shorty) { in ReturnRegisterForShorty() argument 85 if (shorty[0] == 'F') { in ReturnRegisterForShorty() 87 } else if (shorty[0] == 'D') { in ReturnRegisterForShorty() 89 } else if (shorty[0] == 'J') { in ReturnRegisterForShorty() 91 } else if (shorty[0] == 'V') { in ReturnRegisterForShorty() 196 const char* shorty) in MipsJniCallingConvention() argument 200 shorty, in MipsJniCallingConvention()
|
/art/compiler/jni/quick/arm/ |
D | calling_convention_arm.h | 30 ArmManagedRuntimeCallingConvention(bool is_static, bool is_synchronized, const char* shorty) in ArmManagedRuntimeCallingConvention() argument 33 shorty, in ArmManagedRuntimeCallingConvention() 58 const char* shorty);
|
/art/runtime/entrypoints/quick/ |
D | quick_trampoline_entrypoints.cc | 392 QuickArgumentVisitor(ArtMethod** sp, bool is_static, const char* shorty, in QuickArgumentVisitor() argument 394 is_static_(is_static), shorty_(shorty), shorty_len_(shorty_len), in QuickArgumentVisitor() 644 BuildQuickShadowFrameVisitor(ArtMethod** sp, bool is_static, const char* shorty, in BuildQuickShadowFrameVisitor() argument 646 QuickArgumentVisitor(sp, is_static, shorty, shorty_len), sf_(sf), cur_reg_(first_arg_reg) {} in BuildQuickShadowFrameVisitor() 711 const char* shorty = non_proxy_method->GetShorty(&shorty_len); in artQuickToInterpreterBridge() local 774 BuildQuickShadowFrameVisitor shadow_frame_builder(sp, method->IsStatic(), shorty, shorty_len, in artQuickToInterpreterBridge() 816 result, shorty[0] == 'L', /* from_code */ false, self->GetException()); in artQuickToInterpreterBridge() 831 BuildQuickArgumentVisitor(ArtMethod** sp, bool is_static, const char* shorty, uint32_t shorty_len, in BuildQuickArgumentVisitor() argument 833 QuickArgumentVisitor(sp, is_static, shorty, shorty_len), soa_(soa), args_(args) {} in BuildQuickArgumentVisitor() 918 const char* shorty = non_proxy_method->GetShorty(&shorty_len); in artQuickProxyInvokeHandler() local [all …]
|
/art/compiler/jni/ |
D | jni_cfi_test.cc | 61 const char* shorty = "IIFII"; in TestImplSized() local 71 shorty, in TestImplSized() 74 ManagedRuntimeCallingConvention::Create(&arena, is_static, is_synchronized, shorty, isa)); in TestImplSized()
|
/art/runtime/entrypoints/ |
D | entrypoint_utils.cc | 58 JValue InvokeProxyInvocationHandler(ScopedObjectAccessAlreadyRunnable& soa, const char* shorty, in InvokeProxyInvocationHandler() argument 76 if (shorty[i + 1] == 'L') { in InvokeProxyInvocationHandler() 82 mirror::Object* val = BoxPrimitive(Primitive::GetType(shorty[i + 1]), jv).Ptr(); in InvokeProxyInvocationHandler() 104 if (shorty[0] == 'V' || (shorty[0] == 'L' && result == nullptr)) { in InvokeProxyInvocationHandler()
|
/art/tools/dexfuzz/src/dexfuzz/program/ |
D | IdCreator.java | 248 public int findOrCreateMethodId(String className, String methodName, String shorty) { in findOrCreateMethodId() argument 249 int methodIdIdx = findMethodId(className, methodName, shorty); in findOrCreateMethodId() 253 return createMethodId(className, methodName, shorty); in findOrCreateMethodId() 695 String shorty = convertSignatureToShorty(signature); in createProtoId() local 718 int shortyIdx = findOrCreateString(shorty); in createProtoId() 754 String shorty = convertSignatureToShorty(signature); in findProtoId() local 758 int shortyIdx = findString(shorty); in findProtoId()
|
/art/compiler/utils/ |
D | test_dex_file_builder.h | 67 AddString(proto_key.shorty); in AddMethod() 185 Write32(raw_offset + 0u, GetStringIdx(entry.first.shorty)); in Build() 299 std::string shorty; member 348 key.shorty += (*args == '[') ? 'L' : *args; in CreateProtoKey()
|