本文整理汇总了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);
}
}
示例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);
}
}
示例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);
}
}
}
示例4: markChildren
void JSStaticScopeObject::markChildren(MarkStack& markStack)
{
JSVariableObject::markChildren(markStack);
markStack.deprecatedAppend(&d()->registerStore);
}