Some follow-up fixes to r24322.
TBR=svenpanne@chromium.org Review URL: https://codereview.chromium.org/616843002 git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24328 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
d57e2222c3
commit
78e17cd6a2
@ -803,11 +803,11 @@ void RelocInfo::Print(Isolate* isolate, std::ostream& os) { // NOLINT
|
||||
} else if (rmode_ == EXTERNAL_REFERENCE) {
|
||||
ExternalReferenceEncoder ref_encoder(isolate);
|
||||
os << " (" << ref_encoder.NameOfAddress(target_reference()) << ") ("
|
||||
<< target_reference() << ")";
|
||||
<< static_cast<const void*>(target_reference()) << ")";
|
||||
} else if (IsCodeTarget(rmode_)) {
|
||||
Code* code = Code::GetCodeFromTargetAddress(target_address());
|
||||
os << " (" << Code::Kind2String(code->kind()) << ") (" << target_address()
|
||||
<< ")";
|
||||
os << " (" << Code::Kind2String(code->kind()) << ") ("
|
||||
<< static_cast<const void*>(target_address()) << ")";
|
||||
if (rmode_ == CODE_TARGET_WITH_ID) {
|
||||
os << " (id=" << static_cast<int>(data_) << ")";
|
||||
}
|
||||
|
@ -10913,7 +10913,7 @@ void Code::Disassemble(const char* name, std::ostream& os) { // NOLINT
|
||||
os << "Safepoints (size = " << table.size() << ")\n";
|
||||
for (unsigned i = 0; i < table.length(); i++) {
|
||||
unsigned pc_offset = table.GetPcOffset(i);
|
||||
os << (instruction_start() + pc_offset) << " ";
|
||||
os << static_cast<const void*>(instruction_start() + pc_offset) << " ";
|
||||
// TODO(svenpanne) Add some basic formatting to our streams.
|
||||
Vector<char> buf1 = Vector<char>::New(30);
|
||||
SNPrintF(buf1, "%4d", pc_offset);
|
||||
|
Loading…
Reference in New Issue
Block a user