Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2011 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 | |
Brian Carlstrom | fc0e321 | 2013-07-17 14:40:12 -0700 | [diff] [blame] | 17 | #ifndef ART_COMPILER_OAT_WRITER_H_ |
| 18 | #define ART_COMPILER_OAT_WRITER_H_ |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 19 | |
| 20 | #include <stdint.h> |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 21 | #include <cstddef> |
Ian Rogers | 700a402 | 2014-05-19 16:49:03 -0700 | [diff] [blame] | 22 | #include <memory> |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 23 | |
| 24 | #include "driver/compiler_driver.h" |
| 25 | #include "mem_map.h" |
| 26 | #include "oat.h" |
| 27 | #include "mirror/class.h" |
| 28 | #include "safe_map.h" |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 29 | |
| 30 | namespace art { |
| 31 | |
Brian Carlstrom | ba150c3 | 2013-08-27 17:31:03 -0700 | [diff] [blame] | 32 | class BitVector; |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 33 | class OutputStream; |
| 34 | |
| 35 | // OatHeader variable length with count of D OatDexFiles |
| 36 | // |
| 37 | // OatDexFile[0] one variable sized OatDexFile with offsets to Dex and OatClasses |
| 38 | // OatDexFile[1] |
| 39 | // ... |
| 40 | // OatDexFile[D] |
| 41 | // |
| 42 | // Dex[0] one variable sized DexFile for each OatDexFile. |
| 43 | // Dex[1] these are literal copies of the input .dex files. |
| 44 | // ... |
| 45 | // Dex[D] |
| 46 | // |
| 47 | // OatClass[0] one variable sized OatClass for each of C DexFile::ClassDefs |
| 48 | // OatClass[1] contains OatClass entries with class status, offsets to code, etc. |
| 49 | // ... |
| 50 | // OatClass[C] |
| 51 | // |
Vladimir Marko | 96c6ab9 | 2014-04-08 14:00:50 +0100 | [diff] [blame] | 52 | // GcMap one variable sized blob with GC map. |
| 53 | // GcMap GC maps are deduplicated. |
| 54 | // ... |
| 55 | // GcMap |
| 56 | // |
| 57 | // VmapTable one variable sized VmapTable blob (quick compiler only). |
| 58 | // VmapTable VmapTables are deduplicated. |
| 59 | // ... |
| 60 | // VmapTable |
| 61 | // |
| 62 | // MappingTable one variable sized blob with MappingTable (quick compiler only). |
| 63 | // MappingTable MappingTables are deduplicated. |
| 64 | // ... |
| 65 | // MappingTable |
| 66 | // |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 67 | // padding if necessary so that the following code will be page aligned |
| 68 | // |
Vladimir Marko | 96c6ab9 | 2014-04-08 14:00:50 +0100 | [diff] [blame] | 69 | // OatMethodHeader fixed size header for a CompiledMethod including the size of the MethodCode. |
| 70 | // MethodCode one variable sized blob with the code of a CompiledMethod. |
| 71 | // OatMethodHeader (OatMethodHeader, MethodCode) pairs are deduplicated. |
| 72 | // MethodCode |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 73 | // ... |
Vladimir Marko | 96c6ab9 | 2014-04-08 14:00:50 +0100 | [diff] [blame] | 74 | // OatMethodHeader |
| 75 | // MethodCode |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 76 | // |
| 77 | class OatWriter { |
| 78 | public: |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 79 | OatWriter(const std::vector<const DexFile*>& dex_files, |
| 80 | uint32_t image_file_location_oat_checksum, |
Ian Rogers | ef7d42f | 2014-01-06 12:55:46 -0800 | [diff] [blame] | 81 | uintptr_t image_file_location_oat_begin, |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 82 | const std::string& image_file_location, |
Ian Rogers | ca368cb | 2013-11-15 15:52:08 -0800 | [diff] [blame] | 83 | const CompilerDriver* compiler, |
| 84 | TimingLogger* timings); |
Brian Carlstrom | c50d8e1 | 2013-07-23 22:35:16 -0700 | [diff] [blame] | 85 | |
| 86 | const OatHeader& GetOatHeader() const { |
| 87 | return *oat_header_; |
| 88 | } |
| 89 | |
| 90 | size_t GetSize() const { |
| 91 | return size_; |
| 92 | } |
| 93 | |
Ian Rogers | 3d50407 | 2014-03-01 09:16:49 -0800 | [diff] [blame] | 94 | bool Write(OutputStream* out); |
Brian Carlstrom | c50d8e1 | 2013-07-23 22:35:16 -0700 | [diff] [blame] | 95 | |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 96 | ~OatWriter(); |
| 97 | |
Mark Mendell | ae9fd93 | 2014-02-10 16:14:35 -0800 | [diff] [blame] | 98 | struct DebugInfo { |
| 99 | DebugInfo(const std::string& method_name, uint32_t low_pc, uint32_t high_pc) |
| 100 | : method_name_(method_name), low_pc_(low_pc), high_pc_(high_pc) { |
| 101 | } |
| 102 | std::string method_name_; |
| 103 | uint32_t low_pc_; |
| 104 | uint32_t high_pc_; |
| 105 | }; |
| 106 | |
| 107 | const std::vector<DebugInfo>& GetCFIMethodInfo() const { |
| 108 | return method_info_; |
| 109 | } |
| 110 | |
Brian Carlstrom | c50d8e1 | 2013-07-23 22:35:16 -0700 | [diff] [blame] | 111 | private: |
Vladimir Marko | 96c6ab9 | 2014-04-08 14:00:50 +0100 | [diff] [blame] | 112 | // The DataAccess classes are helper classes that provide access to members related to |
| 113 | // a given map, i.e. GC map, mapping table or vmap table. By abstracting these away |
| 114 | // we can share a lot of code for processing the maps with template classes below. |
| 115 | struct GcMapDataAccess; |
| 116 | struct MappingTableDataAccess; |
| 117 | struct VmapTableDataAccess; |
| 118 | |
| 119 | // The function VisitDexMethods() below iterates through all the methods in all |
| 120 | // the compiled dex files in order of their definitions. The method visitor |
| 121 | // classes provide individual bits of processing for each of the passes we need to |
| 122 | // first collect the data we want to write to the oat file and then, in later passes, |
| 123 | // to actually write it. |
| 124 | class DexMethodVisitor; |
| 125 | class OatDexMethodVisitor; |
| 126 | class InitOatClassesMethodVisitor; |
| 127 | class InitCodeMethodVisitor; |
| 128 | template <typename DataAccess> |
| 129 | class InitMapMethodVisitor; |
| 130 | class InitImageMethodVisitor; |
| 131 | class WriteCodeMethodVisitor; |
| 132 | template <typename DataAccess> |
| 133 | class WriteMapMethodVisitor; |
| 134 | |
| 135 | // Visit all the methods in all the compiled dex files in their definition order |
| 136 | // with a given DexMethodVisitor. |
| 137 | bool VisitDexMethods(DexMethodVisitor* visitor); |
| 138 | |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 139 | size_t InitOatHeader(); |
| 140 | size_t InitOatDexFiles(size_t offset); |
| 141 | size_t InitDexFiles(size_t offset); |
| 142 | size_t InitOatClasses(size_t offset); |
Vladimir Marko | 96c6ab9 | 2014-04-08 14:00:50 +0100 | [diff] [blame] | 143 | size_t InitOatMaps(size_t offset); |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 144 | size_t InitOatCode(size_t offset) |
| 145 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); |
| 146 | size_t InitOatCodeDexFiles(size_t offset) |
| 147 | SHARED_LOCKS_REQUIRED(Locks::mutator_lock_); |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 148 | |
Ian Rogers | 3d50407 | 2014-03-01 09:16:49 -0800 | [diff] [blame] | 149 | bool WriteTables(OutputStream* out, const size_t file_offset); |
Vladimir Marko | 96c6ab9 | 2014-04-08 14:00:50 +0100 | [diff] [blame] | 150 | size_t WriteMaps(OutputStream* out, const size_t file_offset, size_t relative_offset); |
| 151 | size_t WriteCode(OutputStream* out, const size_t file_offset, size_t relative_offset); |
Ian Rogers | 3d50407 | 2014-03-01 09:16:49 -0800 | [diff] [blame] | 152 | size_t WriteCodeDexFiles(OutputStream* out, const size_t file_offset, size_t relative_offset); |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 153 | |
| 154 | class OatDexFile { |
| 155 | public: |
| 156 | explicit OatDexFile(size_t offset, const DexFile& dex_file); |
| 157 | size_t SizeOf() const; |
Ian Rogers | 3d50407 | 2014-03-01 09:16:49 -0800 | [diff] [blame] | 158 | void UpdateChecksum(OatHeader* oat_header) const; |
| 159 | bool Write(OatWriter* oat_writer, OutputStream* out, const size_t file_offset) const; |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 160 | |
| 161 | // Offset of start of OatDexFile from beginning of OatHeader. It is |
| 162 | // used to validate file position when writing. |
| 163 | size_t offset_; |
| 164 | |
| 165 | // data to write |
| 166 | uint32_t dex_file_location_size_; |
| 167 | const uint8_t* dex_file_location_data_; |
| 168 | uint32_t dex_file_location_checksum_; |
| 169 | uint32_t dex_file_offset_; |
| 170 | std::vector<uint32_t> methods_offsets_; |
| 171 | |
| 172 | private: |
| 173 | DISALLOW_COPY_AND_ASSIGN(OatDexFile); |
| 174 | }; |
| 175 | |
| 176 | class OatClass { |
| 177 | public: |
Brian Carlstrom | ba150c3 | 2013-08-27 17:31:03 -0700 | [diff] [blame] | 178 | explicit OatClass(size_t offset, |
Vladimir Marko | 96c6ab9 | 2014-04-08 14:00:50 +0100 | [diff] [blame] | 179 | const std::vector<CompiledMethod*>& compiled_methods, |
Brian Carlstrom | ba150c3 | 2013-08-27 17:31:03 -0700 | [diff] [blame] | 180 | uint32_t num_non_null_compiled_methods, |
| 181 | mirror::Class::Status status); |
| 182 | ~OatClass(); |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 183 | size_t GetOatMethodOffsetsOffsetFromOatHeader(size_t class_def_method_index_) const; |
| 184 | size_t GetOatMethodOffsetsOffsetFromOatClass(size_t class_def_method_index_) const; |
| 185 | size_t SizeOf() const; |
Ian Rogers | 3d50407 | 2014-03-01 09:16:49 -0800 | [diff] [blame] | 186 | void UpdateChecksum(OatHeader* oat_header) const; |
| 187 | bool Write(OatWriter* oat_writer, OutputStream* out, const size_t file_offset) const; |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 188 | |
Brian Carlstrom | ba150c3 | 2013-08-27 17:31:03 -0700 | [diff] [blame] | 189 | CompiledMethod* GetCompiledMethod(size_t class_def_method_index) const { |
Vladimir Marko | 96c6ab9 | 2014-04-08 14:00:50 +0100 | [diff] [blame] | 190 | DCHECK_LT(class_def_method_index, compiled_methods_.size()); |
| 191 | return compiled_methods_[class_def_method_index]; |
Brian Carlstrom | ba150c3 | 2013-08-27 17:31:03 -0700 | [diff] [blame] | 192 | } |
| 193 | |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 194 | // Offset of start of OatClass from beginning of OatHeader. It is |
| 195 | // used to validate file position when writing. For Portable, it |
| 196 | // is also used to calculate the position of the OatMethodOffsets |
| 197 | // so that code pointers within the OatMethodOffsets can be |
| 198 | // patched to point to code in the Portable .o ELF objects. |
| 199 | size_t offset_; |
| 200 | |
Brian Carlstrom | ba150c3 | 2013-08-27 17:31:03 -0700 | [diff] [blame] | 201 | // CompiledMethods for each class_def_method_index, or NULL if no method is available. |
Vladimir Marko | 96c6ab9 | 2014-04-08 14:00:50 +0100 | [diff] [blame] | 202 | std::vector<CompiledMethod*> compiled_methods_; |
Brian Carlstrom | ba150c3 | 2013-08-27 17:31:03 -0700 | [diff] [blame] | 203 | |
| 204 | // Offset from OatClass::offset_ to the OatMethodOffsets for the |
| 205 | // class_def_method_index. If 0, it means the corresponding |
| 206 | // CompiledMethod entry in OatClass::compiled_methods_ should be |
| 207 | // NULL and that the OatClass::type_ should be kOatClassBitmap. |
| 208 | std::vector<uint32_t> oat_method_offsets_offsets_from_oat_class_; |
| 209 | |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 210 | // data to write |
Brian Carlstrom | ba150c3 | 2013-08-27 17:31:03 -0700 | [diff] [blame] | 211 | |
| 212 | COMPILE_ASSERT(mirror::Class::Status::kStatusMax < (2 ^ 16), class_status_wont_fit_in_16bits); |
| 213 | int16_t status_; |
| 214 | |
| 215 | COMPILE_ASSERT(OatClassType::kOatClassMax < (2 ^ 16), oat_class_type_wont_fit_in_16bits); |
| 216 | uint16_t type_; |
| 217 | |
| 218 | uint32_t method_bitmap_size_; |
| 219 | |
| 220 | // bit vector indexed by ClassDef method index. When |
| 221 | // OatClassType::type_ is kOatClassBitmap, a set bit indicates the |
| 222 | // method has an OatMethodOffsets in methods_offsets_, otherwise |
| 223 | // the entry was ommited to save space. If OatClassType::type_ is |
| 224 | // not is kOatClassBitmap, the bitmap will be NULL. |
| 225 | BitVector* method_bitmap_; |
| 226 | |
Vladimir Marko | 8a63057 | 2014-04-09 18:45:35 +0100 | [diff] [blame] | 227 | // OatMethodOffsets and OatMethodHeaders for each CompiledMethod |
| 228 | // present in the OatClass. Note that some may be missing if |
Brian Carlstrom | ba150c3 | 2013-08-27 17:31:03 -0700 | [diff] [blame] | 229 | // OatClass::compiled_methods_ contains NULL values (and |
| 230 | // oat_method_offsets_offsets_from_oat_class_ should contain 0 |
| 231 | // values in this case). |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 232 | std::vector<OatMethodOffsets> method_offsets_; |
Vladimir Marko | 7624d25 | 2014-05-02 14:40:15 +0100 | [diff] [blame] | 233 | std::vector<OatQuickMethodHeader> method_headers_; |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 234 | |
| 235 | private: |
| 236 | DISALLOW_COPY_AND_ASSIGN(OatClass); |
| 237 | }; |
| 238 | |
Mark Mendell | ae9fd93 | 2014-02-10 16:14:35 -0800 | [diff] [blame] | 239 | std::vector<DebugInfo> method_info_; |
| 240 | |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 241 | const CompilerDriver* const compiler_driver_; |
| 242 | |
| 243 | // note OatFile does not take ownership of the DexFiles |
| 244 | const std::vector<const DexFile*>* dex_files_; |
| 245 | |
Brian Carlstrom | c50d8e1 | 2013-07-23 22:35:16 -0700 | [diff] [blame] | 246 | // Size required for Oat data structures. |
| 247 | size_t size_; |
| 248 | |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 249 | // dependencies on the image. |
| 250 | uint32_t image_file_location_oat_checksum_; |
Ian Rogers | ef7d42f | 2014-01-06 12:55:46 -0800 | [diff] [blame] | 251 | uintptr_t image_file_location_oat_begin_; |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 252 | std::string image_file_location_; |
| 253 | |
| 254 | // data to write |
| 255 | OatHeader* oat_header_; |
| 256 | std::vector<OatDexFile*> oat_dex_files_; |
| 257 | std::vector<OatClass*> oat_classes_; |
Ian Rogers | 700a402 | 2014-05-19 16:49:03 -0700 | [diff] [blame] | 258 | std::unique_ptr<const std::vector<uint8_t>> interpreter_to_interpreter_bridge_; |
| 259 | std::unique_ptr<const std::vector<uint8_t>> interpreter_to_compiled_code_bridge_; |
| 260 | std::unique_ptr<const std::vector<uint8_t>> jni_dlsym_lookup_; |
| 261 | std::unique_ptr<const std::vector<uint8_t>> portable_imt_conflict_trampoline_; |
| 262 | std::unique_ptr<const std::vector<uint8_t>> portable_resolution_trampoline_; |
| 263 | std::unique_ptr<const std::vector<uint8_t>> portable_to_interpreter_bridge_; |
| 264 | std::unique_ptr<const std::vector<uint8_t>> quick_generic_jni_trampoline_; |
| 265 | std::unique_ptr<const std::vector<uint8_t>> quick_imt_conflict_trampoline_; |
| 266 | std::unique_ptr<const std::vector<uint8_t>> quick_resolution_trampoline_; |
| 267 | std::unique_ptr<const std::vector<uint8_t>> quick_to_interpreter_bridge_; |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 268 | |
| 269 | // output stats |
| 270 | uint32_t size_dex_file_alignment_; |
| 271 | uint32_t size_executable_offset_alignment_; |
| 272 | uint32_t size_oat_header_; |
| 273 | uint32_t size_oat_header_image_file_location_; |
| 274 | uint32_t size_dex_file_; |
Ian Rogers | 468532e | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 275 | uint32_t size_interpreter_to_interpreter_bridge_; |
| 276 | uint32_t size_interpreter_to_compiled_code_bridge_; |
| 277 | uint32_t size_jni_dlsym_lookup_; |
Jeff Hao | 88474b4 | 2013-10-23 16:24:40 -0700 | [diff] [blame] | 278 | uint32_t size_portable_imt_conflict_trampoline_; |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 279 | uint32_t size_portable_resolution_trampoline_; |
Ian Rogers | 468532e | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 280 | uint32_t size_portable_to_interpreter_bridge_; |
Andreas Gampe | 2da8823 | 2014-02-27 12:26:20 -0800 | [diff] [blame] | 281 | uint32_t size_quick_generic_jni_trampoline_; |
Jeff Hao | 88474b4 | 2013-10-23 16:24:40 -0700 | [diff] [blame] | 282 | uint32_t size_quick_imt_conflict_trampoline_; |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 283 | uint32_t size_quick_resolution_trampoline_; |
Ian Rogers | 468532e | 2013-08-05 10:56:33 -0700 | [diff] [blame] | 284 | uint32_t size_quick_to_interpreter_bridge_; |
| 285 | uint32_t size_trampoline_alignment_; |
Vladimir Marko | 96c6ab9 | 2014-04-08 14:00:50 +0100 | [diff] [blame] | 286 | uint32_t size_method_header_; |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 287 | uint32_t size_code_; |
| 288 | uint32_t size_code_alignment_; |
| 289 | uint32_t size_mapping_table_; |
| 290 | uint32_t size_vmap_table_; |
| 291 | uint32_t size_gc_map_; |
| 292 | uint32_t size_oat_dex_file_location_size_; |
| 293 | uint32_t size_oat_dex_file_location_data_; |
| 294 | uint32_t size_oat_dex_file_location_checksum_; |
| 295 | uint32_t size_oat_dex_file_offset_; |
| 296 | uint32_t size_oat_dex_file_methods_offsets_; |
Brian Carlstrom | ba150c3 | 2013-08-27 17:31:03 -0700 | [diff] [blame] | 297 | uint32_t size_oat_class_type_; |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 298 | uint32_t size_oat_class_status_; |
Brian Carlstrom | ba150c3 | 2013-08-27 17:31:03 -0700 | [diff] [blame] | 299 | uint32_t size_oat_class_method_bitmaps_; |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 300 | uint32_t size_oat_class_method_offsets_; |
| 301 | |
Vladimir Marko | 8a63057 | 2014-04-09 18:45:35 +0100 | [diff] [blame] | 302 | struct CodeOffsetsKeyComparator { |
| 303 | bool operator()(const CompiledMethod* lhs, const CompiledMethod* rhs) const { |
| 304 | if (lhs->GetQuickCode() != rhs->GetQuickCode()) { |
| 305 | return lhs->GetQuickCode() < rhs->GetQuickCode(); |
| 306 | } |
| 307 | // If the code is the same, all other fields are likely to be the same as well. |
| 308 | if (UNLIKELY(&lhs->GetMappingTable() != &rhs->GetMappingTable())) { |
| 309 | return &lhs->GetMappingTable() < &rhs->GetMappingTable(); |
| 310 | } |
| 311 | if (UNLIKELY(&lhs->GetVmapTable() != &rhs->GetVmapTable())) { |
| 312 | return &lhs->GetVmapTable() < &rhs->GetVmapTable(); |
| 313 | } |
| 314 | return false; |
| 315 | } |
| 316 | }; |
| 317 | |
Brian Carlstrom | 7940e44 | 2013-07-12 13:46:57 -0700 | [diff] [blame] | 318 | DISALLOW_COPY_AND_ASSIGN(OatWriter); |
| 319 | }; |
| 320 | |
| 321 | } // namespace art |
| 322 | |
Brian Carlstrom | fc0e321 | 2013-07-17 14:40:12 -0700 | [diff] [blame] | 323 | #endif // ART_COMPILER_OAT_WRITER_H_ |