From 447b1e86a5f61a357fa61ec7fa4bc8896d9281c0 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 14 Jul 2020 16:37:59 +0200 Subject: [PATCH] deps: V8: re-add dummy Isolate::CheckMemoryPressure Undoes the ABI-breaking part of v8/v8@92a44876bd66aa. Refs: https://github.com/v8/v8/commit/92a44876bd66aa7dfa4841d406567586e5ffca22 PR-URL: https://github.com/nodejs/node/pull/34356 Reviewed-By: Anna Henningsen Reviewed-By: Jiawen Geng Reviewed-By: Myles Borins --- deps/v8/include/v8.h | 1 + deps/v8/src/api/api.cc | 3 +++ 2 files changed, 4 insertions(+) diff --git a/deps/v8/include/v8.h b/deps/v8/include/v8.h index 43420e60d90a15..2f312e9b6280f4 100644 --- a/deps/v8/include/v8.h +++ b/deps/v8/include/v8.h @@ -9490,6 +9490,7 @@ class V8_EXPORT Isolate { internal::Address* GetDataFromSnapshotOnce(size_t index); void ReportExternalAllocationLimitReached(); + void CheckMemoryPressure(); }; class V8_EXPORT StartupData { diff --git a/deps/v8/src/api/api.cc b/deps/v8/src/api/api.cc index 93780bceec4186..5b1c2b156b6e93 100644 --- a/deps/v8/src/api/api.cc +++ b/deps/v8/src/api/api.cc @@ -7987,6 +7987,9 @@ void Isolate::ReportExternalAllocationLimitReached() { heap->ReportExternalMemoryPressure(); } +// Node v14.x ABI compat dummy. +void Isolate::CheckMemoryPressure() {} + HeapProfiler* Isolate::GetHeapProfiler() { i::HeapProfiler* heap_profiler = reinterpret_cast(this)->heap_profiler();