Stub to capture method entry/exit.
Added stubs to allow traceview to do method tracing. Currently only
outputs to logcat, and a later change will generate the proper log file.
Change-Id: Icaafc50e2eaf042ddc4d882011f7e8121bdd8b1c
diff --git a/src/stack.cc b/src/stack.cc
index 9944ec3..0232572 100644
--- a/src/stack.cc
+++ b/src/stack.cc
@@ -48,6 +48,11 @@
return *reinterpret_cast<uintptr_t*>(pc_addr);
}
+void Frame::SetReturnPC(uintptr_t pc) {
+ byte* pc_addr = reinterpret_cast<byte*>(sp_) + GetMethod()->GetReturnPcOffsetInBytes();
+ *reinterpret_cast<uintptr_t*>(pc_addr) = pc;
+}
+
uint32_t Frame::GetVReg(const DexFile::CodeItem* code_item, uint32_t core_spills,
uint32_t fp_spills, size_t frame_size, int vreg) const {
int offset = oatVRegOffset(code_item, core_spills, fp_spills, frame_size, vreg);