summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Varga <pvarga@inf.u-szeged.hu>2022-01-18 15:31:08 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2022-02-25 10:44:02 +0100
commit99b20e28b092928c4321783bd89cda7eb5377e4e (patch)
tree4d7d46051e960f35897ae93d7a1641c839891940
parentd1301827d9547d7fdefa3fc8c398493320d30588 (diff)
downloadqtwebengine-chromium-99b20e28b092928c4321783bd89cda7eb5377e4e.tar.gz
[Backport][heap] implement more stub method to fix build with msvc
Provide a stub `third_party_heap::Heap` implementation to work around linker erors with Visual Studio. Change-Id: I142756c38c5a326143756a42760d4ce209fae6d7 Refs: https://github.com/bnoordhuis/v8-cmake/pull/50 Bug: v8:10427 Review-URL: https://chromium-review.googlesource.com/c/v8/v8/+/3366367 Cr-Commit-Position: refs/heads/main@{#78587} Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r--chromium/v8/src/heap/third-party/heap-api-stub.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/chromium/v8/src/heap/third-party/heap-api-stub.cc b/chromium/v8/src/heap/third-party/heap-api-stub.cc
index 3ca562fe589..9690a8ca27b 100644
--- a/chromium/v8/src/heap/third-party/heap-api-stub.cc
+++ b/chromium/v8/src/heap/third-party/heap-api-stub.cc
@@ -51,13 +51,25 @@ bool Heap::InOldSpace(Address) { return false; }
bool Heap::InReadOnlySpace(Address) { return false; }
// static
+bool Heap::InLargeObjectSpace(Address address) { return false; }
+
+// static
bool Heap::IsValidHeapObject(HeapObject) { return false; }
// static
+bool Heap::IsImmovable(HeapObject) { return false; }
+
+// static
bool Heap::IsValidCodeObject(HeapObject) { return false; }
+void Heap::ResetIterator() {}
+
+HeapObject Heap::NextObject() { return HeapObject(); }
+
bool Heap::CollectGarbage() { return false; }
+size_t Heap::Capacity() { return 0; }
+
} // namespace third_party_heap
} // namespace internal
} // namespace v8