本文整理汇总了C++中PrintStream类的典型用法代码示例。如果您正苦于以下问题:C++ PrintStream类的具体用法?C++ PrintStream怎么用?C++ PrintStream使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PrintStream类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dump
void CallLinkStatus::dump(PrintStream& out) const
{
if (!isSet()) {
out.print("Not Set");
return;
}
CommaPrinter comma;
if (m_isProved)
out.print(comma, "Statically Proved");
if (m_couldTakeSlowPath)
out.print(comma, "Could Take Slow Path");
if (m_callTarget)
out.print(comma, "Known target: ", m_callTarget);
if (m_executable)
out.print(comma, "Executable/CallHash: ", RawPointer(m_executable), "/", m_executable->hashFor(CodeForCall));
if (m_structure)
out.print(comma, "Structure: ", RawPointer(m_structure));
}
示例2: dump
void FloatSize::dump(PrintStream& out) const
{
out.printf("(%f x %f)", width(), height());
}
示例3: dumpSpeculation
void dumpSpeculation(PrintStream& out, SpeculatedType value)
{
if (value == SpecNone) {
out.print("None");
return;
}
StringPrintStream myOut;
bool isTop = true;
if ((value & SpecCell) == SpecCell)
myOut.print("Cell");
else {
if ((value & SpecObject) == SpecObject)
myOut.print("Object");
else {
if (value & SpecCellOther)
myOut.print("Othercell");
else
isTop = false;
if (value & SpecObjectOther)
myOut.print("Otherobj");
else
isTop = false;
if (value & SpecFinalObject)
myOut.print("Final");
else
isTop = false;
if (value & SpecArray)
myOut.print("Array");
else
isTop = false;
if (value & SpecInt8Array)
myOut.print("Int8array");
else
isTop = false;
if (value & SpecInt16Array)
myOut.print("Int16array");
else
isTop = false;
if (value & SpecInt32Array)
myOut.print("Int32array");
else
isTop = false;
if (value & SpecUint8Array)
myOut.print("Uint8array");
else
isTop = false;
if (value & SpecUint8ClampedArray)
myOut.print("Uint8clampedarray");
else
isTop = false;
if (value & SpecUint16Array)
myOut.print("Uint16array");
else
isTop = false;
if (value & SpecUint32Array)
myOut.print("Uint32array");
else
isTop = false;
if (value & SpecFloat32Array)
myOut.print("Float32array");
else
isTop = false;
if (value & SpecFloat64Array)
myOut.print("Float64array");
else
isTop = false;
if (value & SpecFunction)
myOut.print("Function");
else
isTop = false;
if (value & SpecArguments)
myOut.print("Arguments");
else
isTop = false;
if (value & SpecStringObject)
myOut.print("Stringobject");
else
isTop = false;
}
if ((value & SpecString) == SpecString)
myOut.print("String");
//.........这里部分代码省略.........
示例4: dumpForBacktrace
void JSValue::dumpForBacktrace(PrintStream& out) const
{
if (!*this)
out.print("<JSValue()>");
else if (isInt32())
out.printf("%d", asInt32());
else if (isDouble())
out.printf("%lf", asDouble());
else if (isCell()) {
if (asCell()->inherits(JSString::info())) {
JSString* string = jsCast<JSString*>(asCell());
const StringImpl* impl = string->tryGetValueImpl();
if (impl)
out.print("\"", impl, "\"");
else
out.print("(unresolved string)");
} else if (asCell()->inherits(Structure::info())) {
out.print("Structure[ ", asCell()->structure()->classInfo()->className);
#if USE(JSVALUE64)
out.print(" ID: ", asCell()->structureID());
#endif
out.print("]: ", RawPointer(asCell()));
} else {
out.print("Cell[", asCell()->structure()->classInfo()->className);
#if USE(JSVALUE64)
out.print(" ID: ", asCell()->structureID());
#endif
out.print("]: ", RawPointer(asCell()));
}
} else if (isTrue())
out.print("True");
else if (isFalse())
out.print("False");
else if (isNull())
out.print("Null");
else if (isUndefined())
out.print("Undefined");
else
out.print("INVALID");
}
示例5: dumpHeader
void Disassembler::dumpHeader(PrintStream& out, LinkBuffer& linkBuffer)
{
out.print("Generated DFG JIT code for ", CodeBlockWithJITType(m_graph.m_codeBlock, JITCode::DFGJIT), ", instruction count = ", m_graph.m_codeBlock->instructionCount(), ":\n");
out.print(" Optimized with execution counter = ", m_graph.m_profiledBlock->jitExecuteCounter(), "\n");
out.print(" Code at [", RawPointer(linkBuffer.debugAddress()), ", ", RawPointer(static_cast<char*>(linkBuffer.debugAddress()) + linkBuffer.size()), "):\n");
}
示例6: deepDumpImpl
void CheckSpecial::deepDumpImpl(PrintStream& out) const
{
out.print("B3::CheckValue lowered to ", m_checkKind, " with ", m_numCheckArgs, " args.");
}
示例7: dumpInContext
void OSREntryData::dumpInContext(PrintStream& out, DumpContext* context) const
{
out.print("bc#", m_bytecodeIndex, ", machine code offset = ", m_machineCodeOffset);
out.print(", stack rules = [");
auto printOperand = [&] (VirtualRegister reg) {
out.print(inContext(m_expectedValues.operand(reg), context), " (");
VirtualRegister toReg;
bool overwritten = false;
for (OSREntryReshuffling reshuffling : m_reshufflings) {
if (reg == VirtualRegister(reshuffling.fromOffset)) {
toReg = VirtualRegister(reshuffling.toOffset);
break;
}
if (reg == VirtualRegister(reshuffling.toOffset))
overwritten = true;
}
if (!overwritten && !toReg.isValid())
toReg = reg;
if (toReg.isValid()) {
if (toReg.isLocal() && !m_machineStackUsed.get(toReg.toLocal()))
out.print("ignored");
else
out.print("maps to ", toReg);
} else
out.print("overwritten");
if (reg.isLocal() && m_localsForcedDouble.get(reg.toLocal()))
out.print(", forced double");
if (reg.isLocal() && m_localsForcedAnyInt.get(reg.toLocal()))
out.print(", forced machine int");
out.print(")");
};
CommaPrinter comma;
for (size_t argumentIndex = m_expectedValues.numberOfArguments(); argumentIndex--;) {
out.print(comma, "arg", argumentIndex, ":");
printOperand(virtualRegisterForArgument(argumentIndex));
}
for (size_t localIndex = 0; localIndex < m_expectedValues.numberOfLocals(); ++localIndex) {
out.print(comma, "loc", localIndex, ":");
printOperand(virtualRegisterForLocal(localIndex));
}
out.print("], machine stack used = ", m_machineStackUsed);
}
示例8: printInternal
void printInternal(PrintStream& out, UseKind useKind)
{
switch (useKind) {
case UntypedUse:
out.print("Untyped");
return;
case Int32Use:
out.print("Int32");
return;
case KnownInt32Use:
out.print("KnownInt32");
return;
case Int52RepUse:
out.print("Int52Rep");
return;
case AnyIntUse:
out.print("AnyInt");
return;
case NumberUse:
out.print("Number");
return;
case RealNumberUse:
out.print("RealNumber");
return;
case DoubleRepUse:
out.print("DoubleRep");
return;
case DoubleRepRealUse:
out.print("DoubleRepReal");
return;
case DoubleRepAnyIntUse:
out.print("DoubleRepAnyInt");
return;
case BooleanUse:
out.print("Boolean");
return;
case KnownBooleanUse:
out.print("KnownBoolean");
return;
case CellUse:
out.print("Cell");
return;
case KnownCellUse:
out.print("KnownCell");
return;
case CellOrOtherUse:
out.print("CellOrOther");
return;
case ObjectUse:
out.print("Object");
return;
case ArrayUse:
out.print("Array");
return;
case FunctionUse:
out.print("Function");
return;
case FinalObjectUse:
out.print("FinalObject");
return;
case RegExpObjectUse:
out.print("RegExpObject");
return;
case ProxyObjectUse:
out.print("ProxyObject");
return;
case DerivedArrayUse:
out.print("DerivedArray");
return;
case MapObjectUse:
out.print("MapObjectUse");
return;
case SetObjectUse:
out.print("SetObjectUse");
return;
case ObjectOrOtherUse:
out.print("ObjectOrOther");
return;
case StringIdentUse:
out.print("StringIdent");
return;
case StringUse:
out.print("String");
return;
case StringOrOtherUse:
out.print("StringOrOther");
return;
case KnownStringUse:
out.print("KnownString");
return;
case KnownPrimitiveUse:
out.print("KnownPrimitive");
return;
case SymbolUse:
out.print("Symbol");
return;
case StringObjectUse:
out.print("StringObject");
return;
case StringOrStringObjectUse:
//.........这里部分代码省略.........
示例9: dumpMeta
void ArgumentRegValue::dumpMeta(CommaPrinter& comma, PrintStream& out) const
{
out.print(comma, m_reg);
}
示例10: RawPointer
void ShadowChicken::Frame::dump(PrintStream& out) const
{
out.print(
"{callee = ", RawPointer(callee), ", frame = ", RawPointer(frame), ", isTailDeleted = ",
isTailDeleted, "}");
}
示例11: printInternal
void printInternal(PrintStream& out, JSC::JITCode::JITType type)
{
out.print(JSC::JITCode::typeName(type));
}
示例12: dump
void FloatRect::dump(PrintStream& out) const
{
out.print(location(), " ", size());
}
示例13: dump
void AvailabilityMap::dump(PrintStream& out) const
{
out.print("{locals = ", m_locals, "; heap = ", mapDump(m_heap), "}");
}
示例14: dumpMeta
void ControlValue::dumpMeta(CommaPrinter& comma, PrintStream& out) const
{
for (FrequentedBlock successor : m_successors)
out.print(comma, successor);
}
示例15: dumpChildren
void StackmapValue::dumpChildren(CommaPrinter& comma, PrintStream& out) const
{
for (ConstrainedValue value : constrainedChildren())
out.print(comma, value);
}