Index: runtime/vm/code_descriptors.cc |
=================================================================== |
--- runtime/vm/code_descriptors.cc (revision 38237) |
+++ runtime/vm/code_descriptors.cc (working copy) |
@@ -18,13 +18,17 @@ |
data.SetTokenPos(token_index); |
data.try_index = try_index; |
list_.Add(data); |
+ if (try_index >= 0) { |
+ has_try_index_ = true; |
+ } |
} |
RawPcDescriptors* DescriptorList::FinalizePcDescriptors(uword entry_point) { |
intptr_t num_descriptors = Length(); |
const PcDescriptors& descriptors = |
- PcDescriptors::Handle(PcDescriptors::New(num_descriptors)); |
+ PcDescriptors::Handle(PcDescriptors::New(num_descriptors, |
+ has_try_index_)); |
for (intptr_t i = 0; i < num_descriptors; i++) { |
descriptors.AddDescriptor(i, |
(entry_point + PcOffset(i)), |