diff options
| author | 2025-03-03 18:01:20 -0800 | |
|---|---|---|
| committer | 2025-03-03 18:01:20 -0800 | |
| commit | 9208bea8f7c4ca98e59b38f51a211c005f4cf1d7 (patch) | |
| tree | 5573cb41c947e31762a1d67814d9e86946ffe02c /runtime/mirror/class-inl.h | |
| parent | f97336b1d78f3d7f6def796988fd5cfc06d9a9c0 (diff) | |
| parent | e29eb53ebf11fdb891762db7dd927e95a0858fc0 (diff) | |
Snap for 13152920 from e29eb53ebf11fdb891762db7dd927e95a0858fc0 to 25Q2-release
Change-Id: I5c70c4ce7072f3c284c6cbd6d14eb63ba7e9cea6
Diffstat (limited to 'runtime/mirror/class-inl.h')
| -rw-r--r-- | runtime/mirror/class-inl.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/mirror/class-inl.h b/runtime/mirror/class-inl.h index 373b9b3105..06b5cf5e9f 100644 --- a/runtime/mirror/class-inl.h +++ b/runtime/mirror/class-inl.h @@ -1336,6 +1336,16 @@ inline void Class::SetHasDefaultMethods() { SetAccessFlagsDuringLinking(flags | kAccHasDefaultMethod); } +inline void Class::SetHasTypeChecksFailure() { + uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); + SetAccessFlags(flags | kAccHasTypeChecksFailure); +} + +inline bool Class::HasTypeChecksFailure() { + uint32_t flags = GetField32(OFFSET_OF_OBJECT_MEMBER(Class, access_flags_)); + return (flags & kAccHasTypeChecksFailure) != 0u; +} + inline void Class::ClearFinalizable() { // We're clearing the finalizable flag only for `Object` and `Enum` // during early setup without the boot image. |