diff options
author | Anna Henningsen <anna@addaleax.net> | 2020-07-14 16:37:59 +0200 |
---|---|---|
committer | Myles Borins <mylesborins@github.com> | 2020-07-16 17:09:18 -0400 |
commit | 447b1e86a5f61a357fa61ec7fa4bc8896d9281c0 (patch) | |
tree | 2df8a7de68fdc1b9c93bfcf1d169bc289a63f083 | |
parent | 2079fefacf38389aba11fdb792c2e1b383f93d56 (diff) | |
download | node-new-447b1e86a5f61a357fa61ec7fa4bc8896d9281c0.tar.gz |
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 <anna@addaleax.net>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
-rw-r--r-- | deps/v8/include/v8.h | 1 | ||||
-rw-r--r-- | deps/v8/src/api/api.cc | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/deps/v8/include/v8.h b/deps/v8/include/v8.h index 43420e60d9..2f312e9b62 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 93780bceec..5b1c2b156b 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<i::Isolate*>(this)->heap_profiler(); |