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)
committerNikola Veljkovic <Nikola.Veljkovic@imgtec.com>
Wed, 24 Jun 2015 14:34:07 +0000 (16:34 +0200)
commitf652d605753f1387e7797461b47116c5dcdf928d
treea513109ea9fcbc390125b03d07e8d45500a31503
parentbb3dabaf804e0d0bd2bf34e69091b2f86fd4e78b
[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.

Change-Id: I7574d37f6039e9e8c9e0047254be71d28d4c829a
compiler/jni/jni_compiler_test.cc
compiler/utils/mips64/assembler_mips64.cc
test/MyClassNatives/MyClassNatives.java