Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index 851aa9344557a034ce1c18270680b57882852ddf..389132ed78c8ded2c0a656089d1f90031cfa13a8 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -13465,13 +13465,7 @@ intptr_t ICData::GetCountAt(intptr_t index) const { |
const Array& data = Array::Handle(ic_data()); |
const intptr_t data_pos = |
index * TestEntryLength() + CountIndexFor(NumArgsTested()); |
- intptr_t value = Smi::Value(Smi::RawCast(data.At(data_pos))); |
- if (value >= 0) return value; |
- |
- // The counter very rarely overflows to a negative value, but if it does, we |
- // would rather just reset it to zero. |
- SetCountAt(index, 0); |
- return 0; |
+ return Smi::Value(Smi::RawCast(data.At(data_pos))); |
} |