OSDN Git Service

ART: LoadConstWide should clobber temp reg
authorAlexei Zavjalov <alexei.zavjalov@intel.com>
Wed, 30 Jul 2014 12:31:04 +0000 (19:31 +0700)
committerAlexei Zavjalov <alexei.zavjalov@intel.com>
Wed, 30 Jul 2014 19:35:49 +0000 (02:35 +0700)
commit54659e3a2c83d3949957a10436e55e525a430a15
treec49f155975190dedff9794c89fc738edaed3f999
parentf90283f61d6ca37abf3a9fb8447d05e79caf0160
ART: LoadConstWide should clobber temp reg

If we have 2+ LoadConstWide(FP) calls in one method it is possible
that LoadConstWide will load the method poiner only once. In some
cases, for example, if we have branches, initialization might not be
done and it may lead to a segmentation fault.

Change-Id: If45fc2d1109d7ce9bd272f5c56446b2a6884daac
Signed-off-by: Alexei Zavjalov <alexei.zavjalov@intel.com>
compiler/dex/quick/x86/utility_x86.cc
test/083-compiler-regressions/expected.txt
test/083-compiler-regressions/src/Main.java