本文整理汇总了C++中COMPILE_ASSERT函数的典型用法代码示例。如果您正苦于以下问题:C++ COMPILE_ASSERT函数的具体用法?C++ COMPILE_ASSERT怎么用?C++ COMPILE_ASSERT使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了COMPILE_ASSERT函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
开发者ID:dog-god,项目名称:iptv,代码行数:10,代码来源:RegExpConstructor.cpp
示例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);
}
开发者ID:yoavweiss,项目名称:RespImg-WebKit,代码行数:10,代码来源:JSTestSerializedScriptValueInterface.cpp
示例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);
}
开发者ID:vizcount,项目名称:work,代码行数:10,代码来源:JSDOMWindowShell.cpp
示例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);
}
开发者ID:KnightSwarm,项目名称:WebKitTi,代码行数:10,代码来源:DebuggerActivation.cpp
示例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);
}
开发者ID:MYSHLIFE,项目名称:webkit,代码行数:10,代码来源:UnlinkedCodeBlock.cpp
示例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);
}
开发者ID:vizcount,项目名称:work,代码行数:10,代码来源:Executable.cpp
示例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);
}
开发者ID:zunaid321,项目名称:ThunderStrike,代码行数:10,代码来源:sec_rom_info.c
示例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);
}
开发者ID:166MMX,项目名称:openjdk.java.net-openjfx-8u40-rt,代码行数:10,代码来源:JSWrapperObject.cpp
示例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);
}
开发者ID:mulriple,项目名称:Webkit-Projects,代码行数:10,代码来源:JSSharedWorkerCustom.cpp
示例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);
}
开发者ID:SchleunigerAG,项目名称:WinEC7_Qt5.3.1_Fixes,代码行数:10,代码来源:JSNameScope.cpp
示例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);
}
开发者ID:604339917,项目名称:JavaScriptCore-iOS-1,代码行数:10,代码来源:JSSetIterator.cpp
示例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()));
}
开发者ID:166MMX,项目名称:openjdk.java.net-openjfx-8u40-rt,代码行数:10,代码来源:JSCanvasRenderingContextCustom.cpp
示例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);
}
开发者ID:emuikernel,项目名称:EAWebKit,代码行数:11,代码来源:RegExpObject.cpp
示例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);
}
开发者ID:Moondee,项目名称:Artemis,代码行数:11,代码来源:JSSharedWorkerCustom.cpp
示例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);
}
开发者ID:CannedFish,项目名称:webkitgtk,代码行数:11,代码来源:JSTreeWalkerCustom.cpp
示例16: ASSERT_GC_OBJECT_INHERITS
void FunctionExecutable::visitChildren(SlotVisitor& visitor)
{
ASSERT_GC_OBJECT_INHERITS(this, &s_info);
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(structure()->typeInfo().overridesVisitChildren());
ScriptExecutable::visitChildren(visitor);
if (m_codeBlockForCall)
m_codeBlockForCall->visitAggregate(visitor);
if (m_codeBlockForConstruct)
m_codeBlockForConstruct->visitAggregate(visitor);
}
开发者ID:mulriple,项目名称:Webkit-Projects,代码行数:11,代码来源:Executable.cpp
示例17: ASSERT_GC_OBJECT_INHERITS
void JSSVGElementInstance::visitChildren(JSC::JSCell* cell, JSC::SlotVisitor& visitor)
{
JSSVGElementInstance* thisObject = JSC::jsCast<JSSVGElementInstance*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
COMPILE_ASSERT(StructureFlags & JSC::OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
// Skip JSEventTarget::visitChildren because event listener registration is
// forwarded to the corresponding element.
JSEventTarget::Base::visitChildren(thisObject, visitor);
visitor.addOpaqueRoot(root(thisObject->impl().correspondingElement()));
}
开发者ID:boska,项目名称:webkit,代码行数:11,代码来源:JSSVGElementInstanceCustom.cpp
示例18: ASSERT_GC_OBJECT_INHERITS
void UnlinkedFunctionExecutable::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
UnlinkedFunctionExecutable* thisObject = jsCast<UnlinkedFunctionExecutable*>(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_nameValue);
visitor.append(&thisObject->m_symbolTableForCall);
visitor.append(&thisObject->m_symbolTableForConstruct);
}
开发者ID:jiezh,项目名称:h5vcc,代码行数:11,代码来源:UnlinkedCodeBlock.cpp
示例19: ASSERT_GC_OBJECT_INHERITS
void JSVideoTrack::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
JSVideoTrack* jsVideoTrack = jsCast<JSVideoTrack*>(cell);
ASSERT_GC_OBJECT_INHERITS(jsVideoTrack, info());
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(jsVideoTrack->structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(jsVideoTrack, visitor);
VideoTrack& videoTrack = jsVideoTrack->impl();
visitor.addOpaqueRoot(root(&videoTrack));
}
开发者ID:kodybrown,项目名称:webkit,代码行数:11,代码来源:JSVideoTrackCustom.cpp
示例20: ASSERT_GC_OBJECT_INHERITS
void RegExpObject::visitChildren(JSCell* cell, SlotVisitor& visitor)
{
RegExpObject* thisObject = static_cast<RegExpObject*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, &s_info);
COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
Base::visitChildren(thisObject, visitor);
if (thisObject->d->regExp)
visitor.append(&thisObject->d->regExp);
if (UNLIKELY(!thisObject->d->lastIndex.get().isInt32()))
visitor.append(&thisObject->d->lastIndex);
}
开发者ID:1833183060,项目名称:wke,代码行数:12,代码来源:RegExpObject.cpp
注:本文中的COMPILE_ASSERT函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论