Skip to content

Commit 9ca8ace

Browse files
committed
Fix merge
1 parent 550ba30 commit 9ca8ace

File tree

5 files changed

+3
-21
lines changed

5 files changed

+3
-21
lines changed

deps/zstd/unofficial.gni

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ template("zstd_gn_build") {
1919
public_configs = [ ":zstd_config" ]
2020
sources = gypi_values.zstd_sources
2121
defines = [ "XXH_NAMESPACE=ZSTD_", "ZSTD_MULTITHREAD", "ZSTD_DISABLE_ASM" ]
22-
cflags_c = [ "-Wno-unused-function" ]
22+
cflags_c = [ "-Wno-unused-function", "-Wno-unreachable-code" ]
2323

2424
if (is_posix) {
2525
ldflags = [ "-pthread" ]

src/env.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ class NODE_EXTERN_PRIVATE IsolateData : public MemoryRetainer {
142142
ArrayBufferAllocator* node_allocator = nullptr,
143143
const EmbedderSnapshotData* embedder_snapshot_data = nullptr,
144144
std::shared_ptr<PerIsolateOptions> options = nullptr);
145+
~IsolateData();
145146

146147
SET_MEMORY_INFO_NAME(IsolateData)
147148
SET_SELF_SIZE(IsolateData)

src/inspector/unofficial.gni

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ template("inspector_gn_build") {
7676
}
7777

7878
config("crdtp_config") {
79-
include_dirs = [ protocol_tool_path ]
79+
include_dirs = [ protocol_tool_path, "$node_simdutf_path" ]
8080
}
8181

8282
static_library("crdtp") {

src/node_buffer.cc

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,6 @@ uint32_t FastCopy(Local<Value> receiver,
608608

609609
CopyImpl(source_obj, target_obj, target_start, source_start, to_copy);
610610

611-
memmove(target_data + target_start, source.data() + source_start, to_copy);
612611
return to_copy;
613612
}
614613

@@ -871,7 +870,6 @@ void CompareOffset(const FunctionCallbackInfo<Value> &args) {
871870
args.GetReturnValue().Set(val);
872871
}
873872

874-
<<<<<<< HEAD
875873
int32_t CompareImpl(Local<Value> a_obj, Local<Value> b_obj) {
876874
ArrayBufferViewContents<char> a(a_obj);
877875
ArrayBufferViewContents<char> b(b_obj);
@@ -906,22 +904,6 @@ int32_t FastCompare(Local<Value>,
906904

907905
static CFunction fast_compare(CFunction::Make(FastCompare));
908906

909-
void Compare(const FunctionCallbackInfo<Value> &args) {
910-
Environment* env = Environment::GetCurrent(args);
911-
912-
THROW_AND_RETURN_UNLESS_BUFFER(env, args[0]);
913-
THROW_AND_RETURN_UNLESS_BUFFER(env, args[1]);
914-
ArrayBufferViewContents<char> a(args[0]);
915-
ArrayBufferViewContents<char> b(args[1]);
916-
917-
size_t cmp_length = std::min(a.length(), b.length());
918-
919-
int val = normalizeCompareVal(cmp_length > 0 ?
920-
memcmp(a.data(), b.data(), cmp_length) : 0,
921-
a.length(), b.length());
922-
args.GetReturnValue().Set(val);
923-
}
924-
925907
// Computes the offset for starting an indexOf or lastIndexOf search.
926908
// Returns either a valid offset in [0...<length - 1>], ie inside the Buffer,
927909
// or -1 to signal that there is no possible match.

unofficial.gni

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ template("node_gn_build") {
177177
"deps/llhttp",
178178
"deps/nbytes",
179179
"deps/nghttp2",
180-
"deps/ngtcp2",
181180
"deps/postject",
182181
"deps/uvwasi",
183182
"deps/zstd",

0 commit comments

Comments
 (0)