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

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

Issue 2531273002: 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 18 matching lines...) Expand all
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 extern "C" __attribute__((visibility("default")))
39 #if defined(ARCH_CPU_X86)
40 __attribute__((force_align_arg_pointer))
41 #endif
39 jint Java_org_chromium_TestJni_nativeInit(JNIEnv* env, jobject jcaller) { 42 jint Java_org_chromium_TestJni_nativeInit(JNIEnv* env, jobject jcaller) {
40 return Init(env, base::android::JavaParamRef<jobject>(env, jcaller)); 43 return Init(env, base::android::JavaParamRef<jobject>(env, jcaller));
41 } 44 }
42 45
43 static jint Init(JNIEnv* env, const base::android::JavaParamRef<jobject>& 46 static jint Init(JNIEnv* env, const base::android::JavaParamRef<jobject>&
44 jcaller); 47 jcaller);
45 48
46 extern "C" __attribute__((visibility("default"))) 49 extern "C" __attribute__((visibility("default")))
50 #if defined(ARCH_CPU_X86)
51 __attribute__((force_align_arg_pointer))
52 #endif
47 jint Java_org_chromium_TestJni_00024MyOtherInnerClass_nativeInit(JNIEnv* env, 53 jint Java_org_chromium_TestJni_00024MyOtherInnerClass_nativeInit(JNIEnv* env,
48 jobject jcaller) { 54 jobject jcaller) {
49 return Init(env, base::android::JavaParamRef<jobject>(env, jcaller)); 55 return Init(env, base::android::JavaParamRef<jobject>(env, jcaller));
50 } 56 }
51 57
52 // Step 3: RegisterNatives. 58 // Step 3: RegisterNatives.
53 59
54 static const JNINativeMethod kMethodsMyOtherInnerClass[] = { 60 static const JNINativeMethod kMethodsMyOtherInnerClass[] = {
55 { "nativeInit", 61 { "nativeInit",
56 "(" 62 "("
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 kMethodsTestJniSize) < 0) { 94 kMethodsTestJniSize) < 0) {
89 jni_generator::HandleRegistrationError( 95 jni_generator::HandleRegistrationError(
90 env, TestJni_clazz(env), __FILE__); 96 env, TestJni_clazz(env), __FILE__);
91 return false; 97 return false;
92 } 98 }
93 99
94 return true; 100 return true;
95 } 101 }
96 102
97 #endif // org_chromium_TestJni_JNI 103 #endif // org_chromium_TestJni_JNI
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698