本文整理汇总了C++中SlotVisitor::append方法的典型用法代码示例。如果您正苦于以下问题:C++ SlotVisitor::append方法的具体用法?C++ SlotVisitor::append怎么用?C++ SlotVisitor::append使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SlotVisitor
的用法示例。
在下文中一共展示了SlotVisitor::append方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: visitChildren
void COMMethodCall::visitChildren(JSCell* cell, SlotVisitor& slotVisitor) {
Base::visitChildren(cell, slotVisitor);
COMMethodCall* call = jsCast<COMMethodCall*>(cell);
slotVisitor.append(call->_parameterCells.begin(), call->_parameterCells.end());
slotVisitor.append(&call->_returnType);
}
示例2: visitChildren
void JSTestSerializedScriptValueInterface::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
auto* thisObject = jsCast<JSTestSerializedScriptValueInterface*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
Base::visitChildren(thisObject, visitor);
visitor.append(&thisObject->m_cachedValue);
visitor.append(&thisObject->m_cachedReadonlyValue);
}
示例3: visitChildren
void JSMapIterator::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSMapIterator* thisObject = jsCast<JSMapIterator*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
Base::visitChildren(thisObject, visitor);
visitor.append(&thisObject->m_map);
visitor.append(&thisObject->m_iter);
}
示例4: visitChildren
void RegExpObject::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
RegExpObject* thisObject = jsCast<RegExpObject*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
Base::visitChildren(thisObject, visitor);
visitor.append(thisObject->m_regExp);
visitor.append(thisObject->m_lastIndex);
}
示例5: visitChildren
void UnlinkedFunctionExecutable::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
UnlinkedFunctionExecutable* thisObject = jsCast<UnlinkedFunctionExecutable*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
Base::visitChildren(thisObject, visitor);
visitor.append(&thisObject->m_unlinkedCodeBlockForCall);
visitor.append(&thisObject->m_unlinkedCodeBlockForConstruct);
}
示例6: visitChildren
void JSPropertyNameEnumerator::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
Base::visitChildren(cell, visitor);
JSPropertyNameEnumerator* thisObject = jsCast<JSPropertyNameEnumerator*>(cell);
for (unsigned i = 0; i < thisObject->m_propertyNames.size(); ++i)
visitor.append(&thisObject->m_propertyNames[i]);
visitor.append(&thisObject->m_prototypeChain);
}
示例7: visitFibers
void JSRopeString::visitFibers(SlotVisitor& visitor)
{
if (isSubstring()) {
visitor.append(substringBase());
return;
}
for (size_t i = 0; i < s_maxInternalRopeLength && fiber(i); ++i)
visitor.append(fiber(i));
}
示例8: visitChildren
void JSFunction::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSFunction* thisObject = jsCast<JSFunction*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
Base::visitChildren(thisObject, visitor);
visitor.append(&thisObject->m_executable);
if (thisObject->m_rareData)
visitor.append(&thisObject->m_rareData);
}
示例9: visitChildren
void ModuleProgramExecutable::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
ModuleProgramExecutable* thisObject = jsCast<ModuleProgramExecutable*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
ScriptExecutable::visitChildren(thisObject, visitor);
visitor.append(thisObject->m_unlinkedModuleProgramCodeBlock);
visitor.append(thisObject->m_moduleEnvironmentSymbolTable);
if (ModuleProgramCodeBlock* moduleProgramCodeBlock = thisObject->m_moduleProgramCodeBlock.get())
moduleProgramCodeBlock->visitWeakly(visitor);
}
示例10: visitChildren
void JSTestSerializedScriptValueInterface::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSTestSerializedScriptValueInterface* thisObject = jsCast<JSTestSerializedScriptValueInterface*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(thisObject, visitor);
visitor.append(&thisObject->m_cachedValue);
visitor.append(&thisObject->m_cachedReadonlyValue);
}
开发者ID:166MMX,项目名称:openjdk.java.net-openjfx-8u40-rt,代码行数:10,代码来源:JSTestSerializedScriptValueInterface.cpp
示例11: visitChildren
void JSBoundFunction::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSBoundFunction* thisObject = jsCast<JSBoundFunction*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
Base::visitChildren(thisObject, visitor);
visitor.append(&thisObject->m_targetFunction);
visitor.append(&thisObject->m_boundThis);
visitor.append(&thisObject->m_boundArgs);
}
示例12: visitChildren
void StructureRareData::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
StructureRareData* thisObject = jsCast<StructureRareData*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
JSCell::visitChildren(thisObject, visitor);
visitor.append(&thisObject->m_previous);
visitor.append(&thisObject->m_objectToStringValue);
visitor.append(&thisObject->m_cachedPropertyNameEnumerator);
}
示例13: visitChildren
void JSFunction::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSFunction* thisObject = jsCast<JSFunction*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(thisObject, visitor);
visitor.append(&thisObject->m_scope);
visitor.append(&thisObject->m_executable);
}
示例14: visitChildren
void JSPromiseDeferred::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSPromiseDeferred* thisObject = jsCast<JSPromiseDeferred*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
Base::visitChildren(thisObject, visitor);
visitor.append(&thisObject->m_promise);
visitor.append(&thisObject->m_resolve);
visitor.append(&thisObject->m_reject);
}
示例15: visitChildren
void SymbolTable::visitChildren(JSCell* thisCell, SlotVisitor& visitor)
{
SymbolTable* thisSymbolTable = jsCast<SymbolTable*>(thisCell);
visitor.append(&thisSymbolTable->m_arguments);
visitor.append(&thisSymbolTable->m_singletonScope);
// Save some memory. This is O(n) to rebuild and we do so on the fly.
ConcurrentJITLocker locker(thisSymbolTable->m_lock);
thisSymbolTable->m_localToEntry = nullptr;
}