summaryrefslogtreecommitdiffstats
path: root/test/MyClassNatives
Commit message (Collapse)AuthorAgeFilesLines
* Fix bugs in the x86 and arm versions of generic JNI.Nicolas Geoffray2014-08-141-3/+9
| | | | | | | | | Also fix the run script of 116-nodex2oat to use the non-prebuild script for target. Bug: 17000769 Change-Id: I439fcd710fb8bb408f3288ff8fb34fef23890adb
* ART: A workaround for a wrongly-read caller's frameVladimir Kostyukov2014-04-071-0/+12
| | | | | | | | | | | | The quick-trampoline treats caller's frame in a different way then it was formed by quck-invoke stub for hard float ABI targets such as x86_64 and aarch64. The patch workarounds the issue of wrongly-read stack arguments due to no contract between quick-invoke stub and quick-trampoline/shadow-frame-builder regarding the reg- spill area. Change-Id: I302f212b4ea5e38632527a5ace03f136b21ef806 Signed-off-by: Vladimir Kostyukov <vladimir.kostyukov@intel.com>
* Fix wrong handling of Generic JNI not finding native method.Andreas Gampe2014-04-041-0/+1
| | | | | | | | | Code did not properly call JNIMethodEnd, such that locks etc where not correctly handled. Add a test case to jni_compiler_test. Change-Id: If2d5c628517d65a56dd6bb5c4cabdff77c7664a1
* More JNI compiler tests and small fixAndreas Gampe2014-03-101-0/+39
| | | | | | | Add checks for alignment, floats, and maximum number of parameters Fixed x86_64 ABI wrong interpretation (floats not widened in registers) Change-Id: I6c09af4914b7675ac0275ce21003e317ca44a403
* Fix JNI Compiler for x86 targetBrian Carlstrom2012-08-271-0/+1
| | | | Change-Id: Ia247de328d234c4a57ddd93f394cad2c63e48153
* Fix JNI stubs for synchronized native methods with double/long arguments in ↵Elliott Hughes2012-05-211-1/+2
| | | | | | low registers. Change-Id: I3639f7a7a9564630ae01651119fcad237a5e675d
* Implement native method return value and upcall argument type checking.Elliott Hughes2012-04-091-2/+8
| | | | | | | Also clean up the CheckJNI testing a bit. I still need to do some work so that JniAbort catches more of the detail, but this is a step forward. Change-Id: Ibf5e32867d56123cff902ebf602406b731f567d2
* Fix bug in JNI compiler AAPCS padding calculationIan Rogers2012-03-031-0/+1
| | | | | | Fixes bug found in Google Earth. Change-Id: I54beb05a67e77a004052b567c11837cc6f2c18fe
* Test invocation of static methods through JNI stubIan Rogers2012-02-291-0/+1
| | | | | | Additional unit test to avoid regressions like Change I707f8e64. Change-Id: Ic343bf5273ca06b646f0235c88d6edbe3d20d448
* Fix copyright headers.Elliott Hughes2012-01-301-1/+15
| | | | Change-Id: I5b7bc76a370238d810d78522bd5531600746700f
* Support for exception throwing from JNI.Ian Rogers2011-09-171-0/+1
| | | | | | | | | This change modifies the exception throwing JNI unit test to be realistic and implements the missing exception throwing pieces on X86. It also corrects some issues on ARM including methods with arguments LJII (such as compareAndSwapInt). Change-Id: I375f6efe2edeebb8007d7aa12c10b49742a8f119
* Generating stub code for registering a jni function at runtime.Shih-wei Liao2011-09-121-0/+1
| | | | | | On ARM and x86. Added a unit test. Change-Id: I6b1ee09ad18295108f406ce21d73555796ecbba6
* Fix various JNI compiler bugs/unimplementeds.Ian Rogers2011-09-071-0/+1
| | | | | | | | | | For both x86 and arm we were under computing the outgoing argument size. For ARM the managed double/long passing had been assumed to be following AAPCS, however, currently we split long/doubles across R1_R2 and R3 and the stack. Add support for this in the managed register and jni compiler code. Add test and various other clean ups to jni compiler code. Change-Id: I4129076d052a8bce42304f5331b71aa3ac50210f
* Test arg passing for arraycopy.Ian Rogers2011-09-051-0/+1
| | | | Change-Id: Id0a6b6043b9604aa3bb077af0ed858be9bfa5407
* Fix bug in long arguments for JNI on x86Ian Rogers2011-09-041-1/+2
| | | | | Also add new unit test. Change-Id: I226501dbfec6e207318d8063b5daf53b7b606ee4
* Testing the decoding of JObject.Shih-wei Liao2011-09-021-0/+1
| | | | Change-Id: Ie539275592fbb7b648f9ce5e4a619aecc576768c
* Fix the "mov R1, R2; mov R2, R3" bug in jni_compiler.Shih-wei Liao2011-09-011-0/+1
| | | | | | Should be "mov R2, R3; mov R1, R2" instead. Change-Id: Ie5264c3fe38486781e09f54e1e6d1fdcf7a2d4e5
* Add -Xcheck:jni.Elliott Hughes2011-08-291-0/+1
| | | | | | | | | | I think this is as complete as possible right now. The remaining two #if 0 sections require: 1. a way to get the Method* of the current native method. 2. a way to get the Class* of the type of a given Field*. Change-Id: I331586022095fb36ccc10c9ac1890a59a9224d01
* Externalize test codeBrian Carlstrom2011-08-291-0/+11
Change-Id: Iab19397c7a72fb9a3ca63bfd0bc4eaf1a98138ba