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

Public Member Functions

virtual void VisitPointers (Object **start, Object **end)
 
int count ()
 
Handle< JSGlobalObject > & at (int i)
 

Private Attributes

List< Handle< JSGlobalObject > > objects_
 

Detailed Description

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

Member Function Documentation

◆ at()

Handle<JSGlobalObject>& v8::internal::GlobalObjectsEnumerator::at ( int  i)
inline

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

2208 { return objects_[i]; }
List< Handle< JSGlobalObject > > objects_

References objects_.

Referenced by v8::internal::V8HeapExplorer::TagGlobalObjects().

+ Here is the caller graph for this function:

◆ count()

int v8::internal::GlobalObjectsEnumerator::count ( )
inline

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

2207 { return objects_.length(); }

References objects_.

Referenced by v8::internal::V8HeapExplorer::TagGlobalObjects().

+ Here is the caller graph for this function:

◆ VisitPointers()

virtual void v8::internal::GlobalObjectsEnumerator::VisitPointers ( Object **  start,
Object **  end 
)
inlinevirtual

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

2193  {
2194  for (Object** p = start; p < end; p++) {
2195  if ((*p)->IsNativeContext()) {
2196  Context* context = Context::cast(*p);
2197  JSObject* proxy = context->global_proxy();
2198  if (proxy->IsJSGlobalProxy()) {
2199  Object* global = proxy->map()->prototype();
2200  if (global->IsJSGlobalObject()) {
2201  objects_.Add(Handle<JSGlobalObject>(JSGlobalObject::cast(global)));
2202  }
2203  }
2204  }
2205  }
2206  }
static Context * cast(Object *context)
Definition: contexts.h:255
kSerializedDataOffset Object
Definition: objects-inl.h:5322

References v8::internal::Context::cast(), v8::internal::Context::global_proxy(), v8::internal::HeapObject::map(), and objects_.

+ Here is the call graph for this function:

Member Data Documentation

◆ objects_

List<Handle<JSGlobalObject> > v8::internal::GlobalObjectsEnumerator::objects_
private

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

Referenced by at(), count(), and VisitPointers().


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