1 // Copyright 2020 the V8 project authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "src/execution/isolate-utils-inl.h" 6 #include "src/heap/heap-inl.h" 7 #include "src/heap/third-party/heap-api.h" 8 9 namespace v8 { 10 namespace internal { 11 GetIsolateFromWritableObject(HeapObject object)12Isolate* Heap::GetIsolateFromWritableObject(HeapObject object) { 13 return GetHeapFromWritableObject(object)->isolate(); 14 } 15 16 } // namespace internal 17 } // namespace v8 18 19 namespace v8 { 20 namespace internal { 21 namespace third_party_heap { 22 23 class Impl {}; 24 25 // static New(v8::internal::Isolate *)26std::unique_ptr<Heap> Heap::New(v8::internal::Isolate*) { return nullptr; } 27 28 // static GetIsolate(Address)29v8::internal::Isolate* Heap::GetIsolate(Address) { return nullptr; } 30 Allocate(size_t,AllocationType,AllocationAlignment)31AllocationResult Heap::Allocate(size_t, AllocationType, AllocationAlignment) { 32 return AllocationResult(); 33 } 34 GetObjectFromInnerPointer(Address)35Address Heap::GetObjectFromInnerPointer(Address) { return 0; } 36 GetCodeRange()37const base::AddressRegion& Heap::GetCodeRange() { 38 static const base::AddressRegion no_region(0, 0); 39 return no_region; 40 } 41 IsPendingAllocation(HeapObject)42bool Heap::IsPendingAllocation(HeapObject) { return false; } 43 44 // static InSpace(Address,AllocationSpace)45bool Heap::InSpace(Address, AllocationSpace) { return false; } 46 47 // static InOldSpace(Address)48bool Heap::InOldSpace(Address) { return false; } 49 50 // static InReadOnlySpace(Address)51bool Heap::InReadOnlySpace(Address) { return false; } 52 53 // static InLargeObjectSpace(Address address)54bool Heap::InLargeObjectSpace(Address address) { return false; } 55 56 // static IsValidHeapObject(HeapObject)57bool Heap::IsValidHeapObject(HeapObject) { return false; } 58 59 // static IsImmovable(HeapObject)60bool Heap::IsImmovable(HeapObject) { return false; } 61 62 // static IsValidCodeObject(HeapObject)63bool Heap::IsValidCodeObject(HeapObject) { return false; } 64 ResetIterator()65void Heap::ResetIterator() {} 66 NextObject()67HeapObject Heap::NextObject() { return HeapObject(); } 68 CollectGarbage()69bool Heap::CollectGarbage() { return false; } 70 Capacity()71size_t Heap::Capacity() { return 0; } 72 73 } // namespace third_party_heap 74 } // namespace internal 75 } // namespace v8 76