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

Unified Diff: runtime/vm/bitmap.cc

Issue 10837303: Make stackmaps store their actual length. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 143ebb0d9ad2943ebb24675e416abadb395d6c5d..479c780546c495db9e288d449a92f310c0c7ad7c 100644
--- a/runtime/vm/bitmap.cc
+++ b/runtime/vm/bitmap.cc
@@ -62,25 +62,6 @@ void BitmapBuilder::SetRange(intptr_t min, intptr_t max, bool value) {
}
-void BitmapBuilder::SetBits(const Stackmap& stackmap) {
- intptr_t min = stackmap.MinimumBitIndex();
- intptr_t max = stackmap.MaximumBitIndex();
- if (min == Stackmap::kNoMinimum || max == Stackmap::kNoMaximum) {
- return;
- }
- for (intptr_t i = 0; i < min; i++) {
- Set(i, false);
- }
- for (intptr_t i = min; i <= max; i++) {
- Set(i, stackmap.IsObject(i));
- }
- intptr_t bound = SizeInBits();
- for (intptr_t i = (max + 1); i < bound; i++) {
- Set(i, false);
- }
-}
-
-
bool BitmapBuilder::GetBit(intptr_t bit_offset) const {
ASSERT(InRange(bit_offset));
int byte_offset = bit_offset >> kBitsPerByteLog2;

Powered by Google App Engine
This is Rietveld 408576698