diff options
author | 2025-02-04 10:26:33 +0000 | |
---|---|---|
committer | 2025-02-07 07:06:12 -0800 | |
commit | 08f1b58976bae5514a0d6877b4e8f68ff15bcafb (patch) | |
tree | cda31472d1a3367f730fa77a06c876c35a2ce250 /runtime/art_method.h | |
parent | 95cebecfa36d6275ae078b649aae3d6ed7622716 (diff) |
Remove cdex support from `ArtMethod`...
... and a few other places in `runtime/`.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 325430813
Change-Id: Ied837bffed78b1fe4c4d381772b8c1933b76f6c0
Diffstat (limited to 'runtime/art_method.h')
-rw-r--r-- | runtime/art_method.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/art_method.h b/runtime/art_method.h index 186ff7e45e..f826a594ca 100644 --- a/runtime/art_method.h +++ b/runtime/art_method.h @@ -914,10 +914,11 @@ class EXPORT ArtMethod final { !IsProxyMethod(); } - // We need to explicitly indicate whether the code item is obtained from the compact dex file, - // because in JVMTI, we obtain the code item from the standard dex file to update the method. - void SetCodeItem(const dex::CodeItem* code_item, bool is_compact_dex_code_item) - REQUIRES_SHARED(Locks::mutator_lock_); + void SetCodeItem(const dex::CodeItem* code_item) + REQUIRES_SHARED(Locks::mutator_lock_) { + DCHECK(HasCodeItem()); + SetDataPtrSize(code_item, kRuntimePointerSize); + } // Is this a hand crafted method used for something like describing callee saves? bool IsCalleeSaveMethod() REQUIRES_SHARED(Locks::mutator_lock_); |