Skip to content

Commit c2a227c

Browse files
Merge pull request #956 from nodejs/main
Create a new pull request by comparing changes across two branches
2 parents 16337c8 + 0090c10 commit c2a227c

1,464 files changed

Lines changed: 114841 additions & 91296 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/update-openssl.yml

Lines changed: 2 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010
contents: read
1111

1212
jobs:
13-
openssl-v3-update:
13+
openssl-update:
1414
if: github.repository == 'nodejs/node'
1515
runs-on: ubuntu-latest
1616
steps:
@@ -19,7 +19,7 @@ jobs:
1919
persist-credentials: false
2020
- name: Check and download new OpenSSL version
2121
run: |
22-
./tools/dep_updaters/update-openssl.sh download_v3 > temp-output
22+
./tools/dep_updaters/update-openssl.sh download > temp-output
2323
cat temp-output
2424
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
2525
rm temp-output
@@ -58,52 +58,3 @@ jobs:
5858
branch: actions/tools-update-openssl # Custom branch *just* for this Action.
5959
commit-message: 'deps: update archs files for openssl-${{ env.NEW_VERSION }}'
6060
path: deps/openssl
61-
openssl-v1-update:
62-
if: github.repository == 'nodejs/node'
63-
runs-on: ubuntu-latest
64-
steps:
65-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
66-
with:
67-
persist-credentials: false
68-
ref: v16.x-staging
69-
- name: Check and download new OpenSSL version
70-
run: |
71-
./tools/dep_updaters/update-openssl.sh download_v1 > temp-output
72-
cat temp-output
73-
tail -n1 temp-output | grep "NEW_VERSION=" >> "$GITHUB_ENV" || true
74-
rm temp-output
75-
env:
76-
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
77-
- name: Create PR with first commit
78-
if: env.NEW_VERSION
79-
uses: gr2m/create-or-update-pull-request-action@df20b2c073090271599a08c55ae26e0c3522b329 # v1.9.2
80-
# Creates a PR with the new OpenSSL source code committed
81-
env:
82-
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
83-
with:
84-
author: Node.js GitHub Bot <github-bot@iojs.org>
85-
body: This is an automated update of OpenSSL to ${{ env.NEW_VERSION }}.
86-
branch: actions/tools-update-openssl-v1 # Custom branch *just* for this Action.
87-
commit-message: 'deps: upgrade openssl sources to quictls/openssl-${{ env.NEW_VERSION }}'
88-
labels: dependencies
89-
title: '[v16.x] deps: update OpenSSL to ${{ env.NEW_VERSION }}'
90-
path: deps/openssl
91-
update-pull-request-title-and-body: true
92-
- name: Regenerate platform specific files
93-
if: env.NEW_VERSION
94-
run: |
95-
sudo apt install -y nasm libtext-template-perl
96-
./tools/dep_updaters/update-openssl.sh regenerate
97-
env:
98-
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
99-
- name: Add second commit
100-
# Adds a second commit to the PR with the generated platform-dependent files
101-
if: env.NEW_VERSION
102-
uses: gr2m/create-or-update-pull-request-action@df20b2c073090271599a08c55ae26e0c3522b329 # v1.9.2
103-
env:
104-
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
105-
with:
106-
author: Node.js GitHub Bot <github-bot@iojs.org>
107-
branch: actions/tools-update-openssl-v1 # Custom branch *just* for this Action.
108-
commit-message: 'deps: update archs files for openssl-${{ env.NEW_VERSION }}'
109-
path: deps/openssl

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
/perf.data
3333
/perf.data.old
3434
/tags
35+
/tags.*
3536
/doc/api.xml
3637
/node
3738
/node_g

common.gypi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
# Reset this number to 0 on major V8 upgrades.
3838
# Increment by one for each non-official patch applied to deps/v8.
39-
'v8_embedder_string': '-node.19',
39+
'v8_embedder_string': '-node.12',
4040

4141
##### V8 defaults for Node.js #####
4242

configure.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
valid_mips_float_abi = ('soft', 'hard')
5757
valid_intl_modes = ('none', 'small-icu', 'full-icu', 'system-icu')
5858
icu_versions = json.loads((tools_path / 'icu' / 'icu_versions.json').read_text(encoding='utf-8'))
59+
maglev_enabled_architectures = ('x64', 'arm', 'arm64')
5960

6061
shareable_builtins = {'cjs_module_lexer/lexer': 'deps/cjs-module-lexer/lexer.js',
6162
'cjs_module_lexer/dist/lexer': 'deps/cjs-module-lexer/dist/lexer.js',
@@ -812,11 +813,13 @@
812813
help='Enable V8 transparent hugepage support. This feature is only '+
813814
'available on Linux platform.')
814815

815-
parser.add_argument('--v8-enable-maglev',
816+
maglev_enabled_by_default_help = f"(Maglev is enabled by default on {','.join(maglev_enabled_architectures)})"
817+
818+
parser.add_argument('--v8-disable-maglev',
816819
action='store_true',
817-
dest='v8_enable_maglev',
820+
dest='v8_disable_maglev',
818821
default=None,
819-
help='Enable V8 Maglev compiler. Not available on all platforms.')
822+
help=f"Disable V8's Maglev compiler. {maglev_enabled_by_default_help}")
820823

821824
parser.add_argument('--v8-enable-short-builtin-calls',
822825
action='store_true',
@@ -1498,7 +1501,8 @@ def configure_v8(o):
14981501
o['variables']['v8_random_seed'] = 0 # Use a random seed for hash tables.
14991502
o['variables']['v8_promise_internal_field_count'] = 1 # Add internal field to promises for async hooks.
15001503
o['variables']['v8_use_siphash'] = 0 if options.without_siphash else 1
1501-
o['variables']['v8_enable_maglev'] = 1 if options.v8_enable_maglev else 0
1504+
o['variables']['v8_enable_maglev'] = B(not options.v8_disable_maglev and
1505+
o['variables']['target_arch'] in maglev_enabled_architectures)
15021506
o['variables']['v8_enable_pointer_compression'] = 1 if options.enable_pointer_compression else 0
15031507
o['variables']['v8_enable_31bit_smis_on_64bit_arch'] = 1 if options.enable_pointer_compression else 0
15041508
o['variables']['v8_enable_shared_ro_heap'] = 0 if options.enable_pointer_compression or options.disable_shared_ro_heap else 1

0 commit comments

Comments
 (0)