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:38:07 +0000 (17:38 -0700)
commit8c638bc1f6c186ff3a5706031cb4cf41493c1e7a
treeea1c94f8aebebf7f0f6f3acf824780b439c78af9
parent1484dad68c99c782bdbcaf38e4e364a4995d820d
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.

(cherry picked from commit 788a0a157cb138c33882511ff09afacde99443b7)

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