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

Unified Diff: runtime/vm/bitmap_test.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_test.cc
diff --git a/runtime/vm/bitmap_test.cc b/runtime/vm/bitmap_test.cc
index 8681ab30be18999ca2a7486b3210589a1daaf866..4e9fc7cdc1c317a172d6126857fe7e4d4cd289a8 100644
--- a/runtime/vm/bitmap_test.cc
+++ b/runtime/vm/bitmap_test.cc
@@ -75,31 +75,6 @@ TEST_CASE(BitmapBuilder) {
for (int32_t i = 1025; i <= 2048; i++) {
EXPECT(!stackmap2.IsObject(i));
}
-
- // Test the functionality to copy a Stackmap object into a builder.
- BitmapBuilder* builder2 = new BitmapBuilder();
- builder2->SetBits(stackmap1);
- EXPECT_EQ(1022, builder2->Maximum());
- EXPECT_EQ(0, builder2->Minimum());
- value = true;
- for (int32_t i = 0; i < 1024; i++) {
- EXPECT_EQ(value, builder2->Get(i));
- value = !value;
- }
-
- BitmapBuilder* builder3 = new BitmapBuilder();
- builder3->SetBits(stackmap2);
- EXPECT_EQ(1024, builder3->Maximum());
- EXPECT_EQ(257, builder3->Minimum());
- for (int32_t i = 0; i <= 256; i++) {
- EXPECT(!builder3->Get(i));
- }
- for (int32_t i = 257; i <= 1024; i++) {
- EXPECT(builder3->Get(i));
- }
- for (int32_t i = 1025; i <= 2048; i++) {
- EXPECT(!builder3->Get(i));
- }
}
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698