diff options
author | Michaël Zasso <targos@protonmail.com> | 2021-02-24 14:47:06 +0100 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2021-02-25 00:14:47 +0100 |
commit | c5ff019a4e93891106859cb272ded1197a92c7e5 (patch) | |
tree | caf6b7e50b0ceac09878ac4402d9f725b8685dd7 /deps/v8/src/wasm/wasm-module.cc | |
parent | 67dc2bf2084b125dec43689874d237d125562cdf (diff) | |
download | node-new-c5ff019a4e93891106859cb272ded1197a92c7e5.tar.gz |
deps: update V8 to 8.9.255.19
PR-URL: https://github.com/nodejs/node/pull/37330
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'deps/v8/src/wasm/wasm-module.cc')
-rw-r--r-- | deps/v8/src/wasm/wasm-module.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/deps/v8/src/wasm/wasm-module.cc b/deps/v8/src/wasm/wasm-module.cc index c2082d36b8..b418fbcc1c 100644 --- a/deps/v8/src/wasm/wasm-module.cc +++ b/deps/v8/src/wasm/wasm-module.cc @@ -2,10 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "src/wasm/wasm-module.h" + #include <functional> #include <memory> #include "src/api/api-inl.h" +#include "src/base/platform/wrappers.h" #include "src/codegen/assembler-inl.h" #include "src/compiler/wasm-compiler.h" #include "src/debug/interface-types.h" @@ -19,7 +22,6 @@ #include "src/wasm/module-decoder.h" #include "src/wasm/wasm-code-manager.h" #include "src/wasm/wasm-js.h" -#include "src/wasm/wasm-module.h" #include "src/wasm/wasm-objects-inl.h" #include "src/wasm/wasm-result.h" @@ -137,7 +139,7 @@ void LazilyGeneratedNames::AddForTesting(int function_index, AsmJsOffsetInformation::AsmJsOffsetInformation( Vector<const byte> encoded_offsets) - : encoded_offsets_(OwnedVector<uint8_t>::Of(encoded_offsets)) {} + : encoded_offsets_(OwnedVector<const uint8_t>::Of(encoded_offsets)) {} AsmJsOffsetInformation::~AsmJsOffsetInformation() = default; @@ -568,9 +570,9 @@ Handle<JSArray> GetCustomSections(Isolate* isolate, thrower->RangeError("out of memory allocating custom section data"); return Handle<JSArray>(); } - memcpy(array_buffer->backing_store(), - wire_bytes.begin() + section.payload.offset(), - section.payload.length()); + base::Memcpy(array_buffer->backing_store(), + wire_bytes.begin() + section.payload.offset(), + section.payload.length()); matching_sections.push_back(array_buffer); } |