5 #ifndef V8_ISOLATE_ALLOCATOR_H_ 6 #define V8_ISOLATE_ALLOCATOR_H_ 8 #include "src/allocation.h" 9 #include "src/base/bounded-page-allocator.h" 10 #include "src/base/page-allocator.h" 11 #include "src/globals.h" 17 class BoundedPageAllocator;
38 void* isolate_memory()
const {
return isolate_memory_; }
42 IsolateAllocationMode mode() {
43 return reservation_.IsReserved() ? IsolateAllocationMode::kInV8Heap
44 : IsolateAllocationMode::kInCppHeap;
49 void CommitPagesForIsolate(
Address heap_base);
52 void* isolate_memory_ =
nullptr;
54 std::unique_ptr<base::BoundedPageAllocator> page_allocator_instance_;
63 #endif // V8_ISOLATE_ALLOCATOR_H_