diff options
author | Michaël Zasso <targos@protonmail.com> | 2022-04-12 11:10:15 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2022-04-12 22:08:39 +0200 |
commit | fd4f80ce54d7f7b7503e0999f6a9d293d493846d (patch) | |
tree | 00fba34b8aabeb481c7128fccee635719ee44a3b /deps/v8/test/unittests/compiler/bytecode-analysis-unittest.cc | |
parent | 73d53fe9f56d7ce5de4b9c9ad5257dc601bbce14 (diff) | |
download | node-new-fd4f80ce54d7f7b7503e0999f6a9d293d493846d.tar.gz |
deps: update V8 to 10.1.124.6
PR-URL: https://github.com/nodejs/node/pull/42657
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Michael Dawson <midawson@redhat.com>
Diffstat (limited to 'deps/v8/test/unittests/compiler/bytecode-analysis-unittest.cc')
-rw-r--r-- | deps/v8/test/unittests/compiler/bytecode-analysis-unittest.cc | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/deps/v8/test/unittests/compiler/bytecode-analysis-unittest.cc b/deps/v8/test/unittests/compiler/bytecode-analysis-unittest.cc index cacff09652..021c88374b 100644 --- a/deps/v8/test/unittests/compiler/bytecode-analysis-unittest.cc +++ b/deps/v8/test/unittests/compiler/bytecode-analysis-unittest.cc @@ -4,6 +4,7 @@ #include "src/compiler/bytecode-analysis.h" +#include "src/compiler/bytecode-liveness-map.h" #include "src/init/v8.h" #include "src/interpreter/bytecode-array-builder.h" #include "src/interpreter/bytecode-array-iterator.h" @@ -42,21 +43,6 @@ class BytecodeAnalysisTest : public TestWithIsolateAndZone { save_flags_ = nullptr; } - std::string ToLivenessString(const BytecodeLivenessState* liveness) const { - const BitVector& bit_vector = liveness->bit_vector(); - - std::string out; - 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] = '.'; - } - } - return out; - } - void EnsureLivenessMatches( Handle<BytecodeArray> bytecode, const std::vector<std::pair<std::string, std::string>>& @@ -69,12 +55,13 @@ class BytecodeAnalysisTest : public TestWithIsolateAndZone { ss << std::setw(4) << iterator.current_offset() << " : "; iterator.PrintTo(ss); - EXPECT_EQ(liveness.first, ToLivenessString(analysis.GetInLivenessFor( - iterator.current_offset()))) + EXPECT_EQ(liveness.first, + ToString(*analysis.GetInLivenessFor(iterator.current_offset()))) << " at bytecode " << ss.str(); - EXPECT_EQ(liveness.second, ToLivenessString(analysis.GetOutLivenessFor( - iterator.current_offset()))) + EXPECT_EQ( + liveness.second, + ToString(*analysis.GetOutLivenessFor(iterator.current_offset()))) << " at bytecode " << ss.str(); iterator.Advance(); |