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

Unified Diff: test/unittests/compiler/bytecode-analysis-unittest.cc

Issue 2552723004: [ignition/turbofan] Wrap bytecode liveness bitvectors (Closed)
Patch Set: Created 4 years 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 | « src/compiler/bytecode-liveness-map.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unittests/compiler/bytecode-analysis-unittest.cc
diff --git a/test/unittests/compiler/bytecode-analysis-unittest.cc b/test/unittests/compiler/bytecode-analysis-unittest.cc
index 1d925b6fc45af9c23683228e96fe0d14d637ef52..bc582ae207157feabbaabba53b887078ff166f60 100644
--- a/test/unittests/compiler/bytecode-analysis-unittest.cc
+++ b/test/unittests/compiler/bytecode-analysis-unittest.cc
@@ -37,11 +37,13 @@ class BytecodeAnalysisTest : public TestWithIsolateAndZone {
i::FLAG_ignition_reo = old_FLAG_ignition_reo_;
}
- std::string ToLivenessString(const BitVector* liveness) const {
+ std::string ToLivenessString(const BytecodeLivenessState* liveness) const {
+ const BitVector& bit_vector = liveness->bit_vector();
+
std::string out;
- out.resize(liveness->length());
- for (int i = 0; i < liveness->length(); ++i) {
- if (liveness->Contains(i)) {
+ out.resize(bit_vector.length());
+ for (int i = 0; i < bit_vector.length(); ++i) {
+ if (bit_vector.Contains(i)) {
out[i] = 'L';
} else {
out[i] = '.';
« no previous file with comments | « src/compiler/bytecode-liveness-map.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698