diff options
author | Dave Allison <dallison@google.com> | 2014-04-09 23:36:15 +0000 |
---|---|---|
committer | Dave Allison <dallison@google.com> | 2014-04-09 23:36:15 +0000 |
commit | d6ed642458c8820e1beca72f3d7b5f0be4a4b64b (patch) | |
tree | 1b6e0438f786d6eeb5566e176d71d454a6cdb9e5 /compiler/oat_writer.h | |
parent | f9487c039efb4112616d438593a2ab02792e0304 (diff) | |
download | art-d6ed642458c8820e1beca72f3d7b5f0be4a4b64b.zip art-d6ed642458c8820e1beca72f3d7b5f0be4a4b64b.tar.gz art-d6ed642458c8820e1beca72f3d7b5f0be4a4b64b.tar.bz2 |
Revert "Revert "Revert "Use trampolines for calls to helpers"""
This reverts commit f9487c039efb4112616d438593a2ab02792e0304.
Change-Id: Id48a4aae4ecce73db468587967968a3f7618b700
Diffstat (limited to 'compiler/oat_writer.h')
-rw-r--r-- | compiler/oat_writer.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/compiler/oat_writer.h b/compiler/oat_writer.h index 2840cbf..bab1a26 100644 --- a/compiler/oat_writer.h +++ b/compiler/oat_writer.h @@ -95,10 +95,6 @@ class OatWriter { return method_info_; } - uint32_t GetCurrentTrampolineIslandOffset() const { - return current_trampoline_island_offset_; - } - private: size_t InitOatHeader(); size_t InitOatDexFiles(size_t offset); @@ -138,9 +134,6 @@ class OatWriter { void ReportWriteFailure(const char* what, uint32_t method_idx, const DexFile& dex_file, const OutputStream& out) const; - uint32_t AllocateTrampolineIslandIfNecessary(uint32_t offset); - uint32_t WriteTrampolineIslandIfNecessary(OutputStream* out, uint32_t offset); - class OatDexFile { public: explicit OatDexFile(size_t offset, const DexFile& dex_file); @@ -295,21 +288,6 @@ class OatWriter { SafeMap<const std::vector<uint8_t>*, uint32_t> mapping_table_offsets_; SafeMap<const std::vector<uint8_t>*, uint32_t> gc_map_offsets_; - // The trampoline islands. These are sequences of code inserted between methods - // in the output. They contain jumps to other addresses and are accessed - // by direct calls in the method code. Due to the range of call instructions - // on certain architectures, we need to be able to put down multiple islands that - // are in range of the call instructions. On ARM this is done every 15MB (the call range - // on Thumb2 is 16MB). At any point in the output we have a current island that is - // guaranteed to be in range. This is held in the 'current_trampoline_island_offset' - // variable (an offset into the instruction stream). - // - // The vector 'trampoline_island_offsets' contains the offsets of the all the - // islands we have generated. This is used when performing the write of the file. - - uint32_t current_trampoline_island_offset_; // Current island offset. - std::vector<uint32_t> trampoline_island_offsets_; // All the island offsets. - DISALLOW_COPY_AND_ASSIGN(OatWriter); }; |