| 55 | } |
| 56 | |
| 57 | void CatchHandlerIterator::Init(const CodeItemDataAccessor& accessor, int32_t offset) { |
| 58 | if (offset >= 0) { |
| 59 | Init(accessor.GetCatchHandlerData(offset)); |
| 60 | } else { |
| 61 | // Not found, initialize as empty |
| 62 | current_data_ = nullptr; |
| 63 | remaining_count_ = -1; |
| 64 | catch_all_ = false; |
| 65 | DCHECK(!HasNext()); |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | void CatchHandlerIterator::Init(const uint8_t* handler_data) { |
| 70 | current_data_ = handler_data; |
nothing calls this directly
no test coverage detected