summaryrefslogtreecommitdiffstats
path: root/compiler/dex/dex_to_dex_compiler.cc
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-02-13 19:23:55 -0800
committerAndreas Gampe <agampe@google.com>2015-02-18 16:50:22 -0800
commitab1eb0d1d047e3478ebb891e5259d2f1d1dd78bd (patch)
treea2d211ec81294adab2981d0179c8f04be3e8c8c4 /compiler/dex/dex_to_dex_compiler.cc
parent6e27f82193a8f54cd8ecdc8fb2c4c1adadafbaf4 (diff)
downloadandroid_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/dex/dex_to_dex_compiler.cc')
-rw-r--r--compiler/dex/dex_to_dex_compiler.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/dex/dex_to_dex_compiler.cc b/compiler/dex/dex_to_dex_compiler.cc
index f7968c225a..7e916bee4a 100644
--- a/compiler/dex/dex_to_dex_compiler.cc
+++ b/compiler/dex/dex_to_dex_compiler.cc
@@ -238,7 +238,7 @@ void DexCompiler::CompileInstanceFieldAccess(Instruction* inst,
bool is_volatile;
bool fast_path = driver_.ComputeInstanceFieldInfo(field_idx, &unit_, is_put,
&field_offset, &is_volatile);
- if (fast_path && !is_volatile && IsUint(16, field_offset.Int32Value())) {
+ if (fast_path && !is_volatile && IsUint<16>(field_offset.Int32Value())) {
VLOG(compiler) << "Quickening " << Instruction::Name(inst->Opcode())
<< " to " << Instruction::Name(new_opcode)
<< " by replacing field index " << field_idx
@@ -274,7 +274,7 @@ void DexCompiler::CompileInvokeVirtual(Instruction* inst,
&target_method, &vtable_idx,
&direct_code, &direct_method);
if (fast_path && original_invoke_type == invoke_type) {
- if (vtable_idx >= 0 && IsUint(16, vtable_idx)) {
+ if (vtable_idx >= 0 && IsUint<16>(vtable_idx)) {
VLOG(compiler) << "Quickening " << Instruction::Name(inst->Opcode())
<< "(" << PrettyMethod(method_idx, GetDexFile(), true) << ")"
<< " to " << Instruction::Name(new_opcode)