Reviewed-by: cjplummer
Be sure to use the same register index in native and Java code. Reviewed-by: sballal, cjplummer, tbell