本文整理汇总了C++中COMPILE_ASSERT函数的典型用法代码示例。如果您正苦于以下问题:C++ COMPILE_ASSERT函数的具体用法?C++ COMPILE_ASSERT怎么用?C++ COMPILE_ASSERT使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了COMPILE_ASSERT函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ASSERT_GC_OBJECT_INHERITS
void RegExpConstructor::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
RegExpConstructor* thisObject = jsCast<RegExpConstructor*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(thisObject, visitor);
thisObject->m_cachedResult.visitChildren(visitor);
}
示例2: ASSERT_GC_OBJECT_INHERITS
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);
}
示例3: ASSERT_GC_OBJECT_INHERITS
void JSDOMWindowShell::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSDOMWindowShell* thisObject = static_cast<JSDOMWindowShell*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(thisObject, visitor);
if (thisObject->m_window)
visitor.append(&thisObject->m_window);
}
示例4: ASSERT_GC_OBJECT_INHERITS
void DebuggerActivation::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
DebuggerActivation* thisObject = jsCast<DebuggerActivation*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
JSObject::visitChildren(thisObject, visitor);
visitor.append(&thisObject->m_activation);
}
示例5: ASSERT_GC_OBJECT_INHERITS
void UnlinkedProgramCodeBlock::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
UnlinkedProgramCodeBlock* thisObject = jsCast<UnlinkedProgramCodeBlock*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(thisObject, visitor);
for (size_t i = 0, end = thisObject->m_functionDeclarations.size(); i != end; i++)
visitor.append(&thisObject->m_functionDeclarations[i].second);
}
示例6: ASSERT_GC_OBJECT_INHERITS
void ProgramExecutable::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
ProgramExecutable* thisObject = static_cast<ProgramExecutable*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
ScriptExecutable::visitChildren(thisObject, visitor);
if (thisObject->m_programCodeBlock)
thisObject->m_programCodeBlock->visitAggregate(visitor);
}
示例7: sec_rom_info_init
void sec_rom_info_init (void)
{
COMPILE_ASSERT(AND_ROM_INFO_SIZE == sizeof(AND_ROMINFO_T));
SMSG("[%s] 'v%d','0x%x','0x%x','0x%x','0x%x'\n",
MOD, g_ROM_INFO.m_rom_info_ver,
g_ROM_INFO.m_sec_cfg_offset,
g_ROM_INFO.m_sec_cfg_length,
g_ROM_INFO.m_sec_ro_offset,
g_ROM_INFO.m_sec_ro_length);
}
示例8: ASSERT_GC_OBJECT_INHERITS
void JSWrapperObject::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSWrapperObject* thisObject = jsCast<JSWrapperObject*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
JSObject::visitChildren(thisObject, visitor);
visitor.append(&thisObject->m_internalValue);
}
示例9: ASSERT_GC_OBJECT_INHERITS
void JSSharedWorker::visitChildren(SlotVisitor& visitor)
{
ASSERT_GC_OBJECT_INHERITS(this, &s_info);
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(visitor);
if (MessagePort* port = impl()->port())
visitor.addOpaqueRoot(port);
}
示例10: ASSERT_GC_OBJECT_INHERITS
void JSNameScope::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSNameScope* thisObject = jsCast<JSNameScope*>(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_registerStore);
}
示例11: ASSERT_GC_OBJECT_INHERITS
void JSSetIterator::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSSetIterator* thisObject = jsCast<JSSetIterator*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(thisObject, visitor);
visitor.append(&thisObject->m_iteratedObjectData);
}
示例12: ASSERT_GC_OBJECT_INHERITS
void JSCanvasRenderingContext::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSCanvasRenderingContext* thisObject = jsCast<JSCanvasRenderingContext*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(thisObject, visitor);
visitor.addOpaqueRoot(root(thisObject->impl()->canvas()));
}
示例13: ASSERT_GC_OBJECT_INHERITS
void RegExpObject::visitChildren(SlotVisitor& visitor)
{
ASSERT_GC_OBJECT_INHERITS(this, &s_info);
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(visitor);
if (d->regExp)
visitor.append(&d->regExp);
if (UNLIKELY(!d->lastIndex.get().isInt32()))
visitor.append(&d->lastIndex);
}
示例14: ASSERT_GC_OBJECT_INHERITS
void JSSharedWorker::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSSharedWorker* thisObject = jsCast<JSSharedWorker*>(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->impl()->port())
visitor.addOpaqueRoot(port);
}
示例15: ASSERT_GC_OBJECT_INHERITS
void JSTreeWalker::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSTreeWalker* thisObject = jsCast<JSTreeWalker*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(thisObject, visitor);
if (NodeFilter* filter = thisObject->m_impl->filter())
visitor.addOpaqueRoot(filter);
}