diff options
author | 2024-05-13 12:27:42 +0000 | |
---|---|---|
committer | 2024-05-14 09:33:18 +0000 | |
commit | 7143edc113406fcd76ea677da88d8dfd6afff6c9 (patch) | |
tree | add59554ea62f40735d425024a58bd36ff950bb4 /runtime/common_dex_operations.h | |
parent | 678691f70aab81905a96734b51dab99c0439635a (diff) |
Add `ArtField::GetDeclaringClassDescriptor{,View}()`.
And clean up related `ArtField` and `ArtMethod` functions
for dex file descriptor and name access.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 338123769
Change-Id: I3bf9c3b6135ea8e6b018ec41c93c847446918169
Diffstat (limited to 'runtime/common_dex_operations.h')
-rw-r--r-- | runtime/common_dex_operations.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/common_dex_operations.h b/runtime/common_dex_operations.h index 58b54af078..67d38ec105 100644 --- a/runtime/common_dex_operations.h +++ b/runtime/common_dex_operations.h @@ -255,12 +255,12 @@ ALWAYS_INLINE bool DoFieldPutCommon(Thread* self, } if (UNLIKELY(!reg->VerifierInstanceOf(field_class))) { // This should never happen. - std::string temp1, temp2, temp3; + std::string temp1, temp2; self->ThrowNewExceptionF("Ljava/lang/InternalError;", "Put '%s' that is not instance of field '%s' in '%s'", reg->GetClass()->GetDescriptor(&temp1), field_class->GetDescriptor(&temp2), - field->GetDeclaringClass()->GetDescriptor(&temp3)); + field->GetDeclaringClassDescriptor()); return false; } } |