| 83 | } |
| 84 | |
| 85 | void CatchHandlerIterator::Next() { |
| 86 | if (remaining_count_ > 0) { |
| 87 | handler_.type_idx_ = dex::TypeIndex(DecodeUnsignedLeb128(¤t_data_)); |
| 88 | handler_.address_ = DecodeUnsignedLeb128(¤t_data_); |
| 89 | remaining_count_--; |
| 90 | return; |
| 91 | } |
| 92 | |
| 93 | if (catch_all_) { |
| 94 | handler_.type_idx_ = dex::TypeIndex(DexFile::kDexNoIndex16); |
| 95 | handler_.address_ = DecodeUnsignedLeb128(¤t_data_); |
| 96 | catch_all_ = false; |
| 97 | return; |
| 98 | } |
| 99 | |
| 100 | // no more handler |
| 101 | remaining_count_ = -1; |
| 102 | } |
| 103 | |
| 104 | } // namespace art_lkchan |
nothing calls this directly
no test coverage detected