V8 Project
v8::internal::FindEntryById Class Reference
+ Collaboration diagram for v8::internal::FindEntryById:

Public Member Functions

 FindEntryById (SnapshotObjectId id)
 
int operator() (HeapEntry *const *entry)
 

Private Attributes

SnapshotObjectId id_
 

Detailed Description

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

Constructor & Destructor Documentation

◆ FindEntryById()

v8::internal::FindEntryById::FindEntryById ( SnapshotObjectId  id)
inlineexplicit

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

297 : id_(id) { }

Member Function Documentation

◆ operator()()

int v8::internal::FindEntryById::operator() ( HeapEntry *const *  entry)
inline

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

298  {
299  if ((*entry)->id() == id_) return 0;
300  return (*entry)->id() < id_ ? -1 : 1;
301  }

References id_.

Member Data Documentation

◆ id_

SnapshotObjectId v8::internal::FindEntryById::id_
private

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

Referenced by operator()().


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