From fd4f80ce54d7f7b7503e0999f6a9d293d493846d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Tue, 12 Apr 2022 11:10:15 +0200 Subject: deps: update V8 to 10.1.124.6 PR-URL: https://github.com/nodejs/node/pull/42657 Reviewed-By: Darshan Sen Reviewed-By: Richard Lau Reviewed-By: Jiawen Geng Reviewed-By: Michael Dawson --- .../compiler/bytecode-analysis-unittest.cc | 25 ++++++---------------- 1 file changed, 6 insertions(+), 19 deletions(-) (limited to 'deps/v8/test/unittests/compiler/bytecode-analysis-unittest.cc') 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 bytecode, const std::vector>& @@ -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(); -- cgit v1.2.1