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


C++ MarkStack::deprecatedAppend方法代码示例

本文整理汇总了C++中MarkStack::deprecatedAppend方法的典型用法代码示例。如果您正苦于以下问题:C++ MarkStack::deprecatedAppend方法的具体用法?C++ MarkStack::deprecatedAppend怎么用?C++ MarkStack::deprecatedAppend使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MarkStack的用法示例。


在下文中一共展示了MarkStack::deprecatedAppend方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: markDOMNodeWrapper

void markDOMNodeWrapper(MarkStack& markStack, Document* document, Node* node)
{
    if (document) {
        JSWrapperCacheMap& wrapperCacheMap = document->wrapperCacheMap();
        for (JSWrapperCacheMap::iterator iter = wrapperCacheMap.begin(); iter != wrapperCacheMap.end(); ++iter) {
            if (HandleSlot wrapperSlot = iter->second->getSlot(node))
                markStack.deprecatedAppend(wrapperSlot);
        }
        return;
    }

    for (JSGlobalDataWorldIterator worldIter(JSDOMWindow::commonJSGlobalData()); worldIter; ++worldIter) {
        if (HandleSlot wrapperSlot = worldIter->m_wrappers.getSlot(node))
            markStack.deprecatedAppend(wrapperSlot);
    }
}
开发者ID:dankurka,项目名称:webkit_titanium,代码行数:16,代码来源:JSDOMBinding.cpp

示例2: markDOMObjectWrapper

void markDOMObjectWrapper(MarkStack& markStack, JSGlobalData& globalData, void* object)
{
    // FIXME: This could be changed to only mark wrappers that are "observable"
    // as markDOMNodesForDocument does, allowing us to collect more wrappers,
    // but doing this correctly would be challenging.
    if (!object)
        return;

    for (JSGlobalDataWorldIterator worldIter(&globalData); worldIter; ++worldIter) {
        if (HandleSlot wrapperSlot = worldIter->m_wrappers.getSlot(object))
            markStack.deprecatedAppend(wrapperSlot);
    }
}
开发者ID:dankurka,项目名称:webkit_titanium,代码行数:13,代码来源:JSDOMBinding.cpp

示例3: markDOMNodesForDocument

void markDOMNodesForDocument(MarkStack& markStack, Document* document)
{
    JSWrapperCacheMap& wrapperCacheMap = document->wrapperCacheMap();
    for (JSWrapperCacheMap::iterator wrappersIter = wrapperCacheMap.begin(); wrappersIter != wrapperCacheMap.end(); ++wrappersIter) {
        DOMWrapperWorld* world = wrappersIter->first;
        JSWrapperCache* nodeDict = wrappersIter->second;

        JSWrapperCache::iterator nodeEnd = nodeDict->end();
        for (JSWrapperCache::iterator nodeIt = nodeDict->begin(); nodeIt != nodeEnd; ++nodeIt) {
            if (isObservableThroughDOM(nodeIt.get().second, world))
                markStack.deprecatedAppend(nodeIt.getSlot().second);
        }
    }
}
开发者ID:dankurka,项目名称:webkit_titanium,代码行数:14,代码来源:JSDOMBinding.cpp

示例4: markChildren

void JSStaticScopeObject::markChildren(MarkStack& markStack)
{
    JSVariableObject::markChildren(markStack);
    markStack.deprecatedAppend(&d()->registerStore);
}
开发者ID:NewDreamUser2,项目名称:webkit-webcl,代码行数:5,代码来源:JSStaticScopeObject.cpp


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