OSDN Git Service

Bug fix for polymorphic inlining.
authorNicolas Geoffray <ngeoffray@google.com>
Mon, 29 Feb 2016 11:46:58 +0000 (11:46 +0000)
committerNicolas Geoffray <ngeoffray@google.com>
Mon, 29 Feb 2016 14:48:10 +0000 (14:48 +0000)
commitd65925108fc99607f3b447d8505fe6713acda55c
treee08f866195a6316029607036db8a2fb31c388b53
parent06fc03b2bf02f1ccecfaaaaaa36ee8be65711c47
Bug fix for polymorphic inlining.

The code used to wrongly propagate try/catch information to
new blocks. Since it has the same logic as Hraph::InlineInto,
extract the code that updates loop and try/catch information
to blocks to a shared method.

bug:27330865
bug:27372101
bug:27360329

(cherry picked from commit a1d8ddfaf09545f99bc326dff97ab604d4574eb6)

Change-Id: Ice0373ec0a1c24d78121634a377f6f502e814cfb
compiler/optimizing/inliner.cc
compiler/optimizing/nodes.cc
compiler/optimizing/nodes.h
test/578-polymorphic-inlining/expected.txt [new file with mode: 0644]
test/578-polymorphic-inlining/info.txt [new file with mode: 0644]
test/578-polymorphic-inlining/src/Main.java [new file with mode: 0644]