• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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)12 Isolate* 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 *)26 std::unique_ptr<Heap> Heap::New(v8::internal::Isolate*) { return nullptr; }
27 
28 // static
GetIsolate(Address)29 v8::internal::Isolate* Heap::GetIsolate(Address) { return nullptr; }
30 
Allocate(size_t,AllocationType,AllocationAlignment)31 AllocationResult Heap::Allocate(size_t, AllocationType, AllocationAlignment) {
32   return AllocationResult();
33 }
34 
GetObjectFromInnerPointer(Address)35 Address Heap::GetObjectFromInnerPointer(Address) { return 0; }
36 
GetCodeRange()37 const base::AddressRegion& Heap::GetCodeRange() {
38   static const base::AddressRegion no_region(0, 0);
39   return no_region;
40 }
41 
IsPendingAllocation(HeapObject)42 bool Heap::IsPendingAllocation(HeapObject) { return false; }
43 
44 // static
InSpace(Address,AllocationSpace)45 bool Heap::InSpace(Address, AllocationSpace) { return false; }
46 
47 // static
InOldSpace(Address)48 bool Heap::InOldSpace(Address) { return false; }
49 
50 // static
InReadOnlySpace(Address)51 bool Heap::InReadOnlySpace(Address) { return false; }
52 
53 // static
InLargeObjectSpace(Address address)54 bool Heap::InLargeObjectSpace(Address address) { return false; }
55 
56 // static
IsValidHeapObject(HeapObject)57 bool Heap::IsValidHeapObject(HeapObject) { return false; }
58 
59 // static
IsImmovable(HeapObject)60 bool Heap::IsImmovable(HeapObject) { return false; }
61 
62 // static
IsValidCodeObject(HeapObject)63 bool Heap::IsValidCodeObject(HeapObject) { return false; }
64 
ResetIterator()65 void Heap::ResetIterator() {}
66 
NextObject()67 HeapObject Heap::NextObject() { return HeapObject(); }
68 
CollectGarbage()69 bool Heap::CollectGarbage() { return false; }
70 
Capacity()71 size_t Heap::Capacity() { return 0; }
72 
73 }  // namespace third_party_heap
74 }  // namespace internal
75 }  // namespace v8
76