commit | d1104322e5156669767e8b2c3b843ffaff173381 | [log] [tgz] |
---|---|---|
author | Andreas Gampe <agampe@google.com> | Thu May 01 14:38:56 2014 -0700 |
committer | Andreas Gampe <agampe@google.com> | Thu May 01 14:55:57 2014 -0700 |
tree | 3b3e89afb1d616e958ac084a3e75c50d33deccb0 | |
parent | 69cf921f5ab4467fa2c109e30ea5caca2a20790c [diff] |
ART: aarch64 jni compiler needs to extend small return types As aarch64 calling convention does not mandate extension on return values anymore and leaves the upper bits undefined, the jni compiler needs to sign- or zero-extend the returned values when necessary. As three architectures need extension now, refactor this fact into a flag into a virtual method. Add tests to JniTest that exercise the required extension. Change-Id: Idebb7c4dedebb852e58ade63e1c2b1eeced23104