Commit 36d767ac authored by gengjiawen's avatar gengjiawen Committed by V8 LUCI CQ

[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/+/3366367Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#78587}
parent c0682832
...@@ -50,14 +50,26 @@ bool Heap::InOldSpace(Address) { return false; } ...@@ -50,14 +50,26 @@ bool Heap::InOldSpace(Address) { return false; }
// static // static
bool Heap::InReadOnlySpace(Address) { return false; } bool Heap::InReadOnlySpace(Address) { return false; }
// static
bool Heap::InLargeObjectSpace(Address address) { return false; }
// static // static
bool Heap::IsValidHeapObject(HeapObject) { return false; } bool Heap::IsValidHeapObject(HeapObject) { return false; }
// static
bool Heap::IsImmovable(HeapObject) { return false; }
// static // static
bool Heap::IsValidCodeObject(HeapObject) { return false; } bool Heap::IsValidCodeObject(HeapObject) { return false; }
void Heap::ResetIterator() {}
HeapObject Heap::NextObject() { return HeapObject(); }
bool Heap::CollectGarbage() { return false; } bool Heap::CollectGarbage() { return false; }
size_t Heap::Capacity() { return 0; }
} // namespace third_party_heap } // namespace third_party_heap
} // namespace internal } // namespace internal
} // namespace v8 } // namespace v8
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment