Index: runtime/vm/coverage.cc |
=================================================================== |
--- runtime/vm/coverage.cc (revision 38356) |
+++ runtime/vm/coverage.cc (working copy) |
@@ -95,11 +95,10 @@ |
RawPcDescriptors::kIcCall | RawPcDescriptors::kUnoptStaticCall); |
while (iter.HasNext()) { |
HANDLESCOPE(isolate); |
- RawPcDescriptors::PcDescriptorRec rec; |
- iter.NextRec(&rec); |
- const ICData* ic_data = (*ic_data_array)[rec.deopt_id()]; |
+ const intptr_t deopt_id = iter.NextDeoptId(); |
+ const ICData* ic_data = (*ic_data_array)[deopt_id]; |
if (!ic_data->IsNull()) { |
- const intptr_t token_pos = rec.token_pos(); |
+ const intptr_t token_pos = iter.current_token_pos(); |
// Filter out descriptors that do not map to tokens in the source code. |
if ((token_pos < begin_pos) || (token_pos > end_pos)) { |
continue; |