[core] New value of kAccPreCompiled for S (#531)

This commit is contained in:
LoveSy 2021-05-02 11:45:46 +08:00 committed by GitHub
parent cf59bfbac9
commit 96b9942df0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -10,16 +10,17 @@
int SDKVersion;
size_t OFFSET_entry_point_from_quick_compiled_code_in_ArtMethod;
namespace {
size_t ArtMethodSize;
constexpr size_t OFFSET_access_flags_in_ArtMethod = 4;
constexpr uint32_t kAccCompileDontBother = 0x02000000;
constexpr uint32_t kAccPreCompiled = 0x00200000;
constexpr uint32_t kAccPublic = 0x0001; // class, field, method, ic
constexpr uint32_t kAccPrivate = 0x0002; // field, method, ic
constexpr uint32_t kAccProtected = 0x0004; // field, method, ic
constexpr uint32_t kAccStatic = 0x0008; // field, method, ic
constexpr uint32_t kAccFastInterpreterToInterpreterInvoke = 0x40000000;
size_t ArtMethodSize;
uint32_t kAccPreCompiled = 0x00200000;
jfieldID fieldArtMethod = nullptr;
constexpr inline uint32_t read32(void *addr) {
@ -129,6 +130,7 @@ namespace yahfa {
OFFSET_entry_point_from_quick_compiled_code_in_ArtMethod =
roundUpToPtrSize(4 * 3 + 2 * 2) + pointer_size;
ArtMethodSize = roundUpToPtrSize(4 * 3 + 2 * 2) + pointer_size * 2;
kAccPreCompiled = 0x00800000;
break;
case __ANDROID_API_R__:
case __ANDROID_API_Q__: