OSDN Git Service

Continuing register cleanup
authorbuzbee <buzbee@google.com>
Fri, 7 Mar 2014 17:46:20 +0000 (09:46 -0800)
committerbuzbee <buzbee@google.com>
Thu, 27 Mar 2014 01:58:58 +0000 (18:58 -0700)
commit2700f7e1edbcd2518f4978e4cd0e05a4149f91b6
tree20f7689d972a7fce485fc9388dd98ba52d3174df
parentbc428f234ca2885d6689fce82992123479bc643e
Continuing register cleanup

Ready for review.

Continue the process of using RegStorage rather than
ints to hold register value in the top layers of codegen.
Given the huge number of changes in this CL, I've attempted
to minimize the number of actual logic changes.  With this
CL, the use of ints for registers has largely been eliminated
except in the lowest utility levels.  "Wide" utility routines
have been updated to take a single RegStorage rather than
a pair of ints representing low and high registers.

Upcoming CLs will be smaller and more targeted.  My expectations:
   o Allocate float double registers as a single double rather than
     a pair of float single registers.
   o Refactor to push code which assumes long and double Dalvik
     values are held in a pair of register to the target dependent
     layer.
   o Clean-up of the xxx_mir.h files to reduce the amount of #defines
     for registers.  May also do a register renumbering to bring all
     of our targets' register naming more consistent.  Possibly
     introduce a target-independent float/non-float test at the
     RegStorage level.

Change-Id: I646de7392bdec94595dd2c6f76e0f1c4331096ff
32 files changed:
compiler/dex/mir_graph.h
compiler/dex/quick/arm/arm_lir.h
compiler/dex/quick/arm/call_arm.cc
compiler/dex/quick/arm/codegen_arm.h
compiler/dex/quick/arm/fp_arm.cc
compiler/dex/quick/arm/int_arm.cc
compiler/dex/quick/arm/target_arm.cc
compiler/dex/quick/arm/utility_arm.cc
compiler/dex/quick/codegen_util.cc
compiler/dex/quick/gen_common.cc
compiler/dex/quick/gen_invoke.cc
compiler/dex/quick/gen_loadstore.cc
compiler/dex/quick/local_optimizations.cc
compiler/dex/quick/mips/assemble_mips.cc
compiler/dex/quick/mips/call_mips.cc
compiler/dex/quick/mips/codegen_mips.h
compiler/dex/quick/mips/fp_mips.cc
compiler/dex/quick/mips/int_mips.cc
compiler/dex/quick/mips/mips_lir.h
compiler/dex/quick/mips/target_mips.cc
compiler/dex/quick/mips/utility_mips.cc
compiler/dex/quick/mir_to_lir.cc
compiler/dex/quick/mir_to_lir.h
compiler/dex/quick/ralloc_util.cc
compiler/dex/quick/x86/call_x86.cc
compiler/dex/quick/x86/codegen_x86.h
compiler/dex/quick/x86/fp_x86.cc
compiler/dex/quick/x86/int_x86.cc
compiler/dex/quick/x86/target_x86.cc
compiler/dex/quick/x86/utility_x86.cc
compiler/dex/quick/x86/x86_lir.h
compiler/dex/reg_storage.h