• 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 // static
New(v8::internal::Isolate *)24 std::unique_ptr<Heap> Heap::New(v8::internal::Isolate*) { return nullptr; }
25 
26 // static
GetIsolate(Address)27 v8::internal::Isolate* Heap::GetIsolate(Address) { return nullptr; }
28 
Allocate(size_t,AllocationType,AllocationAlignment)29 AllocationResult Heap::Allocate(size_t, AllocationType, AllocationAlignment) {
30   return AllocationResult();
31 }
32 
GetObjectFromInnerPointer(Address)33 Address Heap::GetObjectFromInnerPointer(Address) { return 0; }
34 
GetCodeRange()35 const base::AddressRegion& Heap::GetCodeRange() {
36   static const base::AddressRegion no_region(0, 0);
37   return no_region;
38 }
39 
40 // static
InCodeSpace(Address)41 bool Heap::InCodeSpace(Address) { return false; }
42 
43 // static
InReadOnlySpace(Address)44 bool Heap::InReadOnlySpace(Address) { return false; }
45 
46 // static
IsValidHeapObject(HeapObject)47 bool Heap::IsValidHeapObject(HeapObject) { return false; }
48 
CollectGarbage()49 bool Heap::CollectGarbage() { return false; }
50 
51 }  // namespace third_party_heap
52 }  // namespace internal
53 }  // namespace v8
54