Skip to content

Commit 344c5ec

Browse files
anonrigRafaelGSS
authored andcommitted
deps: add simdutf dependency
PR-URL: #45803 Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent c2ed0cc commit 344c5ec

File tree

12 files changed

+30637
-0
lines changed

12 files changed

+30637
-0
lines changed

.github/workflows/tools.yml

+10
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,16 @@ jobs:
125125
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
126126
./tools/dep_updaters/update-libuv.sh "$NEW_VERSION"
127127
fi
128+
- id: simdutf
129+
subsystem: deps
130+
label: dependencies
131+
run: |
132+
NEW_VERSION=$(gh api repos/simdutf/simdutf/releases/latest -q '.tag_name|ltrimstr("v")')
133+
CURRENT_VERSION=$(grep "#define SIMDUTF_VERSION" ./deps/simdutf/simdutf.h | sed -n "s/^.*VERSION \(.*\)/\1/p")
134+
if [ "$NEW_VERSION" != "$CURRENT_VERSION" ]; then
135+
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
136+
./tools/update-simdutf.sh "$NEW_VERSION"
137+
fi
128138
steps:
129139
- uses: actions/checkout@v3
130140
with:

LICENSE

+22
Original file line numberDiff line numberDiff line change
@@ -1316,6 +1316,28 @@ The externally maintained libraries used by Node.js are:
13161316
13171317
"""
13181318

1319+
- simdutf, located at deps/simdutf, is licensed as follows:
1320+
"""
1321+
Copyright 2021 The simdutf authors
1322+
1323+
Permission is hereby granted, free of charge, to any person obtaining a copy of
1324+
this software and associated documentation files (the "Software"), to deal in
1325+
the Software without restriction, including without limitation the rights to
1326+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
1327+
the Software, and to permit persons to whom the Software is furnished to do so,
1328+
subject to the following conditions:
1329+
1330+
The above copyright notice and this permission notice shall be included in all
1331+
copies or substantial portions of the Software.
1332+
1333+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1334+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
1335+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
1336+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
1337+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1338+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1339+
"""
1340+
13191341
- npm, located at deps/npm, is licensed as follows:
13201342
"""
13211343
The npm application

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ with-code-cache test-code-cache:
170170

171171
out/Makefile: config.gypi common.gypi node.gyp \
172172
deps/uv/uv.gyp deps/llhttp/llhttp.gyp deps/zlib/zlib.gyp \
173+
deps/simdutf/simdutf.gyp \
173174
tools/v8_gypfiles/toolchain.gypi tools/v8_gypfiles/features.gypi \
174175
tools/v8_gypfiles/inspector.gypi tools/v8_gypfiles/v8.gyp
175176
$(PYTHON) tools/gyp_node.py -f make

deps/simdutf/LICENSE-MIT

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Copyright 2021 The simdutf authors
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
this software and associated documentation files (the "Software"), to deal in
5+
the Software without restriction, including without limitation the rights to
6+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7+
the Software, and to permit persons to whom the Software is furnished to do so,
8+
subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

deps/simdutf/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# simdutf
2+
3+
This project boosts unicode validation and transcoding performance by
4+
utilizing SIMD operations where possible.
5+
6+
The source is pulled from: https://github.com/simdutf/simdutf
7+
8+
Active development occurs in the default branch (currently named `master`).
9+
10+
## Updating
11+
12+
See [tools/dep_updaters/README.md#simdutf](../../tools/dep_updaters/README.md#simdutf)
13+
for instructions.

0 commit comments

Comments
 (0)