From a5b3024aed77a8204d5fb48ba7f763fb8c60fa76 Mon Sep 17 00:00:00 2001 From: Bill Buzbee Date: Fri, 28 Sep 2012 07:19:44 -0700 Subject: Split dex_pc<->native_pc mapping table First of 2 related CLs - this one moves to a split table, a future CL will compress the table to save image space. The current MappingTable mixes two flavors of entries: dex->pc and pc(return address)->dex. The problem is that we can have two entries with the same native pc address but two different dex pcs. The reason is that when we go from native pc to dex, the native pc is actually the return address from the previous call, whereas when we go from dex to native pc, the mapping refers to the first native instruction of the sequence. Previously, the first entry in the mapping table was the number of subsequent entries. That will remain the same, but now the second entry will be a count of the number of entries in the pc->dex section of the table. The difference between the two counts gives us the number of entries in the following dex->pc section. Change-Id: Ibadb96cb50bf1f93e079dff3832130b9f9782723 --- src/compiler/codegen/MethodCodegenDriver.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler/codegen/MethodCodegenDriver.cc') diff --git a/src/compiler/codegen/MethodCodegenDriver.cc b/src/compiler/codegen/MethodCodegenDriver.cc index 7227487db9..3a80d1063c 100644 --- a/src/compiler/codegen/MethodCodegenDriver.cc +++ b/src/compiler/codegen/MethodCodegenDriver.cc @@ -870,9 +870,9 @@ bool methodBlockCodeGen(CompilationUnit* cUnit, BasicBlock* bb) LIR* headLIR = NULL; - /* If this is a catch block, mark the beginning as a safepoint */ + /* If this is a catch block, export the start address */ if (bb->catchEntry) { - headLIR = newLIR0(cUnit, kPseudoSafepointPC); + headLIR = newLIR0(cUnit, kPseudoExportedPC); } /* Free temp registers and reset redundant store tracking */ -- cgit v1.2.3-59-g8ed1b