OSDN Git Service

Do a type check for knowing if we can inline.
authorNicolas Geoffray <ngeoffray@google.com>
Thu, 4 Jun 2015 17:02:34 +0000 (18:02 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Thu, 4 Jun 2015 17:04:18 +0000 (18:04 +0100)
commit7ce4b3d4c1c562959a8a3640df764ab50f1cbdf1
tree5b68c75de9ae09d9573735a7c3f58751100fc759
parentc47908e8c32fd58bc4dc75998a80f706954db1dc
Do a type check for knowing if we can inline.

Otherwise, we might successfully inline:
((String)nonStringObject).charAt()

Because the lookup of the method is based on the index of charAt,
and not its name.

Change-Id: I72ce802fd50cfb71343197f0a32bb1ef56549097
compiler/optimizing/inliner.cc