Index: runtime/vm/bitmap.cc |
diff --git a/runtime/vm/bitmap.cc b/runtime/vm/bitmap.cc |
index c0f19ab63688d8526132dce2bde4a13e6e2fbd47..8a2ebde5598e125c521e5f2d0923596148ce5368 100644 |
--- a/runtime/vm/bitmap.cc |
+++ b/runtime/vm/bitmap.cc |
@@ -72,6 +72,17 @@ void BitmapBuilder::SetRange(intptr_t min, intptr_t max, bool value) { |
} |
+void BitmapBuilder::Print() const { |
+ for (intptr_t i = 0; i < Length(); i++) { |
+ if (Get(i)) { |
+ OS::Print("1"); |
+ } else { |
+ OS::Print("0"); |
+ } |
+ } |
+} |
+ |
+ |
bool BitmapBuilder::GetBit(intptr_t bit_offset) const { |
if (!InRange(bit_offset)) { |
return false; |