当前位置: 首页>>代码示例>>C++>>正文


C++ JSDOMGlobalObject::structures方法代码示例

本文整理汇总了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);
}
开发者ID:3163504123,项目名称:phantomjs,代码行数:16,代码来源:JSDOMGlobalObject.cpp

示例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);
}
开发者ID:lokifist,项目名称:webkit,代码行数:14,代码来源:JSDOMGlobalObject.cpp

示例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);
}
开发者ID:eocanha,项目名称:webkit,代码行数:21,代码来源:JSDOMGlobalObject.cpp


注:本文中的JSDOMGlobalObject::structures方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。