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

Unified Diff: runtime/vm/bit_vector.cc

Issue 2186423002: Only reload libraries when they may have been modified. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Code review Created 4 years, 5 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.h ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bit_vector.cc
diff --git a/runtime/vm/bit_vector.cc b/runtime/vm/bit_vector.cc
index bf181470555da020fb5080d32cb2d8b774e1aab4..cc38df316d4cd57ce2364a2949234b820c836c84 100644
--- a/runtime/vm/bit_vector.cc
+++ b/runtime/vm/bit_vector.cc
@@ -100,6 +100,16 @@ void BitVector::Intersect(const BitVector* other) {
}
+bool BitVector::IsEmpty() const {
+ for (intptr_t i = 0; i < data_length_; i++) {
+ if (data_[i] != 0) {
+ return false;
+ }
+ }
+ return true;
+}
+
+
void BitVector::Print() const {
OS::Print("[");
for (intptr_t i = 0; i < length_; i++) {
« no previous file with comments | « runtime/vm/bit_vector.h ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698