V8 Project
v8::internal::JSArrayBufferDataEntryAllocator Class Reference
+ Inheritance diagram for v8::internal::JSArrayBufferDataEntryAllocator:
+ Collaboration diagram for v8::internal::JSArrayBufferDataEntryAllocator:

Public Member Functions

 JSArrayBufferDataEntryAllocator (size_t size, V8HeapExplorer *explorer)
 
virtual HeapEntry * AllocateEntry (HeapThing ptr)
 
- Public Member Functions inherited from v8::internal::HeapEntriesAllocator
virtual ~HeapEntriesAllocator ()
 

Private Attributes

size_t size_
 
V8HeapExplorerexplorer_
 

Detailed Description

Definition at line 1557 of file heap-snapshot-generator.cc.

Constructor & Destructor Documentation

◆ JSArrayBufferDataEntryAllocator()

v8::internal::JSArrayBufferDataEntryAllocator::JSArrayBufferDataEntryAllocator ( size_t  size,
V8HeapExplorer explorer 
)
inline

Definition at line 1559 of file heap-snapshot-generator.cc.

1560  : size_(size)
1561  , explorer_(explorer) {
1562  }
enable harmony numeric enable harmony object literal extensions Optimize object size

Member Function Documentation

◆ AllocateEntry()

virtual HeapEntry* v8::internal::JSArrayBufferDataEntryAllocator::AllocateEntry ( HeapThing  ptr)
inlinevirtual

Implements v8::internal::HeapEntriesAllocator.

Definition at line 1563 of file heap-snapshot-generator.cc.

1563  {
1564  return explorer_->AddEntry(
1565  static_cast<Address>(ptr),
1566  HeapEntry::kNative, "system / JSArrayBufferData", size_);
1567  }
HeapEntry * AddEntry(Address address, HeapEntry::Type type, const char *name, size_t size)
byte * Address
Definition: globals.h:101

References v8::internal::V8HeapExplorer::AddEntry(), explorer_, and size_.

+ Here is the call graph for this function:

Member Data Documentation

◆ explorer_

V8HeapExplorer* v8::internal::JSArrayBufferDataEntryAllocator::explorer_
private

Definition at line 1570 of file heap-snapshot-generator.cc.

Referenced by AllocateEntry().

◆ size_

size_t v8::internal::JSArrayBufferDataEntryAllocator::size_
private

Definition at line 1569 of file heap-snapshot-generator.cc.

Referenced by AllocateEntry().


The documentation for this class was generated from the following file: