mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
deps: patch for v8 on windows
PR-URL: https://github.com/nodejs/node/pull/40010 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
8c905b81c1
commit
513a979b44
6
.github/workflows/build-windows.yml
vendored
6
.github/workflows/build-windows.yml
vendored
@ -18,7 +18,11 @@ env:
|
||||
jobs:
|
||||
build-windows:
|
||||
if: github.event.pull_request.draft == false
|
||||
runs-on: windows-latest
|
||||
strategy:
|
||||
matrix:
|
||||
windows: [windows-2019, windows-2022]
|
||||
fail-fast: false
|
||||
runs-on: ${{ matrix.windows }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python ${{ env.PYTHON_VERSION }}
|
||||
|
@ -36,7 +36,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.9',
|
||||
'v8_embedder_string': '-node.10',
|
||||
|
||||
##### V8 defaults for Node.js #####
|
||||
|
||||
|
2
deps/v8/src/objects/fixed-array-inl.h
vendored
2
deps/v8/src/objects/fixed-array-inl.h
vendored
@ -84,7 +84,7 @@ bool FixedArray::is_the_hole(Isolate* isolate, int index) {
|
||||
return get(isolate, index).IsTheHole(isolate);
|
||||
}
|
||||
|
||||
#if !defined(_WIN32) || defined(_WIN64)
|
||||
#if !defined(_WIN32) || (defined(_WIN64) && _MSC_VER < 1930)
|
||||
void FixedArray::set(int index, Smi value) {
|
||||
DCHECK_NE(map(), GetReadOnlyRoots().fixed_cow_array_map());
|
||||
DCHECK_LT(static_cast<unsigned>(index), static_cast<unsigned>(length()));
|
||||
|
6
deps/v8/src/objects/fixed-array.h
vendored
6
deps/v8/src/objects/fixed-array.h
vendored
@ -134,7 +134,9 @@ class FixedArray
|
||||
inline bool is_the_hole(Isolate* isolate, int index);
|
||||
|
||||
// Setter that doesn't need write barrier.
|
||||
#if defined(_WIN32) && !defined(_WIN64)
|
||||
#if !defined(_WIN32) || (defined(_WIN64) && _MSC_VER < 1930)
|
||||
inline void set(int index, Smi value);
|
||||
#else
|
||||
inline void set(int index, Smi value) {
|
||||
DCHECK_NE(map(), GetReadOnlyRoots().fixed_cow_array_map());
|
||||
DCHECK_LT(static_cast<unsigned>(index), static_cast<unsigned>(length()));
|
||||
@ -142,8 +144,6 @@ class FixedArray
|
||||
int offset = OffsetOfElementAt(index);
|
||||
RELAXED_WRITE_FIELD(*this, offset, value);
|
||||
}
|
||||
#else
|
||||
inline void set(int index, Smi value);
|
||||
#endif
|
||||
|
||||
// Setter with explicit barrier mode.
|
||||
|
Loading…
Reference in New Issue
Block a user