blob: c2e18b1913e436d9dac4851a4f854a5249247299 [file] [log] [blame]
David Srbecky766e74f2018-10-02 17:12:24 +01001/*
2 * Copyright (C) 2018 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#if ASM_DEFINE_INCLUDE_DEPENDENCIES
18#include "art_method.h"
Nicolas Geoffrayd5a86952021-01-19 10:35:54 +000019#include "imtable.h"
David Srbecky766e74f2018-10-02 17:12:24 +010020#endif
21
22ASM_DEFINE(ART_METHOD_ACCESS_FLAGS_OFFSET,
23 art::ArtMethod::AccessFlagsOffset().Int32Value())
Nicolas Geoffraya00b54b2019-12-03 14:36:42 +000024ASM_DEFINE(ART_METHOD_IS_STATIC_FLAG,
25 art::kAccStatic)
Nicolas Geoffrayd5a86952021-01-19 10:35:54 +000026ASM_DEFINE(ART_METHOD_IMT_MASK,
27 art::ImTable::kSizeTruncToPowerOfTwo - 1)
Nicolas Geoffraye5859642021-01-08 18:09:36 +000028ASM_DEFINE(ART_METHOD_IS_STATIC_FLAG_BIT,
29 art::MostSignificantBit(art::kAccStatic))
David Srbecky766e74f2018-10-02 17:12:24 +010030ASM_DEFINE(ART_METHOD_DECLARING_CLASS_OFFSET,
31 art::ArtMethod::DeclaringClassOffset().Int32Value())
32ASM_DEFINE(ART_METHOD_JNI_OFFSET_32,
33 art::ArtMethod::EntryPointFromJniOffset(art::PointerSize::k32).Int32Value())
34ASM_DEFINE(ART_METHOD_JNI_OFFSET_64,
35 art::ArtMethod::EntryPointFromJniOffset(art::PointerSize::k64).Int32Value())
Nicolas Geoffray47171752020-08-31 15:03:20 +010036ASM_DEFINE(ART_METHOD_DATA_OFFSET_32,
37 art::ArtMethod::DataOffset(art::PointerSize::k32).Int32Value())
38ASM_DEFINE(ART_METHOD_DATA_OFFSET_64,
39 art::ArtMethod::DataOffset(art::PointerSize::k64).Int32Value())
David Srbecky766e74f2018-10-02 17:12:24 +010040ASM_DEFINE(ART_METHOD_QUICK_CODE_OFFSET_32,
41 art::ArtMethod::EntryPointFromQuickCompiledCodeOffset(art::PointerSize::k32).Int32Value())
42ASM_DEFINE(ART_METHOD_QUICK_CODE_OFFSET_64,
43 art::ArtMethod::EntryPointFromQuickCompiledCodeOffset(art::PointerSize::k64).Int32Value())
Nicolas Geoffraya00b54b2019-12-03 14:36:42 +000044ASM_DEFINE(ART_METHOD_METHOD_INDEX_OFFSET,
45 art::ArtMethod::MethodIndexOffset().Int32Value())
46ASM_DEFINE(ART_METHOD_IMT_INDEX_OFFSET,
47 art::ArtMethod::ImtIndexOffset().Int32Value())
48ASM_DEFINE(ART_METHOD_HOTNESS_COUNT_OFFSET,
49 art::ArtMethod::HotnessCountOffset().Int32Value())