OSDN Git Service

Fix non-range String init calls
authorKenny Root <kroot@google.com>
Thu, 14 May 2015 23:48:22 +0000 (16:48 -0700)
committerKenny Root <kroot@google.com>
Fri, 15 May 2015 00:09:16 +0000 (00:09 +0000)
commit788a0a157cb138c33882511ff09afacde99443b7
tree0716f17ed249f671ee84ea82d2c149622ba902ee
parent3beb245da9392818e3154d47593f82cf0ef69aac
Fix non-range String init calls

When the String constructor was called via invoke-direct, it is changed
to the new StringFactory which is static. That means that the args need
to be shifted by one to deal with the change from non-static to static.
However, the non-range version of the invoke-direct was not shifted
correctly causing unstarted runtime initialization to get the wrong
first_dest_reg argument.

Bug: 21036900
Change-Id: Ibd7a643d877514ea396d7e4ab0dea327207cb78f
runtime/interpreter/interpreter_common.cc