Nicolas Geoffray | a00b54b | 2019-12-03 14:36:42 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2019 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 "dex/standard_dex_file.h" |
Nicolas Geoffray | e1d2dce | 2020-09-21 10:06:31 +0100 | [diff] [blame] | 19 | #include "dex/compact_dex_file.h" |
Nicolas Geoffray | a00b54b | 2019-12-03 14:36:42 +0000 | [diff] [blame] | 20 | #endif |
| 21 | |
| 22 | ASM_DEFINE(CODE_ITEM_REGISTERS_SIZE_OFFSET, |
| 23 | art::StandardDexFile::CodeItem::RegistersSizeOffset()) |
| 24 | ASM_DEFINE(CODE_ITEM_INS_SIZE_OFFSET, |
| 25 | art::StandardDexFile::CodeItem::InsSizeOffset()) |
| 26 | ASM_DEFINE(CODE_ITEM_OUTS_SIZE_OFFSET, |
| 27 | art::StandardDexFile::CodeItem::OutsSizeOffset()) |
| 28 | ASM_DEFINE(CODE_ITEM_INSNS_OFFSET, |
| 29 | art::StandardDexFile::CodeItem::InsnsOffset()) |
Nicolas Geoffray | e1d2dce | 2020-09-21 10:06:31 +0100 | [diff] [blame] | 30 | |
| 31 | ASM_DEFINE(COMPACT_CODE_ITEM_FIELDS_OFFSET, |
| 32 | art::CompactDexFile::CodeItem::FieldsOffset()) |
| 33 | ASM_DEFINE(COMPACT_CODE_ITEM_FLAGS_OFFSET, |
| 34 | art::CompactDexFile::CodeItem::InsnsCountAndFlagsOffset()) |
| 35 | ASM_DEFINE(COMPACT_CODE_ITEM_INSNS_OFFSET, |
| 36 | art::CompactDexFile::CodeItem::InsnsOffset()) |
| 37 | |
| 38 | ASM_DEFINE(COMPACT_CODE_ITEM_REGISTERS_INS_OUTS_FLAGS, |
| 39 | art::CompactDexFile::CodeItem::kFlagPreHeaderRegistersSize | |
| 40 | art::CompactDexFile::CodeItem::kFlagPreHeaderInsSize | |
| 41 | art::CompactDexFile::CodeItem::kFlagPreHeaderOutsSize) |
| 42 | ASM_DEFINE(COMPACT_CODE_ITEM_REGISTERS_FLAG, |
| 43 | art::CompactDexFile::CodeItem::kFlagPreHeaderRegistersSize) |
| 44 | ASM_DEFINE(COMPACT_CODE_ITEM_INS_FLAG, |
| 45 | art::CompactDexFile::CodeItem::kFlagPreHeaderInsSize) |
| 46 | ASM_DEFINE(COMPACT_CODE_ITEM_OUTS_FLAG, |
| 47 | art::CompactDexFile::CodeItem::kFlagPreHeaderOutsSize) |
| 48 | ASM_DEFINE(COMPACT_CODE_ITEM_INSNS_FLAG, |
| 49 | art::CompactDexFile::CodeItem::kFlagPreHeaderInsnsSize) |
| 50 | ASM_DEFINE(COMPACT_CODE_ITEM_REGISTERS_BIT, |
| 51 | art::CompactDexFile::CodeItem::kBitPreHeaderRegistersSize) |
| 52 | ASM_DEFINE(COMPACT_CODE_ITEM_INS_BIT, |
| 53 | art::CompactDexFile::CodeItem::kBitPreHeaderInsSize) |
| 54 | ASM_DEFINE(COMPACT_CODE_ITEM_OUTS_BIT, |
| 55 | art::CompactDexFile::CodeItem::kBitPreHeaderOutsSize) |
| 56 | ASM_DEFINE(COMPACT_CODE_ITEM_INSNS_BIT, |
| 57 | art::CompactDexFile::CodeItem::kBitPreHeaderInsnsSize) |
| 58 | ASM_DEFINE(COMPACT_CODE_ITEM_REGISTERS_SIZE_SHIFT, |
| 59 | art::CompactDexFile::CodeItem::kRegistersSizeShift) |
| 60 | ASM_DEFINE(COMPACT_CODE_ITEM_INS_SIZE_SHIFT, |
| 61 | art::CompactDexFile::CodeItem::kInsSizeShift) |
| 62 | ASM_DEFINE(COMPACT_CODE_ITEM_OUTS_SIZE_SHIFT, |
| 63 | art::CompactDexFile::CodeItem::kOutsSizeShift) |