Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v20.14.0 proposal #53120

Merged
merged 43 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
3dd96f1
stream: implement TransformStream cleanup using "transformer.cancel"
debadree25 Dec 15, 2023
f8e1886
test: replace always-opt flag with alway-turbofan
targos Dec 29, 2023
8e7e778
test: skip v8-updates/test-linux-perf
targos Oct 7, 2023
743281a
test_runner: support source mapped test locations
cjihrig Mar 8, 2024
be587e3
test_runner: use paths for test locations
cjihrig Mar 8, 2024
26b1231
deps: upgrade npm to 10.7.0
npm-cli-bot May 1, 2024
0c6019a
meta: standardize regex
RedYetiDev Apr 29, 2024
21f1b6b
meta: bump step-security/harden-runner from 2.7.0 to 2.7.1
dependabot[bot] May 3, 2024
d1607cd
meta: bump codecov/codecov-action from 4.1.1 to 4.3.1
dependabot[bot] May 3, 2024
30482ea
meta: bump actions/download-artifact from 4.1.4 to 4.1.7
dependabot[bot] May 3, 2024
70611d7
meta: bump actions/upload-artifact from 4.3.1 to 4.3.3
dependabot[bot] May 3, 2024
ac56366
meta: bump github/codeql-action from 3.24.9 to 3.25.3
dependabot[bot] May 3, 2024
61f9f12
meta: bump actions/checkout from 4.1.1 to 4.1.4
dependabot[bot] May 3, 2024
b350f43
meta: add mailmap entry for legendecas
legendecas May 4, 2024
d9c5114
doc: fix grammatical mistake
May 3, 2024
edc3e5d
deps: update uvwasi to 0.0.21
nodejs-github-bot May 5, 2024
42070ca
deps: update googletest to 4565741
nodejs-github-bot Feb 4, 2024
a1817f5
deps: update googletest to b75ecf1
nodejs-github-bot Feb 11, 2024
981d57e
deps: update googletest to 5df0241
nodejs-github-bot Feb 18, 2024
301541c
deps: update googletest to e4fdb87
nodejs-github-bot Mar 3, 2024
760b788
deps: update googletest to c231e6f
nodejs-github-bot Mar 17, 2024
c8305f6
deps: update googletest to eff443c
nodejs-github-bot Mar 24, 2024
69959d0
deps: update googletest to 5197b1a
nodejs-github-bot Apr 14, 2024
c1d3e55
deps: update googletest to 5a37b51
nodejs-github-bot Apr 21, 2024
34708d1
deps: update googletest to d83fee1
nodejs-github-bot Apr 28, 2024
6cfad60
deps: update googletest to 2d16ed0
nodejs-github-bot May 5, 2024
b21a480
deps: update simdutf to 5.2.6
nodejs-github-bot Apr 28, 2024
7ba30a5
deps: update simdutf to 5.2.8
nodejs-github-bot May 12, 2024
bbbfd7f
deps: update corepack to 0.28.1
nodejs-github-bot May 14, 2024
f5cd125
deps: update googletest to fa6de7f
nodejs-github-bot May 14, 2024
b7bc635
test_runner: ignore todo flag when running suites
cjihrig Mar 18, 2024
77e2bf0
test_runner: support forced exit
cjihrig Mar 13, 2024
e2ae436
test_runner: run top level tests in a microtask
cjihrig Mar 17, 2024
200dadb
deps: V8: cherry-pick f8d5e576b814
richardlau Mar 21, 2024
053282e
deps: V8: backport c4be0a97f981
richardlau Mar 21, 2024
a501860
test_runner: don't await the same promise for each test
cjihrig Mar 22, 2024
e3ad05d
deps: V8: cherry-pick 500de8bd371b
richardlau Apr 26, 2024
4051316
tools: update lint-md-dependencies to rollup@4.17.0
nodejs-github-bot Apr 30, 2024
28d2baa
src,permission: throw async errors on async APIs
RafaelGSS Apr 30, 2024
8c1f837
doc: remove mold use on mac for speeding up build
congzhangzh Mar 28, 2024
e6d9fbe
doc: update process.versions properties
IlyasShabi Apr 30, 2024
cffd2cc
Revert "stream: revert fix cloned webstreams not being unref'd"
marco-ippolito May 25, 2024
fe0f08a
2024-05-28, Version 20.14.0 'Iron' (LTS)
marco-ippolito May 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
deps: V8: backport c4be0a97f981
Original commit message:

    Fix build with gcc12

    - A number of erroneous flags have been added to BUILD.gn
    - wasm-init-expr.cc is creating an 8 byte buffer witch may be
      much smaller than max size_t output. We also need to make room
      for the `f` character and the terminating null character
    - inspector_protocol currently generates the following error
       ```
       error: loop variable ‘json_in’ of type ‘const std::string&’ {aka
       ‘const std::__cxx11::basic_string<char>&’} binds to a temporary
       constructed from type ‘const char* const’
       ```

    Change-Id: I1139899b2664e47d01ebc44f2e972fc4c0ec212d
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5331756
    Reviewed-by: Matthias Liedtke <mliedtke@chromium.org>
    Commit-Queue: Milad Farazmand <mfarazma@redhat.com>
    Reviewed-by: Toon Verwaest <verwaest@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#92615}

Refs: v8/v8@c4be0a9
PR-URL: #52183
Refs: v8/v8@f8d5e57
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
richardlau authored and marco-ippolito committed May 23, 2024
commit 053282e661d2ddbb869f035e2f85a69993b97c55
2 changes: 1 addition & 1 deletion common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

# Reset this number to 0 on major V8 upgrades.
# Increment by one for each non-official patch applied to deps/v8.
'v8_embedder_string': '-node.21',
'v8_embedder_string': '-node.22',

##### V8 defaults for Node.js #####

Expand Down
14 changes: 14 additions & 0 deletions deps/v8/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -1589,6 +1589,20 @@ config("toolchain") {
# Fix build with older versions of GCC
# Ported from v8 bazel: https://crrev.com/c/3368869
"-Wno-stringop-overflow",

# Fix a number of bogus errors with gcc12
# TODO(miladfarca): re-evaluate for future gcc upgrades
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111499
"-Wno-stringop-overread",

# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104336
"-Wno-restrict",

# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523
"-Wno-array-bounds",

# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108517
"-Wno-nonnull",
]
}

Expand Down
2 changes: 2 additions & 0 deletions deps/v8/src/d8/d8.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3916,7 +3916,9 @@ V8_NOINLINE void FuzzerMonitor::UseAfterFree() {
// Use-after-free caught by ASAN.
std::vector<bool>* storage = new std::vector<bool>(3);
delete storage;
#if defined(__clang__)
USE(storage->at(1));
#endif
}

V8_NOINLINE void FuzzerMonitor::UseOfUninitializedValue() {
Expand Down
9 changes: 6 additions & 3 deletions deps/v8/src/wasm/function-compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ WasmCompilationResult WasmCompilationUnit::ExecuteFunctionCompilation(
case ExecutionTier::kNone:
UNREACHABLE();

case ExecutionTier::kLiftoff:
case ExecutionTier::kLiftoff: {
// The --wasm-tier-mask-for-testing flag can force functions to be
// compiled with TurboFan, and the --wasm-debug-mask-for-testing can force
// them to be compiled for debugging, see documentation.
Expand Down Expand Up @@ -147,8 +147,8 @@ WasmCompilationResult WasmCompilationUnit::ExecuteFunctionCompilation(
// TODO(wasm): We could actually stop or remove the tiering unit for this
// function to avoid compiling it twice with TurboFan.
V8_FALLTHROUGH;

case ExecutionTier::kTurbofan:
}
case ExecutionTier::kTurbofan: {
compiler::WasmCompilationData data(func_body);
data.func_index = func_index_;
data.wire_bytes_storage = wire_bytes_storage;
Expand All @@ -157,6 +157,9 @@ WasmCompilationResult WasmCompilationUnit::ExecuteFunctionCompilation(
detected);
result.for_debugging = for_debugging_;
break;
}
default:
UNREACHABLE();
}

DCHECK(result.succeeded());
Expand Down
20 changes: 11 additions & 9 deletions deps/v8/third_party/inspector_protocol/crdtp/dispatch_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,11 @@ TEST(DispatchableTest, MessageWithUnknownProperty) {
}

TEST(DispatchableTest, DuplicateMapKey) {
for (const std::string& json :
{"{\"id\":42,\"id\":42}", "{\"params\":null,\"params\":null}",
"{\"method\":\"foo\",\"method\":\"foo\"}",
"{\"sessionId\":\"42\",\"sessionId\":\"42\"}"}) {
const std::array<std::string, 4> jsons = {
{"{\"id\":42,\"id\":42}", "{\"params\":null,\"params\":null}",
"{\"method\":\"foo\",\"method\":\"foo\"}",
"{\"sessionId\":\"42\",\"sessionId\":\"42\"}"}};
for (const std::string& json : jsons) {
SCOPED_TRACE("json = " + json);
std::vector<uint8_t> cbor;
ASSERT_TRUE(json::ConvertJSONToCBOR(SpanFrom(json), &cbor).ok());
Expand All @@ -185,11 +186,12 @@ TEST(DispatchableTest, DuplicateMapKey) {
}

TEST(DispatchableTest, ValidMessageParsesOK_NoParams) {
for (const std::string& json :
{"{\"id\":42,\"method\":\"Foo.executeBar\",\"sessionId\":"
"\"f421ssvaz4\"}",
"{\"id\":42,\"method\":\"Foo.executeBar\",\"sessionId\":\"f421ssvaz4\","
"\"params\":null}"}) {
const std::array<std::string, 2> jsons = {
{"{\"id\":42,\"method\":\"Foo.executeBar\",\"sessionId\":"
"\"f421ssvaz4\"}",
"{\"id\":42,\"method\":\"Foo.executeBar\",\"sessionId\":\"f421ssvaz4\","
"\"params\":null}"}};
for (const std::string& json : jsons) {
SCOPED_TRACE("json = " + json);
std::vector<uint8_t> cbor;
ASSERT_TRUE(json::ConvertJSONToCBOR(SpanFrom(json), &cbor).ok());
Expand Down
19 changes: 10 additions & 9 deletions deps/v8/third_party/inspector_protocol/crdtp/json_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -704,15 +704,16 @@ using ContainerTestTypes = ::testing::Types<std::vector<uint8_t>, std::string>;
TYPED_TEST_SUITE(ConvertJSONToCBORTest, ContainerTestTypes);

TYPED_TEST(ConvertJSONToCBORTest, RoundTripValidJson) {
for (const std::string& json_in : {
"{\"msg\":\"Hello, world.\",\"lst\":[1,2,3]}",
"3.1415",
"false",
"true",
"\"Hello, world.\"",
"[1,2,3]",
"[]",
}) {
const std::array<std::string, 7> jsons = {{
"{\"msg\":\"Hello, world.\",\"lst\":[1,2,3]}",
"3.1415",
"false",
"true",
"\"Hello, world.\"",
"[1,2,3]",
"[]",
}};
for (const std::string& json_in : jsons) {
SCOPED_TRACE(json_in);
TypeParam json(json_in.begin(), json_in.end());
std::vector<uint8_t> cbor;
Expand Down