OSDN Git Service

ART: Refactor GenSelect, refactor gen_common accordingly
authorAndreas Gampe <agampe@google.com>
Wed, 16 Jul 2014 06:02:11 +0000 (23:02 -0700)
committerAndreas Gampe <agampe@google.com>
Thu, 17 Jul 2014 17:02:10 +0000 (10:02 -0700)
commit90969af6deb19b1dbe356d62fe68d8f5698d3d8f
tree6d144bcd219ce718ba9d17240eade0bec51f3400
parentaab012d6196bd29b3167963ec8acb0b9780672b2
ART: Refactor GenSelect, refactor gen_common accordingly

This adds a GenSelect method meant for selection of constants. The
general-purpose GenInstanceof code is refactored to take advantage of
this. This cleans up code and squashes a branch-over on ARM64 to a
cset.

Also add a slow-path for type initialization in GenInstanceof.

Change-Id: Ie4494858bb8c26d386cf2e628172b81bba911ae5
compiler/dex/quick/arm/codegen_arm.h
compiler/dex/quick/arm/int_arm.cc
compiler/dex/quick/arm64/codegen_arm64.h
compiler/dex/quick/arm64/int_arm64.cc
compiler/dex/quick/gen_common.cc
compiler/dex/quick/mips/codegen_mips.h
compiler/dex/quick/mips/int_mips.cc
compiler/dex/quick/mir_to_lir.h
compiler/dex/quick/x86/codegen_x86.h
compiler/dex/quick/x86/int_x86.cc