本文整理汇总了C++中JSDOMGlobalObject::structures方法的典型用法代码示例。如果您正苦于以下问题:C++ JSDOMGlobalObject::structures方法的具体用法?C++ JSDOMGlobalObject::structures怎么用?C++ JSDOMGlobalObject::structures使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JSDOMGlobalObject
的用法示例。
在下文中一共展示了JSDOMGlobalObject::structures方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: visitChildren
void JSDOMGlobalObject::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSDOMGlobalObject* thisObject = jsCast<JSDOMGlobalObject*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(thisObject, visitor);
JSDOMStructureMap::iterator end = thisObject->structures().end();
for (JSDOMStructureMap::iterator it = thisObject->structures().begin(); it != end; ++it)
visitor.append(&it->value);
JSDOMConstructorMap::iterator end2 = thisObject->constructors().end();
for (JSDOMConstructorMap::iterator it2 = thisObject->constructors().begin(); it2 != end2; ++it2)
visitor.append(&it2->value);
}
示例2: visitChildren
void JSDOMGlobalObject::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSDOMGlobalObject* thisObject = jsCast<JSDOMGlobalObject*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
Base::visitChildren(thisObject, visitor);
for (auto& structure : thisObject->structures().values())
visitor.append(&structure);
for (auto& constructor : thisObject->constructors().values())
visitor.append(&constructor);
thisObject->m_builtinInternalFunctions.visit(visitor);
}
示例3: visitChildren
void JSDOMGlobalObject::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSDOMGlobalObject* thisObject = jsCast<JSDOMGlobalObject*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
Base::visitChildren(thisObject, visitor);
{
auto locker = holdLock(thisObject->m_gcLock);
for (auto& structure : thisObject->structures(locker).values())
visitor.append(&structure);
for (auto& constructor : thisObject->constructors(locker).values())
visitor.append(&constructor);
for (auto& deferredPromise : thisObject->deferredPromises(locker))
deferredPromise->visitAggregate(visitor);
}
thisObject->m_builtinInternalFunctions.visit(visitor);
}