diff options
author | Lazar Trsic <Lazar.Trsic@imgtec.com> | 2015-06-24 16:30:21 +0200 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-06-24 22:16:54 -0700 |
commit | 559b1cc279deb9299414ddd46595bb8bca7fa090 (patch) | |
tree | c9e11fb2c491522f16674719926ed2d69a392787 /test | |
parent | 2eb85431142f5f45f5f5b3dd67dad42bb1dc4a8a (diff) | |
download | art-559b1cc279deb9299414ddd46595bb8bca7fa090.zip art-559b1cc279deb9299414ddd46595bb8bca7fa090.tar.gz art-559b1cc279deb9299414ddd46595bb8bca7fa090.tar.bz2 |
[MIPS64] JNI Compiler: Sign-extend int function arguments
MIPS n64 ABI differs from arm64. Arguments smaller than the 8B stack
slot need to be sign-extended.
Use combination (lw,sd), instead of (lw,sw) for 4B values.
Change fixes software keyboard crash on mips64.
Bug: 21555893
(cherry picked from commit f652d605753f1387e7797461b47116c5dcdf928d)
Change-Id: I7574d37f6039e9e8c9e0047254be71d28d4c829a
Diffstat (limited to 'test')
-rw-r--r-- | test/MyClassNatives/MyClassNatives.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/MyClassNatives/MyClassNatives.java b/test/MyClassNatives/MyClassNatives.java index 8b4a9a4..19c13f7 100644 --- a/test/MyClassNatives/MyClassNatives.java +++ b/test/MyClassNatives/MyClassNatives.java @@ -94,6 +94,9 @@ class MyClassNatives { float f4, int i5, float f5, int i6, float f6, int i7, float f7, int i8, float f8, int i9, float f9, int i10, float f10); + native static void stackArgsSignExtendedMips64(int i1, int i2, int i3, int i4, int i5, int i6, + int i7, int i8); + static native double logD(double d); static native float logF(float f); static native boolean returnTrue(); |