本文整理汇总了C++中print_on函数的典型用法代码示例。如果您正苦于以下问题:C++ print_on函数的具体用法?C++ print_on怎么用?C++ print_on使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了print_on函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: start_bci
void MethodLiveness::BasicBlock::propagate(MethodLiveness *ml) {
// These set operations could be combined for efficiency if the
// performance of this analysis becomes an issue.
_entry.set_union(_normal_exit);
_entry.set_difference(_kill);
_entry.set_union(_gen);
// Note that we merge information from our exceptional successors
// just once, rather than at individual bytecodes.
_entry.set_union(_exception_exit);
if (TraceLivenessGen) {
tty->print_cr(" ** Visiting block at %d **", start_bci());
print_on(tty);
}
int i;
for (i=_normal_predecessors->length()-1; i>=0; i--) {
BasicBlock *block = _normal_predecessors->at(i);
if (block->merge_normal(_entry)) {
ml->work_list_add(block);
}
}
for (i=_exception_predecessors->length()-1; i>=0; i--) {
BasicBlock *block = _exception_predecessors->at(i);
if (block->merge_exception(_entry)) {
ml->work_list_add(block);
}
}
}
开发者ID:AllenWeb,项目名称:openjdk-1,代码行数:30,代码来源:methodLiveness.cpp
示例2: TRACE_NEVER
/* virtual */ void
base::print_on(std::wostream& wos) const
{
TRACE_NEVER("hugh::support::ostream::printable::base::print_on(std::wostream)");
std::ostringstream ostr;
print_on(ostr);
wos << string_to_wstring(ostr.str());
}
开发者ID:regnirpsj,项目名称:hugh-support,代码行数:11,代码来源:printable.cpp
示例3: verify_region_extra
bool HeapRegionSetBase::verify_region(HeapRegion* hr,
HeapRegionSetBase* expected_containing_set) {
const char* error_message = NULL;
if (!regions_humongous()) {
if (hr->isHumongous()) {
error_message = "the region should not be humongous";
}
} else {
if (!hr->isHumongous() || !hr->startsHumongous()) {
error_message = "the region should be 'starts humongous'";
}
}
if (!regions_empty()) {
if (hr->is_empty()) {
error_message = "the region should not be empty";
}
} else {
if (!hr->is_empty()) {
error_message = "the region should be empty";
}
}
#ifdef ASSERT
// The _containing_set field is only available when ASSERT is defined.
if (hr->containing_set() != expected_containing_set) {
error_message = "inconsistent containing set found";
}
#endif // ASSERT
const char* extra_error_message = verify_region_extra(hr);
if (extra_error_message != NULL) {
error_message = extra_error_message;
}
if (error_message != NULL) {
outputStream* out = tty;
out->cr();
out->print_cr("## [%s] %s", name(), error_message);
out->print_cr("## Offending Region: "PTR_FORMAT, hr);
out->print_cr(" "HR_FORMAT, HR_FORMAT_PARAMS(hr));
#ifdef ASSERT
out->print_cr(" containing set: "PTR_FORMAT, hr->containing_set());
#endif // ASSERT
out->print_cr("## Offending Region Set: "PTR_FORMAT, this);
print_on(out);
return false;
} else {
return true;
}
}
开发者ID:ericbbcc,项目名称:hotspot,代码行数:52,代码来源:heapRegionSet.cpp
示例4: GUARANTEE
void SourceAssembler::Label::global(Stream* s) {
char *cmd;
if (GenerateGNUCode) {
cmd = ".global";
} else {
cmd = "EXPORT";
}
GUARANTEE(_state == undefined, "bad label to make global");
s->print("\n\t%s\t", cmd);
print_on(s);
s->cr();
_state = exported;
}
开发者ID:sfsy1989,项目名称:j2me,代码行数:13,代码来源:SourceAssembler_arm.cpp
示例5: assert
void HeapRegion::set_zero_fill_state_work(ZeroFillState zfs) {
assert(ZF_mon->owned_by_self() ||
Universe::heap()->is_gc_active(),
"Must hold the lock or be a full GC to modify.");
#ifdef ASSERT
if (top() != bottom() && zfs != Allocated) {
ResourceMark rm;
stringStream region_str;
print_on(®ion_str);
assert(top() == bottom() || zfs == Allocated,
err_msg("Region must be empty, or we must be setting it to allocated. "
"_zfs=%d, zfs=%d, region: %s", _zfs, zfs, region_str.as_string()));
}
#endif
_zfs = zfs;
}
开发者ID:BaHbKaTX,项目名称:openjdk,代码行数:16,代码来源:heapRegion.cpp
示例6: switch
void SourceAssembler::Label::bind(Stream* s, bool is_global) {
switch(_state) {
case undefined: global(s); break;
case anonymous_unused: /* Fall through */
case anonymous_used: _state = anonymous_bound; break;
case anonymous_bound: SHOULD_NOT_REACH_HERE(); break;
default: break;
}
// start a new line if we are not at the beginning
if (s->position() > 0) {
s->cr();
}
GUARANTEE(s->position() == 0, "wrong label position");
print_on(s);
if (GenerateGNUCode) {
s->print(":");
} else {
if (is_global && !GenerateSDTCode) {
s->print(" PROC");
}
}
s->cr();
}
开发者ID:sfsy1989,项目名称:j2me,代码行数:24,代码来源:SourceAssembler_arm.cpp
示例7: print
void print() const { print_on(tty); }
开发者ID:AllenWeb,项目名称:jdk7u-hotspot,代码行数:1,代码来源:osThread.hpp
示例8: print_on
void G1PageBasedVirtualSpace::print() {
print_on(tty);
}
开发者ID:lmsf,项目名称:jdk9-dev,代码行数:3,代码来源:g1PageBasedVirtualSpace.cpp
示例9: print_on
void ConcurrentZFThread::print() const {
print_on(tty);
}
开发者ID:tetratec,项目名称:Runescape-Launcher,代码行数:3,代码来源:concurrentZFThread.cpp
示例10: print_on
void Field::p() {
print_on(tty);
}
开发者ID:jiangxilong,项目名称:yari,代码行数:3,代码来源:Field.cpp
示例11: print_on
char* oopDesc::print_string() {
stringStream st;
print_on(&st);
return st.as_string();
}
开发者ID:ismo1652,项目名称:jvmnotebook,代码行数:5,代码来源:oop.cpp
示例12: print_on
void AllocatedObj::print() const { print_on(tty); }
开发者ID:fatman2021,项目名称:myforthprocessor,代码行数:1,代码来源:allocation.cpp
示例13: print_on
void ParallelScavengeHeap::print() const { print_on(tty); }
开发者ID:ericbbcc,项目名称:hotspot,代码行数:1,代码来源:parallelScavengeHeap.cpp
示例14: print_on
void HeapRegion::print() const { print_on(gclog_or_tty); }
开发者ID:BaHbKaTX,项目名称:openjdk,代码行数:1,代码来源:heapRegion.cpp
示例15: print_on
void ScopeDesc::print_on(outputStream* st) const {
print_on(st, NULL);
}
开发者ID:4T-Shirt,项目名称:OpenJDK-Research,代码行数:3,代码来源:scopeDesc.cpp
示例16: print
static void print() { print_on(tty); }
开发者ID:arbeitspferde,项目名称:openjdk9-hotspot,代码行数:1,代码来源:jniHandles.hpp
示例17: print
// printing on default output stream
void print() { print_on(tty); }
开发者ID:4T-Shirt,项目名称:OpenJDK-Research,代码行数:2,代码来源:symbol.hpp
示例18: p
void p() {
print_on(tty);
}
开发者ID:sfsy1989,项目名称:j2me,代码行数:3,代码来源:SystemDictionary.hpp
示例19: print
inline void print() { print_on(tty); }
开发者ID:GregBowyer,项目名称:ManagedRuntimeInitiative,代码行数:1,代码来源:interpreter.hpp
示例20: print_on
void PSYoungGen::print() const { print_on(tty); }
开发者ID:641252154,项目名称:HotSpot-JVM-Linux-x86-Research,代码行数:1,代码来源:psYoungGen.cpp
注:本文中的print_on函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论