Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(795)

Side by Side Diff: base/android/jni_generator/testInnerClassNativesBothInnerAndOuter.golden

Issue 2565723002: android: Realign stack pointer on JNI entry. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file is autogenerated by 5 // This file is autogenerated by
6 // base/android/jni_generator/jni_generator.py 6 // base/android/jni_generator/jni_generator.py
7 // For 7 // For
8 // org/chromium/TestJni 8 // org/chromium/TestJni
9 9
10 #ifndef org_chromium_TestJni_JNI 10 #ifndef org_chromium_TestJni_JNI
(...skipping 17 matching lines...) Expand all
28 base::subtle::AtomicWord g_TestJni_clazz __attribute__((unused)) = 0; 28 base::subtle::AtomicWord g_TestJni_clazz __attribute__((unused)) = 0;
29 #define TestJni_clazz(env) base::android::LazyGetClass(env, kTestJniClassPath, & g_TestJni_clazz) 29 #define TestJni_clazz(env) base::android::LazyGetClass(env, kTestJniClassPath, & g_TestJni_clazz)
30 30
31 } // namespace 31 } // namespace
32 32
33 // Step 2: method stubs. 33 // Step 2: method stubs.
34 34
35 static jint Init(JNIEnv* env, const base::android::JavaParamRef<jobject>& 35 static jint Init(JNIEnv* env, const base::android::JavaParamRef<jobject>&
36 jcaller); 36 jcaller);
37 37
38 extern "C" __attribute__((visibility("default"))) 38 JNI_GENERATOR_EXPORT jint Java_org_chromium_TestJni_nativeInit(JNIEnv* env,
39 jint Java_org_chromium_TestJni_nativeInit(JNIEnv* env, jobject jcaller) { 39 jobject jcaller) {
40 return Init(env, base::android::JavaParamRef<jobject>(env, jcaller)); 40 return Init(env, base::android::JavaParamRef<jobject>(env, jcaller));
41 } 41 }
42 42
43 static jint Init(JNIEnv* env, const base::android::JavaParamRef<jobject>& 43 static jint Init(JNIEnv* env, const base::android::JavaParamRef<jobject>&
44 jcaller); 44 jcaller);
45 45
46 extern "C" __attribute__((visibility("default"))) 46 JNI_GENERATOR_EXPORT jint
47 jint Java_org_chromium_TestJni_00024MyOtherInnerClass_nativeInit(JNIEnv* env, 47 Java_org_chromium_TestJni_00024MyOtherInnerClass_nativeInit(JNIEnv* env,
48 jobject jcaller) { 48 jobject jcaller) {
49 return Init(env, base::android::JavaParamRef<jobject>(env, jcaller)); 49 return Init(env, base::android::JavaParamRef<jobject>(env, jcaller));
50 } 50 }
51 51
52 // Step 3: RegisterNatives. 52 // Step 3: RegisterNatives.
53 53
54 static const JNINativeMethod kMethodsMyOtherInnerClass[] = { 54 static const JNINativeMethod kMethodsMyOtherInnerClass[] = {
55 { "nativeInit", 55 { "nativeInit",
56 "(" 56 "("
57 ")" 57 ")"
(...skipping 30 matching lines...) Expand all
88 kMethodsTestJniSize) < 0) { 88 kMethodsTestJniSize) < 0) {
89 jni_generator::HandleRegistrationError( 89 jni_generator::HandleRegistrationError(
90 env, TestJni_clazz(env), __FILE__); 90 env, TestJni_clazz(env), __FILE__);
91 return false; 91 return false;
92 } 92 }
93 93
94 return true; 94 return true;
95 } 95 }
96 96
97 #endif // org_chromium_TestJni_JNI 97 #endif // org_chromium_TestJni_JNI
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698