Change FrameSize to FrameSizeInBytes.
Avoid confusion that it's in words.
Change-Id: Ic7bfa3e00eec4ba49a4abf351913625e33529846
diff --git a/src/thread.cc b/src/thread.cc
index 3284625..d730442 100644
--- a/src/thread.cc
+++ b/src/thread.cc
@@ -103,19 +103,19 @@
void Frame::Next() {
byte* next_sp = reinterpret_cast<byte*>(sp_) +
- GetMethod()->GetFrameSize();
+ GetMethod()->GetFrameSizeInBytes();
sp_ = reinterpret_cast<const Method**>(next_sp);
}
void* Frame::GetPC() const {
byte* pc_addr = reinterpret_cast<byte*>(sp_) +
- GetMethod()->GetReturnPcOffset();
+ GetMethod()->GetReturnPcOffsetInBytes();
return reinterpret_cast<void*>(pc_addr);
}
const Method* Frame::NextMethod() const {
byte* next_sp = reinterpret_cast<byte*>(sp_) +
- GetMethod()->GetFrameSize();
+ GetMethod()->GetFrameSizeInBytes();
return reinterpret_cast<const Method*>(next_sp);
}