summaryrefslogtreecommitdiff
path: root/compiler/dex/frontend.cc
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2014-04-16 15:18:13 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-04-16 15:18:14 +0000
commitb94fae66dac14be955c68028447cdad84ee22bf9 (patch)
treec6af9a1d373b4f8763c9001b8e81c9ae772011ab /compiler/dex/frontend.cc
parent2faf284e072230d4fd447955fa72ac4d9a3b51a0 (diff)
parentaf13ad9fd18b6f75fe82e7995224c55654594f93 (diff)
Merge "Centralize instruction-set pointer-size, alignment, 64b-width code in instruction_set.h/cc"
Diffstat (limited to 'compiler/dex/frontend.cc')
-rw-r--r--compiler/dex/frontend.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/dex/frontend.cc b/compiler/dex/frontend.cc
index 201dc47bf7..1bf5fce989 100644
--- a/compiler/dex/frontend.cc
+++ b/compiler/dex/frontend.cc
@@ -158,7 +158,7 @@ static CompiledMethod* CompileMethod(CompilerDriver& driver,
if (cu.instruction_set == kArm) {
cu.instruction_set = kThumb2;
}
- cu.target64 = (cu.instruction_set == kX86_64) || (cu.instruction_set == kArm64);
+ cu.target64 = Is64BitInstructionSet(cu.instruction_set);
cu.compiler = compiler;
// TODO: x86_64 & arm64 are not yet implemented.
CHECK((cu.instruction_set == kThumb2) ||
@@ -166,7 +166,6 @@ static CompiledMethod* CompileMethod(CompilerDriver& driver,
(cu.instruction_set == kX86_64) ||
(cu.instruction_set == kMips));
-
/* Adjust this value accordingly once inlining is performed */
cu.num_dalvik_registers = code_item->registers_size_;
// TODO: set this from command line