|
jni_generator: Wrap all native methods in stubs.
Instead of only wrapping native methods which call C++ methods, wrap
them all. This doesn't require any changes to the implementations, but
makes the handling of the two kinds of method more consistent in
preparation for introducing return type/parameter wrapping in future
changes.
This also changes the way that some of the stub code is generated to
make it less different depending whether native exports are in use, and
moves "extern "C"" declarations to be on only the specifically exported
symbols instead of applying to all forward declarations.
BUG= 519562
R=rmcilroy@chromium.org
Committed: https://chromium.googlesource.com/chromium/src/+/b37ad14e10041f15a4467022d5169be4dac73ceb
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+402 lines, -223 lines) |
Patch |
|
M |
base/android/jni_generator/golden_sample_for_tests_jni.h
|
View
|
1
2
|
4 chunks |
+95 lines, -22 lines |
0 comments
|
Download
|
|
M |
base/android/jni_generator/jni_generator.py
|
View
|
1
2
|
5 chunks |
+53 lines, -83 lines |
0 comments
|
Download
|
|
M |
base/android/jni_generator/testEagerCalledByNativesOption.golden
|
View
|
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
base/android/jni_generator/testInnerClassNatives.golden
|
View
|
1
2
|
2 chunks |
+9 lines, -2 lines |
0 comments
|
Download
|
|
M |
base/android/jni_generator/testInnerClassNativesBothInnerAndOuter.golden
|
View
|
1
2
|
2 chunks |
+14 lines, -3 lines |
0 comments
|
Download
|
|
M |
base/android/jni_generator/testInnerClassNativesMultiple.golden
|
View
|
1
2
|
2 chunks |
+17 lines, -3 lines |
0 comments
|
Download
|
|
M |
base/android/jni_generator/testJNIInitNativeNameOption.golden
|
View
|
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
base/android/jni_generator/testJarJarRemapping.golden
|
View
|
1
2
|
2 chunks |
+32 lines, -5 lines |
0 comments
|
Download
|
|
M |
base/android/jni_generator/testMultipleJNIAdditionalImport.golden
|
View
|
1
2
|
2 chunks |
+9 lines, -2 lines |
0 comments
|
Download
|
|
M |
base/android/jni_generator/testNativeExportsOption.golden
|
View
|
1
2
|
4 chunks |
+20 lines, -27 lines |
0 comments
|
Download
|
|
M |
base/android/jni_generator/testNativeExportsOptionalOption.golden
|
View
|
1
2
|
4 chunks |
+20 lines, -27 lines |
0 comments
|
Download
|
|
M |
base/android/jni_generator/testNatives.golden
|
View
|
1
2
|
10 chunks |
+104 lines, -39 lines |
0 comments
|
Download
|
|
M |
base/android/jni_generator/testNativesLong.golden
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
base/android/jni_generator/testPureNativeMethodsOption.golden
|
View
|
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
base/android/jni_generator/testSingleJNIAdditionalImport.golden
|
View
|
1
2
|
2 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
Total messages: 12 (3 generated)
|