OSDN Git Service

Fix x86-64 Baker's read barrier fast path for CheckCast.
authorRoland Levillain <rpl@google.com>
Thu, 11 Feb 2016 19:07:30 +0000 (19:07 +0000)
committerRoland Levillain <rpl@google.com>
Thu, 11 Feb 2016 19:07:30 +0000 (19:07 +0000)
commit86503785cd6414b8692e5c83cadaa2972b6a099b
treea242e28bd3605dce65c9f5e94b5fc13f06f07d19
parentbe89a6f1d9e41b154be3fe1da97cedb6964fbd35
Fix x86-64 Baker's read barrier fast path for CheckCast.

Use an art::x86_64::Label instead of an
art::x86_64::NearLabel as end label when emitting code for a
HCheckCast instruction, as the range of the latter may
sometimes be too short when Baker's read barriers are
enabled.

Bug: 12687968
Change-Id: Ia9742dce65be7d4fb104688f3c4717b65df1fb54
compiler/optimizing/code_generator_x86_64.cc
compiler/optimizing/graph_visualizer.cc
compiler/optimizing/nodes.cc
compiler/optimizing/nodes.h
test/573-checker-checkcast-regression/expected.txt [new file with mode: 0644]
test/573-checker-checkcast-regression/info.txt [new file with mode: 0644]
test/573-checker-checkcast-regression/src/Main.java [new file with mode: 0644]