V8 Project
v8::internal::anonymous_namespace{heap-snapshot-generator.cc} Namespace Reference

Classes

struct  SnapshotSizeConstants
 
struct  SnapshotSizeConstants< 4 >
 
struct  SnapshotSizeConstants< 8 >
 
struct  HeapObjectInfo
 
struct  ToUnsigned
 
struct  ToUnsigned< 4 >
 
struct  ToUnsigned< 8 >
 

Functions

static int comparator (const HeapObjectInfo *a, const HeapObjectInfo *b)
 

Function Documentation

◆ comparator()

static int v8::internal::anonymous_namespace{heap-snapshot-generator.cc}::comparator ( const HeapObjectInfo a,
const HeapObjectInfo b 
)
static

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

545  {
546  if (a->obj < b->obj) return -1;
547  if (a->obj > b->obj) return 1;
548  return 0;
549 }

References v8::internal::anonymous_namespace{heap-snapshot-generator.cc}::HeapObjectInfo::obj.

Referenced by v8::internal::HeapObjectsMap::FindUntrackedObjects(), and v8::internal::String::SlowEquals().

+ Here is the caller graph for this function: