Reviewers: ulan, jochen,
Description:
ARM64: Fix disassembly of branch targets.
Please review this at https://codereview.chromium.org/225743004/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+1, -2 lines):
M src/arm64/disasm-arm64.cc
Index: src/arm64/disasm-arm64.cc
diff --git a/src/arm64/disasm-arm64.cc b/src/arm64/disasm-arm64.cc
index
ed3e928796bde139229ac22ff5c7f8476b65bd6a..9886d20d26e2af7124ca5e97f25fd24885c025c8
100644
--- a/src/arm64/disasm-arm64.cc
+++ b/src/arm64/disasm-arm64.cc
@@ -1632,10 +1632,9 @@ int
Disassembler::SubstituteBranchTargetField(Instruction* instr,
offset <<= kInstructionSizeLog2;
char sign = '+';
if (offset < 0) {
- offset = -offset;
sign = '-';
}
- AppendToOutput("#%c0x%" PRIx64 " (addr %p)", sign, offset,
+ AppendToOutput("#%c0x%" PRIx64 " (addr %p)", sign, Abs(offset),
instr->InstructionAtOffset(offset),
Instruction::NO_CHECK);
return 8;
}
--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.