diff options
Diffstat (limited to 'deps/v8/src/heap/third-party/heap-api-stub.cc')
-rw-r--r-- | deps/v8/src/heap/third-party/heap-api-stub.cc | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/deps/v8/src/heap/third-party/heap-api-stub.cc b/deps/v8/src/heap/third-party/heap-api-stub.cc new file mode 100644 index 00000000000..6d31479bec6 --- /dev/null +++ b/deps/v8/src/heap/third-party/heap-api-stub.cc @@ -0,0 +1,53 @@ +// Copyright 2020 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "src/execution/isolate-utils-inl.h" +#include "src/heap/heap-inl.h" +#include "src/heap/third-party/heap-api.h" + +namespace v8 { +namespace internal { + +Isolate* Heap::GetIsolateFromWritableObject(HeapObject object) { + return GetHeapFromWritableObject(object)->isolate(); +} + +} // namespace internal +} // namespace v8 + +namespace v8 { +namespace internal { +namespace third_party_heap { + +// static +std::unique_ptr<Heap> Heap::New(v8::internal::Isolate*) { return nullptr; } + +// static +v8::internal::Isolate* Heap::GetIsolate(Address) { return nullptr; } + +AllocationResult Heap::Allocate(size_t, AllocationType, AllocationAlignment) { + return AllocationResult(); +} + +Address Heap::GetObjectFromInnerPointer(Address) { return 0; } + +const base::AddressRegion& Heap::GetCodeRange() { + static const base::AddressRegion no_region(0, 0); + return no_region; +} + +// static +bool Heap::InCodeSpace(Address) { return false; } + +// static +bool Heap::InReadOnlySpace(Address) { return false; } + +// static +bool Heap::IsValidHeapObject(HeapObject) { return false; } + +bool Heap::CollectGarbage() { return false; } + +} // namespace third_party_heap +} // namespace internal +} // namespace v8 |