[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.

Refs: https://github.com/bnoordhuis/v8-cmake/pull/50
Bug: v8:10427
Change-Id: I435081d8cb195d1db999db699df3d3751663c81d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3366367
Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#78587}
This commit is contained in:
gengjiawen 2022-01-04 06:53:39 -08:00 committed by V8 LUCI CQ
parent c0682832f0
commit 36d767ac51

View File

@ -50,14 +50,26 @@ bool Heap::InOldSpace(Address) { return false; }
// static
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