summaryrefslogtreecommitdiffstats
path: root/compiler/dex/quick/arm/assemble_arm.cc
diff options
context:
space:
mode:
authorDavid Srbecky <dsrbecky@google.com>2015-03-30 14:21:42 +0100
committerDavid Srbecky <dsrbecky@google.com>2015-04-01 12:57:10 +0100
commit6f7158927fee233255f8e96719c374694b10cad3 (patch)
tree518cef41f4cd9c3119879eb463aa4b67af5f6ff8 /compiler/dex/quick/arm/assemble_arm.cc
parentef3456f872539df65c4c88ca346713f74366d803 (diff)
downloadart-6f7158927fee233255f8e96719c374694b10cad3.tar.gz
art-6f7158927fee233255f8e96719c374694b10cad3.tar.bz2
art-6f7158927fee233255f8e96719c374694b10cad3.zip
Write .debug_line section using the new DWARF library.
Also simplify dex to java mapping and handle mapping in prologues and epilogues. Change-Id: I410f06024580f2a8788f2c93fe9bca132805029a
Diffstat (limited to 'compiler/dex/quick/arm/assemble_arm.cc')
-rw-r--r--compiler/dex/quick/arm/assemble_arm.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/dex/quick/arm/assemble_arm.cc b/compiler/dex/quick/arm/assemble_arm.cc
index 3e69878846..c5ac4c1508 100644
--- a/compiler/dex/quick/arm/assemble_arm.cc
+++ b/compiler/dex/quick/arm/assemble_arm.cc
@@ -1083,7 +1083,9 @@ void ArmMir2Lir::InsertFixupBefore(LIR* prev_lir, LIR* orig_lir, LIR* new_lir) {
#define PADDING_MOV_R5_R5 0x1C2D
uint8_t* ArmMir2Lir::EncodeLIRs(uint8_t* write_pos, LIR* lir) {
+ uint8_t* const write_buffer = write_pos;
for (; lir != NULL; lir = NEXT_LIR(lir)) {
+ lir->offset = (write_pos - write_buffer);
if (!lir->flags.is_nop) {
int opcode = lir->opcode;
if (IsPseudoLirOp(opcode)) {