review code fix

Signed-off-by: surpassgoodchao <surpassgoodchao@qq.com>
This commit is contained in:
surpassgoodchao 2021-10-12 12:55:04 +08:00
parent d15fafc5ac
commit 1c36b50587
2 changed files with 3 additions and 1 deletions

View File

@ -1139,6 +1139,7 @@ void DoSafepoint()
} else if (info.first == FP_DWARF_REG_NUM) {
address = reinterpret_cast<uintptr_t **>(reinterpret_cast<uint8_t *>(rbp) + info.second);
}
// print ref and vlue for debug
std::cout << std::hex << "ref addr:" << address;
std::cout << " value:" << *address;
std::cout << " *value :" << **address << std::endl;

View File

@ -57,7 +57,7 @@ public:
thread_(thread)
{
thread_->SetCurrentSPFrame(newFp);
// print newfp and type for debug
std::cout << "CallRuntimeTrampolinesScope newFp: " << newFp << " oldRbp_ : " << oldRbp_
<< " thread_->fp:" << thread_->GetCurrentSPFrame() <<std::endl;
FrameType type = *(reinterpret_cast<FrameType*>(
@ -66,6 +66,7 @@ public:
}
~CallRuntimeTrampolinesScope()
{
// print oldfp and type for debug
std::cout << "~CallRuntimeTrampolinesScope oldRbp_: " << oldRbp_ <<
" thread_->fp:" << thread_->GetCurrentSPFrame() << std::endl;
FrameType type = *(reinterpret_cast<FrameType*>(