Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: runtime/vm/bitmap.cc

Issue 252333002: Use GPRs for mints (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698