OSDN Git Service

[MIPS64] JNI Compiler: Sign-extend int function arguments
authorLazar Trsic <Lazar.Trsic@imgtec.com>
Wed, 24 Jun 2015 14:30:21 +0000 (16:30 +0200)
committerAndreas Gampe <agampe@google.com>
Thu, 25 Jun 2015 05:16:54 +0000 (22:16 -0700)
commit559b1cc279deb9299414ddd46595bb8bca7fa090
treec9e11fb2c491522f16674719926ed2d69a392787
parent2eb85431142f5f45f5f5b3dd67dad42bb1dc4a8a
[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
compiler/jni/jni_compiler_test.cc
compiler/utils/mips64/assembler_mips64.cc
test/MyClassNatives/MyClassNatives.java