本文整理汇总了C++中SlotVisitor::addOpaqueRoot方法的典型用法代码示例。如果您正苦于以下问题:C++ SlotVisitor::addOpaqueRoot方法的具体用法?C++ SlotVisitor::addOpaqueRoot怎么用?C++ SlotVisitor::addOpaqueRoot使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SlotVisitor
的用法示例。
在下文中一共展示了SlotVisitor::addOpaqueRoot方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: visitChildren
void JSXMLHttpRequest::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSXMLHttpRequest* thisObject = jsCast<JSXMLHttpRequest*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(thisObject, visitor);
if (XMLHttpRequestUpload* upload = thisObject->m_impl->optionalUpload())
visitor.addOpaqueRoot(upload);
if (Document* responseDocument = thisObject->m_impl->optionalResponseXML())
visitor.addOpaqueRoot(responseDocument);
if (ArrayBuffer* responseArrayBuffer = thisObject->m_impl->optionalResponseArrayBuffer())
visitor.addOpaqueRoot(responseArrayBuffer);
if (Blob* responseBlob = thisObject->m_impl->optionalResponseBlob())
visitor.addOpaqueRoot(responseBlob);
if (thisObject->m_response)
visitor.append(&thisObject->m_response);
thisObject->m_impl->visitJSEventListeners(visitor);
}
示例2: visitAdditionalChildren
void JSWorkerGlobalScope::visitAdditionalChildren(SlotVisitor& visitor)
{
if (WorkerLocation* location = impl().optionalLocation())
visitor.addOpaqueRoot(location);
if (WorkerNavigator* navigator = impl().optionalNavigator())
visitor.addOpaqueRoot(navigator);
}
示例3: visitAdditionalChildren
void JSDOMQuad::visitAdditionalChildren(SlotVisitor& visitor)
{
visitor.addOpaqueRoot(const_cast<DOMPoint*>(&wrapped().p1()));
visitor.addOpaqueRoot(const_cast<DOMPoint*>(&wrapped().p2()));
visitor.addOpaqueRoot(const_cast<DOMPoint*>(&wrapped().p3()));
visitor.addOpaqueRoot(const_cast<DOMPoint*>(&wrapped().p4()));
}
示例4: visitAdditionalChildren
void JSXMLHttpRequest::visitAdditionalChildren(SlotVisitor& visitor)
{
if (XMLHttpRequestUpload* upload = wrapped().optionalUpload())
visitor.addOpaqueRoot(upload);
if (Document* responseDocument = wrapped().optionalResponseXML())
visitor.addOpaqueRoot(responseDocument);
}
示例5: visitAdditionalChildren
void JSWorkerGlobalScope::visitAdditionalChildren(SlotVisitor& visitor)
{
if (WorkerLocation* location = wrapped().optionalLocation())
visitor.addOpaqueRoot(location);
if (WorkerNavigator* navigator = wrapped().optionalNavigator())
visitor.addOpaqueRoot(navigator);
visitor.addOpaqueRoot(wrapped().scriptExecutionContext());
}
示例6: visitChildren
void JSMessageChannel::visitChildren(SlotVisitor& visitor)
{
Base::visitChildren(visitor);
if (MessagePort* port = m_impl->port1())
visitor.addOpaqueRoot(port);
if (MessagePort* port = m_impl->port2())
visitor.addOpaqueRoot(port);
}
示例7: visitAdditionalChildren
void JSXMLHttpRequest::visitAdditionalChildren(SlotVisitor& visitor)
{
if (XMLHttpRequestUpload* upload = impl().optionalUpload())
visitor.addOpaqueRoot(upload);
if (Document* responseDocument = impl().optionalResponseXML())
visitor.addOpaqueRoot(responseDocument);
if (ArrayBuffer* responseArrayBuffer = impl().optionalResponseArrayBuffer())
visitor.addOpaqueRoot(responseArrayBuffer);
if (Blob* responseBlob = impl().optionalResponseBlob())
visitor.addOpaqueRoot(responseBlob);
}
示例8: visitChildren
void JSWorkerContext::visitChildren(SlotVisitor& visitor)
{
ASSERT_GC_OBJECT_INHERITS(this, &s_info);
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(visitor);
if (WorkerLocation* location = impl()->optionalLocation())
visitor.addOpaqueRoot(location);
if (WorkerNavigator* navigator = impl()->optionalNavigator())
visitor.addOpaqueRoot(navigator);
impl()->visitJSEventListeners(visitor);
}
示例9: visitAdditionalChildren
void JSWorkerGlobalScope::visitAdditionalChildren(SlotVisitor& visitor)
{
if (auto* location = wrapped().optionalLocation())
visitor.addOpaqueRoot(location);
if (auto* navigator = wrapped().optionalNavigator())
visitor.addOpaqueRoot(navigator);
ScriptExecutionContext& context = wrapped();
visitor.addOpaqueRoot(&context);
// Normally JSEventTargetCustom.cpp's JSEventTarget::visitAdditionalChildren() would call this. But
// even though WorkerGlobalScope is an EventTarget, JSWorkerGlobalScope does not subclass
// JSEventTarget, so we need to do this here.
wrapped().visitJSEventListeners(visitor);
}
示例10: visitChildren
void JSMessageChannel::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSMessageChannel* thisObject = jsCast<JSMessageChannel*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(thisObject, visitor);
if (MessagePort* port = thisObject->m_impl->port1())
visitor.addOpaqueRoot(port);
if (MessagePort* port = thisObject->m_impl->port2())
visitor.addOpaqueRoot(port);
}
示例11: visitChildren
void JSWorkerGlobalScope::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSWorkerGlobalScope* thisObject = jsCast<JSWorkerGlobalScope*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(thisObject, visitor);
if (WorkerLocation* location = thisObject->impl()->optionalLocation())
visitor.addOpaqueRoot(location);
if (WorkerNavigator* navigator = thisObject->impl()->optionalNavigator())
visitor.addOpaqueRoot(navigator);
thisObject->impl()->visitJSEventListeners(visitor);
}
示例12: visitChildren
void JSTreeWalker::visitChildren(SlotVisitor& visitor)
{
Base::visitChildren(visitor);
if (NodeFilter* filter = m_impl->filter())
visitor.addOpaqueRoot(filter);
}
示例13: visitChildren
void JSCSSRule::visitChildren(SlotVisitor& visitor)
{
ASSERT_GC_OBJECT_INHERITS(this, &s_info);
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(visitor);
visitor.addOpaqueRoot(root(impl()));
}
示例14: visitChildren
void JSStyleSheet::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSStyleSheet* thisObject = jsCast<JSStyleSheet*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(thisObject, visitor);
visitor.addOpaqueRoot(root(&thisObject->impl()));
}
示例15: visitChildren
void JSWebGLRenderingContext::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSWebGLRenderingContext* thisObject = static_cast<JSWebGLRenderingContext*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(thisObject, visitor);
visitor.addOpaqueRoot(thisObject->impl());
}