diff options
author | Andreas Gampe <agampe@google.com> | 2015-02-13 19:23:55 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-02-18 16:50:22 -0800 |
commit | ab1eb0d1d047e3478ebb891e5259d2f1d1dd78bd (patch) | |
tree | a2d211ec81294adab2981d0179c8f04be3e8c8c4 /compiler/utils/x86/assembler_x86.cc | |
parent | 6e27f82193a8f54cd8ecdc8fb2c4c1adadafbaf4 (diff) | |
download | android_art-ab1eb0d1d047e3478ebb891e5259d2f1d1dd78bd.tar.gz android_art-ab1eb0d1d047e3478ebb891e5259d2f1d1dd78bd.tar.bz2 android_art-ab1eb0d1d047e3478ebb891e5259d2f1d1dd78bd.zip |
ART: Templatize IsInt & IsUint
Ensure that things are used correctly.
Change-Id: I76f082b32dcee28bbfb4c519daa401ac595873b3
Diffstat (limited to 'compiler/utils/x86/assembler_x86.cc')
-rw-r--r-- | compiler/utils/x86/assembler_x86.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/utils/x86/assembler_x86.cc b/compiler/utils/x86/assembler_x86.cc index 03744e4149..8f4208b417 100644 --- a/compiler/utils/x86/assembler_x86.cc +++ b/compiler/utils/x86/assembler_x86.cc @@ -1290,7 +1290,7 @@ void X86Assembler::j(Condition condition, Label* label) { static const int kLongSize = 6; int offset = label->Position() - buffer_.Size(); CHECK_LE(offset, 0); - if (IsInt(8, offset - kShortSize)) { + if (IsInt<8>(offset - kShortSize)) { EmitUint8(0x70 + condition); EmitUint8((offset - kShortSize) & 0xFF); } else { @@ -1325,7 +1325,7 @@ void X86Assembler::jmp(Label* label) { static const int kLongSize = 5; int offset = label->Position() - buffer_.Size(); CHECK_LE(offset, 0); - if (IsInt(8, offset - kShortSize)) { + if (IsInt<8>(offset - kShortSize)) { EmitUint8(0xEB); EmitUint8((offset - kShortSize) & 0xFF); } else { |