Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 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 | #include "stack_map.h" |
| 18 | |
Nicolas Geoffray | 896f8f7 | 2015-03-30 15:44:25 +0100 | [diff] [blame] | 19 | #include <stdint.h> |
| 20 | |
Roland Levillain | 0396ed7 | 2015-05-27 15:12:19 +0100 | [diff] [blame] | 21 | #include "indenter.h" |
| 22 | |
Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 23 | namespace art { |
| 24 | |
Roland Levillain | a552e1c | 2015-03-26 15:01:03 +0000 | [diff] [blame] | 25 | constexpr size_t DexRegisterLocationCatalog::kNoLocationEntryIndex; |
Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 26 | constexpr uint32_t StackMap::kNoDexRegisterMap; |
| 27 | constexpr uint32_t StackMap::kNoInlineInfo; |
| 28 | |
Roland Levillain | a552e1c | 2015-03-26 15:01:03 +0000 | [diff] [blame] | 29 | DexRegisterLocation::Kind DexRegisterMap::GetLocationInternalKind(uint16_t dex_register_number, |
| 30 | uint16_t number_of_dex_registers, |
| 31 | const CodeInfo& code_info) const { |
| 32 | DexRegisterLocationCatalog dex_register_location_catalog = |
| 33 | code_info.GetDexRegisterLocationCatalog(); |
| 34 | size_t location_catalog_entry_index = GetLocationCatalogEntryIndex( |
| 35 | dex_register_number, |
| 36 | number_of_dex_registers, |
| 37 | code_info.GetNumberOfDexRegisterLocationCatalogEntries()); |
| 38 | return dex_register_location_catalog.GetLocationInternalKind(location_catalog_entry_index); |
| 39 | } |
| 40 | |
| 41 | DexRegisterLocation DexRegisterMap::GetDexRegisterLocation(uint16_t dex_register_number, |
| 42 | uint16_t number_of_dex_registers, |
| 43 | const CodeInfo& code_info) const { |
| 44 | DexRegisterLocationCatalog dex_register_location_catalog = |
| 45 | code_info.GetDexRegisterLocationCatalog(); |
| 46 | size_t location_catalog_entry_index = GetLocationCatalogEntryIndex( |
| 47 | dex_register_number, |
| 48 | number_of_dex_registers, |
| 49 | code_info.GetNumberOfDexRegisterLocationCatalogEntries()); |
| 50 | return dex_register_location_catalog.GetDexRegisterLocation(location_catalog_entry_index); |
| 51 | } |
| 52 | |
Nicolas Geoffray | 896f8f7 | 2015-03-30 15:44:25 +0100 | [diff] [blame] | 53 | // Loads `number_of_bytes` at the given `offset` and assemble a uint32_t. If `check_max` is true, |
| 54 | // this method converts a maximum value of size `number_of_bytes` into a uint32_t 0xFFFFFFFF. |
| 55 | static uint32_t LoadAt(MemoryRegion region, |
| 56 | size_t number_of_bytes, |
| 57 | size_t offset, |
| 58 | bool check_max = false) { |
| 59 | if (number_of_bytes == 0u) { |
| 60 | DCHECK(!check_max); |
| 61 | return 0; |
| 62 | } else if (number_of_bytes == 1u) { |
| 63 | uint8_t value = region.LoadUnaligned<uint8_t>(offset); |
| 64 | if (check_max && value == 0xFF) { |
| 65 | return -1; |
| 66 | } else { |
| 67 | return value; |
| 68 | } |
| 69 | } else if (number_of_bytes == 2u) { |
| 70 | uint16_t value = region.LoadUnaligned<uint16_t>(offset); |
| 71 | if (check_max && value == 0xFFFF) { |
| 72 | return -1; |
| 73 | } else { |
| 74 | return value; |
| 75 | } |
| 76 | } else if (number_of_bytes == 3u) { |
| 77 | uint16_t low = region.LoadUnaligned<uint16_t>(offset); |
| 78 | uint16_t high = region.LoadUnaligned<uint8_t>(offset + sizeof(uint16_t)); |
| 79 | uint32_t value = (high << 16) + low; |
| 80 | if (check_max && value == 0xFFFFFF) { |
| 81 | return -1; |
Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 82 | } else { |
| 83 | return value; |
| 84 | } |
| 85 | } else { |
Nicolas Geoffray | 896f8f7 | 2015-03-30 15:44:25 +0100 | [diff] [blame] | 86 | DCHECK_EQ(number_of_bytes, 4u); |
| 87 | return region.LoadUnaligned<uint32_t>(offset); |
Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 88 | } |
| 89 | } |
| 90 | |
Nicolas Geoffray | 896f8f7 | 2015-03-30 15:44:25 +0100 | [diff] [blame] | 91 | static void StoreAt(MemoryRegion region, size_t number_of_bytes, size_t offset, uint32_t value) { |
| 92 | if (number_of_bytes == 0u) { |
| 93 | DCHECK_EQ(value, 0u); |
| 94 | } else if (number_of_bytes == 1u) { |
| 95 | region.StoreUnaligned<uint8_t>(offset, value); |
| 96 | } else if (number_of_bytes == 2u) { |
| 97 | region.StoreUnaligned<uint16_t>(offset, value); |
| 98 | } else if (number_of_bytes == 3u) { |
| 99 | region.StoreUnaligned<uint16_t>(offset, Low16Bits(value)); |
| 100 | region.StoreUnaligned<uint8_t>(offset + sizeof(uint16_t), High16Bits(value)); |
| 101 | } else { |
| 102 | region.StoreUnaligned<uint32_t>(offset, value); |
| 103 | DCHECK_EQ(number_of_bytes, 4u); |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | uint32_t StackMap::GetDexPc(const CodeInfo& info) const { |
| 108 | return LoadAt(region_, info.NumberOfBytesForDexPc(), info.ComputeStackMapDexPcOffset()); |
| 109 | } |
| 110 | |
| 111 | void StackMap::SetDexPc(const CodeInfo& info, uint32_t dex_pc) { |
| 112 | StoreAt(region_, info.NumberOfBytesForDexPc(), info.ComputeStackMapDexPcOffset(), dex_pc); |
| 113 | } |
| 114 | |
| 115 | uint32_t StackMap::GetNativePcOffset(const CodeInfo& info) const { |
| 116 | return LoadAt(region_, info.NumberOfBytesForNativePc(), info.ComputeStackMapNativePcOffset()); |
| 117 | } |
| 118 | |
| 119 | void StackMap::SetNativePcOffset(const CodeInfo& info, uint32_t native_pc_offset) { |
| 120 | StoreAt(region_, info.NumberOfBytesForNativePc(), info.ComputeStackMapNativePcOffset(), native_pc_offset); |
| 121 | } |
| 122 | |
| 123 | uint32_t StackMap::GetDexRegisterMapOffset(const CodeInfo& info) const { |
| 124 | return LoadAt(region_, |
| 125 | info.NumberOfBytesForDexRegisterMap(), |
| 126 | info.ComputeStackMapDexRegisterMapOffset(), |
| 127 | /* check_max */ true); |
| 128 | } |
| 129 | |
Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 130 | void StackMap::SetDexRegisterMapOffset(const CodeInfo& info, uint32_t offset) { |
Nicolas Geoffray | 896f8f7 | 2015-03-30 15:44:25 +0100 | [diff] [blame] | 131 | StoreAt(region_, |
| 132 | info.NumberOfBytesForDexRegisterMap(), |
| 133 | info.ComputeStackMapDexRegisterMapOffset(), |
| 134 | offset); |
Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 135 | } |
| 136 | |
| 137 | uint32_t StackMap::GetInlineDescriptorOffset(const CodeInfo& info) const { |
| 138 | if (!info.HasInlineInfo()) return kNoInlineInfo; |
Nicolas Geoffray | 896f8f7 | 2015-03-30 15:44:25 +0100 | [diff] [blame] | 139 | return LoadAt(region_, |
| 140 | info.NumberOfBytesForInlineInfo(), |
| 141 | info.ComputeStackMapInlineInfoOffset(), |
| 142 | /* check_max */ true); |
Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 143 | } |
| 144 | |
| 145 | void StackMap::SetInlineDescriptorOffset(const CodeInfo& info, uint32_t offset) { |
| 146 | DCHECK(info.HasInlineInfo()); |
Nicolas Geoffray | 896f8f7 | 2015-03-30 15:44:25 +0100 | [diff] [blame] | 147 | StoreAt(region_, |
| 148 | info.NumberOfBytesForInlineInfo(), |
| 149 | info.ComputeStackMapInlineInfoOffset(), |
| 150 | offset); |
Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 151 | } |
| 152 | |
| 153 | uint32_t StackMap::GetRegisterMask(const CodeInfo& info) const { |
Nicolas Geoffray | 896f8f7 | 2015-03-30 15:44:25 +0100 | [diff] [blame] | 154 | return LoadAt(region_, |
| 155 | info.NumberOfBytesForRegisterMask(), |
| 156 | info.ComputeStackMapRegisterMaskOffset()); |
Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 157 | } |
| 158 | |
| 159 | void StackMap::SetRegisterMask(const CodeInfo& info, uint32_t mask) { |
Nicolas Geoffray | 896f8f7 | 2015-03-30 15:44:25 +0100 | [diff] [blame] | 160 | StoreAt(region_, |
| 161 | info.NumberOfBytesForRegisterMask(), |
| 162 | info.ComputeStackMapRegisterMaskOffset(), |
| 163 | mask); |
Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 164 | } |
| 165 | |
Nicolas Geoffray | 896f8f7 | 2015-03-30 15:44:25 +0100 | [diff] [blame] | 166 | size_t StackMap::ComputeStackMapSizeInternal(size_t stack_mask_size, |
| 167 | size_t number_of_bytes_for_inline_info, |
| 168 | size_t number_of_bytes_for_dex_map, |
| 169 | size_t number_of_bytes_for_dex_pc, |
| 170 | size_t number_of_bytes_for_native_pc, |
| 171 | size_t number_of_bytes_for_register_mask) { |
| 172 | return stack_mask_size |
| 173 | + number_of_bytes_for_inline_info |
| 174 | + number_of_bytes_for_dex_map |
| 175 | + number_of_bytes_for_dex_pc |
| 176 | + number_of_bytes_for_native_pc |
| 177 | + number_of_bytes_for_register_mask; |
Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 178 | } |
| 179 | |
| 180 | size_t StackMap::ComputeStackMapSize(size_t stack_mask_size, |
| 181 | size_t inline_info_size, |
| 182 | size_t dex_register_map_size, |
| 183 | size_t dex_pc_max, |
Nicolas Geoffray | 896f8f7 | 2015-03-30 15:44:25 +0100 | [diff] [blame] | 184 | size_t native_pc_max, |
| 185 | size_t register_mask_max) { |
| 186 | return ComputeStackMapSizeInternal( |
Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 187 | stack_mask_size, |
Nicolas Geoffray | 896f8f7 | 2015-03-30 15:44:25 +0100 | [diff] [blame] | 188 | inline_info_size == 0 |
| 189 | ? 0 |
| 190 | // + 1 to also encode kNoInlineInfo. |
| 191 | : CodeInfo::EncodingSizeInBytes(inline_info_size + dex_register_map_size + 1), |
Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 192 | // + 1 to also encode kNoDexRegisterMap. |
Nicolas Geoffray | 896f8f7 | 2015-03-30 15:44:25 +0100 | [diff] [blame] | 193 | CodeInfo::EncodingSizeInBytes(dex_register_map_size + 1), |
| 194 | CodeInfo::EncodingSizeInBytes(dex_pc_max), |
| 195 | CodeInfo::EncodingSizeInBytes(native_pc_max), |
| 196 | CodeInfo::EncodingSizeInBytes(register_mask_max)); |
Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 197 | } |
| 198 | |
| 199 | MemoryRegion StackMap::GetStackMask(const CodeInfo& info) const { |
| 200 | return region_.Subregion(info.ComputeStackMapStackMaskOffset(), info.GetStackMaskSize()); |
| 201 | } |
| 202 | |
Roland Levillain | a552e1c | 2015-03-26 15:01:03 +0000 | [diff] [blame] | 203 | static void DumpRegisterMapping(std::ostream& os, |
| 204 | size_t dex_register_num, |
| 205 | DexRegisterLocation location, |
| 206 | const std::string& prefix = "v", |
| 207 | const std::string& suffix = "") { |
Roland Levillain | 0396ed7 | 2015-05-27 15:12:19 +0100 | [diff] [blame] | 208 | Indenter indent_filter(os.rdbuf(), kIndentChar, kIndentBy1Count); |
| 209 | std::ostream indented_os(&indent_filter); |
| 210 | indented_os << prefix << dex_register_num << ": " |
| 211 | << DexRegisterLocation::PrettyDescriptor(location.GetInternalKind()) |
| 212 | << " (" << location.GetValue() << ")" << suffix << '\n'; |
| 213 | } |
| 214 | |
Roland Levillain | 0396ed7 | 2015-05-27 15:12:19 +0100 | [diff] [blame] | 215 | void CodeInfo::Dump(std::ostream& os, |
Roland Levillain | f2650d1 | 2015-05-28 14:53:28 +0100 | [diff] [blame^] | 216 | uint32_t code_offset, |
Roland Levillain | 0396ed7 | 2015-05-27 15:12:19 +0100 | [diff] [blame] | 217 | uint16_t number_of_dex_registers, |
| 218 | bool dump_stack_maps) const { |
Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 219 | uint32_t code_info_size = GetOverallSize(); |
| 220 | size_t number_of_stack_maps = GetNumberOfStackMaps(); |
Roland Levillain | 0396ed7 | 2015-05-27 15:12:19 +0100 | [diff] [blame] | 221 | Indenter indent_filter(os.rdbuf(), kIndentChar, kIndentBy1Count); |
| 222 | std::ostream indented_os(&indent_filter); |
| 223 | indented_os << "Optimized CodeInfo (size=" << code_info_size |
| 224 | << ", number_of_dex_registers=" << number_of_dex_registers |
| 225 | << ", number_of_stack_maps=" << number_of_stack_maps |
| 226 | << ", has_inline_info=" << HasInlineInfo() |
| 227 | << ", number_of_bytes_for_inline_info=" << NumberOfBytesForInlineInfo() |
| 228 | << ", number_of_bytes_for_dex_register_map=" << NumberOfBytesForDexRegisterMap() |
| 229 | << ", number_of_bytes_for_dex_pc=" << NumberOfBytesForDexPc() |
| 230 | << ", number_of_bytes_for_native_pc=" << NumberOfBytesForNativePc() |
| 231 | << ", number_of_bytes_for_register_mask=" << NumberOfBytesForRegisterMask() |
| 232 | << ")\n"; |
Roland Levillain | a552e1c | 2015-03-26 15:01:03 +0000 | [diff] [blame] | 233 | // Display the Dex register location catalog. |
Roland Levillain | 0396ed7 | 2015-05-27 15:12:19 +0100 | [diff] [blame] | 234 | GetDexRegisterLocationCatalog().Dump(indented_os, *this); |
Roland Levillain | a552e1c | 2015-03-26 15:01:03 +0000 | [diff] [blame] | 235 | // Display stack maps along with (live) Dex register maps. |
Roland Levillain | 0396ed7 | 2015-05-27 15:12:19 +0100 | [diff] [blame] | 236 | if (dump_stack_maps) { |
| 237 | for (size_t i = 0; i < number_of_stack_maps; ++i) { |
Roland Levillain | f2650d1 | 2015-05-28 14:53:28 +0100 | [diff] [blame^] | 238 | StackMap stack_map = GetStackMapAt(i); |
| 239 | stack_map.Dump( |
| 240 | indented_os, *this, code_offset, number_of_dex_registers, " " + std::to_string(i)); |
Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 241 | } |
| 242 | } |
Nicolas Geoffray | b1d0f3f | 2015-05-14 12:41:51 +0100 | [diff] [blame] | 243 | // TODO: Dump the stack map's inline information? We need to know more from the caller: |
| 244 | // we need to know the number of dex registers for each inlined method. |
| 245 | } |
| 246 | |
Roland Levillain | 0396ed7 | 2015-05-27 15:12:19 +0100 | [diff] [blame] | 247 | void DexRegisterLocationCatalog::Dump(std::ostream& os, const CodeInfo& code_info) { |
| 248 | size_t number_of_location_catalog_entries = |
| 249 | code_info.GetNumberOfDexRegisterLocationCatalogEntries(); |
| 250 | size_t location_catalog_size_in_bytes = code_info.GetDexRegisterLocationCatalogSize(); |
| 251 | Indenter indent_filter(os.rdbuf(), kIndentChar, kIndentBy1Count); |
| 252 | std::ostream indented_os(&indent_filter); |
| 253 | indented_os |
| 254 | << "DexRegisterLocationCatalog (number_of_entries=" << number_of_location_catalog_entries |
| 255 | << ", size_in_bytes=" << location_catalog_size_in_bytes << ")\n"; |
| 256 | for (size_t i = 0; i < number_of_location_catalog_entries; ++i) { |
| 257 | DexRegisterLocation location = GetDexRegisterLocation(i); |
| 258 | DumpRegisterMapping(indented_os, i, location, "entry "); |
| 259 | } |
| 260 | } |
| 261 | |
Nicolas Geoffray | b1d0f3f | 2015-05-14 12:41:51 +0100 | [diff] [blame] | 262 | void DexRegisterMap::Dump(std::ostream& os, |
| 263 | const CodeInfo& code_info, |
| 264 | uint16_t number_of_dex_registers) const { |
| 265 | size_t number_of_location_catalog_entries = |
| 266 | code_info.GetNumberOfDexRegisterLocationCatalogEntries(); |
Roland Levillain | 0396ed7 | 2015-05-27 15:12:19 +0100 | [diff] [blame] | 267 | Indenter indent_filter(os.rdbuf(), kIndentChar, kIndentBy1Count); |
| 268 | std::ostream indented_os(&indent_filter); |
Nicolas Geoffray | b1d0f3f | 2015-05-14 12:41:51 +0100 | [diff] [blame] | 269 | // TODO: Display the bit mask of live Dex registers. |
| 270 | for (size_t j = 0; j < number_of_dex_registers; ++j) { |
| 271 | if (IsDexRegisterLive(j)) { |
| 272 | size_t location_catalog_entry_index = GetLocationCatalogEntryIndex( |
| 273 | j, number_of_dex_registers, number_of_location_catalog_entries); |
| 274 | DexRegisterLocation location = GetDexRegisterLocation(j, number_of_dex_registers, code_info); |
| 275 | DumpRegisterMapping( |
Roland Levillain | 0396ed7 | 2015-05-27 15:12:19 +0100 | [diff] [blame] | 276 | indented_os, j, location, "v", |
Nicolas Geoffray | b1d0f3f | 2015-05-14 12:41:51 +0100 | [diff] [blame] | 277 | "\t[entry " + std::to_string(static_cast<int>(location_catalog_entry_index)) + "]"); |
| 278 | } |
| 279 | } |
| 280 | } |
| 281 | |
Roland Levillain | f2650d1 | 2015-05-28 14:53:28 +0100 | [diff] [blame^] | 282 | void StackMap::Dump(std::ostream& os, |
| 283 | const CodeInfo& code_info, |
| 284 | uint32_t code_offset, |
| 285 | uint16_t number_of_dex_registers, |
| 286 | const std::string& header_suffix) const { |
| 287 | Indenter indent_filter(os.rdbuf(), kIndentChar, kIndentBy1Count); |
| 288 | std::ostream indented_os(&indent_filter); |
| 289 | indented_os << "StackMap" << header_suffix |
| 290 | << std::hex |
| 291 | << " [native_pc=0x" << code_offset + GetNativePcOffset(code_info) << "]" |
| 292 | << " (dex_pc=0x" << GetDexPc(code_info) |
| 293 | << ", native_pc_offset=0x" << GetNativePcOffset(code_info) |
| 294 | << ", dex_register_map_offset=0x" << GetDexRegisterMapOffset(code_info) |
| 295 | << ", inline_info_offset=0x" << GetInlineDescriptorOffset(code_info) |
| 296 | << ", register_mask=0x" << GetRegisterMask(code_info) |
| 297 | << std::dec |
| 298 | << ", stack_mask=0b"; |
| 299 | MemoryRegion stack_mask = GetStackMask(code_info); |
| 300 | for (size_t i = 0, e = stack_mask.size_in_bits(); i < e; ++i) { |
| 301 | indented_os << stack_mask.LoadBit(e - i - 1); |
| 302 | } |
| 303 | indented_os << ")\n"; |
| 304 | if (HasDexRegisterMap(code_info)) { |
| 305 | DexRegisterMap dex_register_map = code_info.GetDexRegisterMapOf(*this, number_of_dex_registers); |
| 306 | dex_register_map.Dump(os, code_info, number_of_dex_registers); |
| 307 | } |
| 308 | } |
| 309 | |
Nicolas Geoffray | b1d0f3f | 2015-05-14 12:41:51 +0100 | [diff] [blame] | 310 | void InlineInfo::Dump(std::ostream& os, |
| 311 | const CodeInfo& code_info, |
| 312 | uint16_t number_of_dex_registers[]) const { |
Roland Levillain | 0396ed7 | 2015-05-27 15:12:19 +0100 | [diff] [blame] | 313 | Indenter indent_filter(os.rdbuf(), kIndentChar, kIndentBy1Count); |
| 314 | std::ostream indented_os(&indent_filter); |
| 315 | indented_os << "InlineInfo with depth " << static_cast<uint32_t>(GetDepth()) << "\n"; |
Nicolas Geoffray | b1d0f3f | 2015-05-14 12:41:51 +0100 | [diff] [blame] | 316 | |
| 317 | for (size_t i = 0; i < GetDepth(); ++i) { |
Roland Levillain | 0396ed7 | 2015-05-27 15:12:19 +0100 | [diff] [blame] | 318 | indented_os << " At depth " << i |
| 319 | << std::hex |
| 320 | << " (dex_pc=0x" << GetDexPcAtDepth(i) |
| 321 | << ", method_index=0x" << GetMethodIndexAtDepth(i) |
| 322 | << ")\n"; |
Nicolas Geoffray | b1d0f3f | 2015-05-14 12:41:51 +0100 | [diff] [blame] | 323 | if (HasDexRegisterMapAtDepth(i)) { |
| 324 | DexRegisterMap dex_register_map = |
| 325 | code_info.GetDexRegisterMapAtDepth(i, *this, number_of_dex_registers[i]); |
Roland Levillain | 0396ed7 | 2015-05-27 15:12:19 +0100 | [diff] [blame] | 326 | dex_register_map.Dump(indented_os, code_info, number_of_dex_registers[i]); |
Nicolas Geoffray | b1d0f3f | 2015-05-14 12:41:51 +0100 | [diff] [blame] | 327 | } |
| 328 | } |
Nicolas Geoffray | 004c230 | 2015-03-20 10:06:38 +0000 | [diff] [blame] | 329 | } |
| 330 | |
| 331 | } // namespace art |