/* * Copyright (c) 2021-2024 Huawei Device Co., Ltd. * 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. */ #ifndef DISASM_ACCUMULATORS_H_INCLUDED #define DISASM_ACCUMULATORS_H_INCLUDED #include #include #include #include "libpandafile/debug_info_extractor.h" namespace ark::disasm { using LabelTable = std::map; using IdList = std::vector; struct MethodInfo { std::string methodInfo; std::vector instructionsInfo; panda_file::LineNumberTable lineNumberTable; panda_file::LocalVariableTable localVariableTable; }; struct RecordInfo { std::string recordInfo; std::vector fieldsInfo; }; struct ProgInfo { std::map recordsInfo; std::map methodsInfo; }; using AnnotationList = std::vector>; struct RecordAnnotations { AnnotationList annList; std::map fieldAnnotations; }; struct ProgAnnotations { std::map methodAnnotations; std::map recordAnnotations; }; } // namespace ark::disasm #endif