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

Unified Diff: runtime/vm/bit_vector_test.cc

Issue 10914314: Simple redundant load elimination. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: addressed comments Created 8 years, 3 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
« no previous file with comments | « runtime/vm/bit_vector.cc ('k') | runtime/vm/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bit_vector_test.cc
===================================================================
--- runtime/vm/bit_vector_test.cc (revision 12420)
+++ runtime/vm/bit_vector_test.cc (working copy)
@@ -83,6 +83,25 @@
EXPECT_EQ(false, a->Contains(64));
EXPECT_EQ(false, a->Contains(96));
}
+
+ { BitVector* a = new BitVector(34);
+ BitVector* b = new BitVector(34);
+ a->SetAll();
+ b->Add(0);
+ b->Add(1);
+ b->Add(31);
+ b->Add(32);
+ a->Intersect(*b);
+ EXPECT_EQ(true, a->Equals(*b));
+ }
+
+ { BitVector* a = new BitVector(2);
+ BitVector* b = new BitVector(2);
+ a->SetAll();
+ a->Remove(0);
+ a->Remove(1);
+ EXPECT_EQ(true, a->Equals(*b));
+ }
}
} // namespace dart
« no previous file with comments | « runtime/vm/bit_vector.cc ('k') | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698