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

Unified Diff: src/bit-vector.h

Issue 886733005: [turbofan] OSR loops assign all local variables. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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: src/bit-vector.h
diff --git a/src/bit-vector.h b/src/bit-vector.h
index 29c6b438a9b037e84d3833773f4da3c9b71a89ef..9e1ce81db9047b921279d0b3da319b1a11a898fd 100644
--- a/src/bit-vector.h
+++ b/src/bit-vector.h
@@ -103,6 +103,8 @@ class BitVector : public ZoneObject {
data_[i / kDataBits] |= (kOne << (i % kDataBits));
}
+ void AddAll() { memset(data_, -1, sizeof(uintptr_t) * data_length_); }
+
void Remove(int i) {
DCHECK(i >= 0 && i < length());
data_[i / kDataBits] &= ~(kOne << (i % kDataBits));
« no previous file with comments | « no previous file | src/compiler/ast-loop-assignment-analyzer.cc » ('j') | src/compiler/ast-loop-assignment-analyzer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698