| /* |
| * Copyright (C) 2026 The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| #if ASM_DEFINE_INCLUDE_DEPENDENCIES |
| #include "dex/dex_file.h" |
| #include "dex/dex_file_structs.h" |
| #endif |
| |
| ASM_DEFINE(DEX_FILE_DATA_BEGIN_OFFSET, |
| art::DexFile::DataBeginOffset()) |
| ASM_DEFINE(DEX_FILE_METHOD_IDS_OFFSET, |
| art::DexFile::MethodIdsOffset()) |
| ASM_DEFINE(DEX_FILE_PROTO_IDS_OFFSET, |
| art::DexFile::ProtoIdsOffset()) |
| ASM_DEFINE(DEX_FILE_STRING_IDS_OFFSET, |
| art::DexFile::StringIdsOffset()) |
| ASM_DEFINE(DEX_FILE_STRING_ID_SIZE, |
| sizeof(art::dex::StringId)) |
| ASM_DEFINE(DEX_FILE_STRING_ID_STRING_DATA_OFFSET_OFFSET, |
| art::dex::StringId::StringDataOffsetOffset()) |
| ASM_DEFINE(DEX_FILE_PROTO_ID_SIZE, |
| sizeof(art::dex::ProtoId)) |
| ASM_DEFINE(DEX_FILE_PROTO_ID_SHORTY_INDEX_OFFSET, |
| art::dex::ProtoId::ShortyIndexOffset()) |
| ASM_DEFINE(DEX_FILE_METHOD_ID_SIZE, |
| sizeof(art::dex::MethodId)) |
| ASM_DEFINE(DEX_FILE_METHOD_ID_PROTO_INDEX_OFFSET, |
| art::dex::MethodId::ProtoIndexOffset()) |