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

Public Member Functions

 BasicHeapEntriesAllocator (HeapSnapshot *snapshot, HeapEntry::Type entries_type)
 
virtual HeapEntry * AllocateEntry (HeapThing ptr)
 
- Public Member Functions inherited from v8::internal::HeapEntriesAllocator
virtual ~HeapEntriesAllocator ()
 

Private Attributes

HeapSnapshotsnapshot_
 
StringsStoragenames_
 
HeapObjectsMapheap_object_map_
 
HeapEntry::Type entries_type_
 

Detailed Description

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

Constructor & Destructor Documentation

◆ BasicHeapEntriesAllocator()

v8::internal::BasicHeapEntriesAllocator::BasicHeapEntriesAllocator ( HeapSnapshot snapshot,
HeapEntry::Type  entries_type 
)
inline

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

2263  : snapshot_(snapshot),
2264  names_(snapshot_->profiler()->names()),
2266  entries_type_(entries_type) {
2267  }
StringsStorage * names() const
Definition: heap-profiler.h:39
HeapObjectsMap * heap_object_map() const
Definition: heap-profiler.h:38
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in only print modified registers Trace simulator debug messages Implied by trace sim abort randomize hashes to avoid predictable hash Fixed seed to use to hash property Print the time it takes to deserialize the snapshot A filename with extra code to be included in the snapshot(mksnapshot only)") DEFINE_STRING(raw_file

Member Function Documentation

◆ AllocateEntry()

HeapEntry * v8::internal::BasicHeapEntriesAllocator::AllocateEntry ( HeapThing  ptr)
virtual

Implements v8::internal::HeapEntriesAllocator.

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

2277  {
2278  v8::RetainedObjectInfo* info = reinterpret_cast<v8::RetainedObjectInfo*>(ptr);
2279  intptr_t elements = info->GetElementCount();
2280  intptr_t size = info->GetSizeInBytes();
2281  const char* name = elements != -1
2282  ? names_->GetFormatted(
2283  "%s / %" V8_PTR_PREFIX "d entries", info->GetLabel(), elements)
2284  : names_->GetCopy(info->GetLabel());
2285  return snapshot_->AddEntry(
2286  entries_type_,
2287  name,
2289  size != -1 ? static_cast<int>(size) : 0,
2290  0);
2291 }
Interface for providing information about embedder's objects held by global handles.
Definition: v8-profiler.h:545
virtual intptr_t GetSizeInBytes()
Returns embedder's object size in bytes.
Definition: v8-profiler.h:583
virtual const char * GetLabel()=0
Returns human-readable label.
virtual intptr_t GetElementCount()
Returns element count in case if a global handle retains a subgraph by holding one of its nodes.
Definition: v8-profiler.h:580
SnapshotObjectId GenerateId(v8::RetainedObjectInfo *info)
HeapEntry * AddEntry(HeapEntry::Type type, const char *name, SnapshotObjectId id, size_t size, unsigned trace_node_id)
const char * GetFormatted(const char *format,...)
const char * GetCopy(const char *src)
enable harmony numeric enable harmony object literal extensions Optimize object size
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in name
#define V8_PTR_PREFIX
Definition: macros.h:360

References v8::internal::HeapSnapshot::AddEntry(), entries_type_, v8::internal::HeapObjectsMap::GenerateId(), v8::internal::StringsStorage::GetCopy(), v8::RetainedObjectInfo::GetElementCount(), v8::internal::StringsStorage::GetFormatted(), v8::RetainedObjectInfo::GetLabel(), v8::RetainedObjectInfo::GetSizeInBytes(), heap_object_map_, name, names_, size, snapshot_, and V8_PTR_PREFIX.

+ Here is the call graph for this function:

Member Data Documentation

◆ entries_type_

HeapEntry::Type v8::internal::BasicHeapEntriesAllocator::entries_type_
private

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

Referenced by AllocateEntry().

◆ heap_object_map_

HeapObjectsMap* v8::internal::BasicHeapEntriesAllocator::heap_object_map_
private

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

Referenced by AllocateEntry().

◆ names_

StringsStorage* v8::internal::BasicHeapEntriesAllocator::names_
private

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

Referenced by AllocateEntry().

◆ snapshot_

HeapSnapshot* v8::internal::BasicHeapEntriesAllocator::snapshot_
private

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

Referenced by AllocateEntry().


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