summaryrefslogtreecommitdiffstats
path: root/compiler/utils/x86_64
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2014-12-12 19:22:03 +0000
committerNicolas Geoffray <ngeoffray@google.com>2015-01-29 10:52:14 +0000
commit1cf95287364948689f6a1a320567acd7728e94a3 (patch)
tree70a8b60c768894d635cf63b0a480baa5073d2bed /compiler/utils/x86_64
parent4a50662eeaa0b1a26be66e7584fb765151dabc59 (diff)
downloadart-1cf95287364948689f6a1a320567acd7728e94a3.zip
art-1cf95287364948689f6a1a320567acd7728e94a3.tar.gz
art-1cf95287364948689f6a1a320567acd7728e94a3.tar.bz2
Small optimization for recursive calls: avoid dex cache.
Change-Id: I044757a2f06e535cdc1480c4fc8182b89635baf6
Diffstat (limited to 'compiler/utils/x86_64')
-rw-r--r--compiler/utils/x86_64/assembler_x86_64.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/utils/x86_64/assembler_x86_64.cc b/compiler/utils/x86_64/assembler_x86_64.cc
index 5afa603..7e8e769 100644
--- a/compiler/utils/x86_64/assembler_x86_64.cc
+++ b/compiler/utils/x86_64/assembler_x86_64.cc
@@ -57,7 +57,8 @@ void X86_64Assembler::call(Label* label) {
AssemblerBuffer::EnsureCapacity ensured(&buffer_);
EmitUint8(0xE8);
static const int kSize = 5;
- EmitLabel(label, kSize);
+ // Offset by one because we already have emitted the opcode.
+ EmitLabel(label, kSize - 1);
}
void X86_64Assembler::pushq(CpuRegister reg) {