diff options
author | Andreas Gampe <agampe@google.com> | 2018-12-28 09:39:56 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2019-01-02 10:32:25 -0800 |
commit | 3f1dcd39e134d994ac88dcc4f30ec8cabcd8decf (patch) | |
tree | 365d20ad6b68ff1dbd4903764b63880324136e4d /runtime/dex_to_dex_decompiler.h | |
parent | 0f0a4e40667c87fbd4ae5480eddbfd701bfabfa2 (diff) | |
download | art-3f1dcd39e134d994ac88dcc4f30ec8cabcd8decf.tar.gz art-3f1dcd39e134d994ac88dcc4f30ec8cabcd8decf.tar.bz2 art-3f1dcd39e134d994ac88dcc4f30ec8cabcd8decf.zip |
ART: Move dex structs into own header
Separating out the structs from DexFile allows them to be forward-
declared, which reduces the need to include the dex_file header.
Bug: 119869270
Test: m
Change-Id: I32dde5a632884bca7435cd584b4a81883de2e7b4
Diffstat (limited to 'runtime/dex_to_dex_decompiler.h')
-rw-r--r-- | runtime/dex_to_dex_decompiler.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/runtime/dex_to_dex_decompiler.h b/runtime/dex_to_dex_decompiler.h index 93711d17db..4b6b0f707a 100644 --- a/runtime/dex_to_dex_decompiler.h +++ b/runtime/dex_to_dex_decompiler.h @@ -18,9 +18,15 @@ #define ART_RUNTIME_DEX_TO_DEX_DECOMPILER_H_ #include "base/array_ref.h" -#include "dex/dex_file.h" namespace art { + +class DexFile; + +namespace dex { +struct CodeItem; +} // namespace dex + namespace optimizer { // "Decompile", that is unquicken, the code item provided, given the @@ -30,7 +36,7 @@ namespace optimizer { // consistent with DexToDexCompiler, but we should really change it to // DexFile::CodeItem*. bool ArtDecompileDEX(const DexFile& dex_file, - const DexFile::CodeItem& code_item, + const dex::CodeItem& code_item, const ArrayRef<const uint8_t>& quickened_data, bool decompile_return_instruction); |