commit | 1cf95287364948689f6a1a320567acd7728e94a3 | [log] [tgz] |
---|---|---|
author | Nicolas Geoffray <ngeoffray@google.com> | Fri Dec 12 19:22:03 2014 +0000 |
committer | Nicolas Geoffray <ngeoffray@google.com> | Thu Jan 29 10:52:14 2015 +0000 |
tree | 70a8b60c768894d635cf63b0a480baa5073d2bed | |
parent | 4a50662eeaa0b1a26be66e7584fb765151dabc59 [diff] [blame] |
Small optimization for recursive calls: avoid dex cache. Change-Id: I044757a2f06e535cdc1480c4fc8182b89635baf6
diff --git a/compiler/utils/x86/assembler_x86.cc b/compiler/utils/x86/assembler_x86.cc index 1f0dba5..03744e4 100644 --- a/compiler/utils/x86/assembler_x86.cc +++ b/compiler/utils/x86/assembler_x86.cc
@@ -51,7 +51,8 @@ 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); }