mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 990764 - Replace MOZ_ASSUME_UNREACHABLE with MOZ_CRASH in widget/android. r=blassey
This commit is contained in:
parent
c7dffd99bb
commit
e4f9386ea4
@ -328,7 +328,7 @@ public class CodeGenerator {
|
||||
if (!aNoThrow) {
|
||||
wrapperMethodBodies.append(
|
||||
" AndroidBridge::HandleUncaughtException(env);\n" +
|
||||
" MOZ_ASSUME_UNREACHABLE(\"Exception should have caused crash.\");\n");
|
||||
" MOZ_CRASH(\"Exception should have caused crash.\");\n");
|
||||
} else {
|
||||
wrapperMethodBodies.append(
|
||||
" return").append(Utils.getFailureReturnForType(returnType)).append(";\n");
|
||||
|
@ -179,7 +179,7 @@ void GeckoAppShell::AcknowledgeEvent() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jAcknowledgeEvent);
|
||||
@ -191,7 +191,7 @@ void GeckoAppShell::AddPluginViewWrapper(jobject a0, jfloat a1, jfloat a2, jfloa
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[6];
|
||||
@ -211,7 +211,7 @@ void GeckoAppShell::AlertsProgressListener_OnProgress(const nsAString& a0, int64
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(2) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[4];
|
||||
@ -229,7 +229,7 @@ void GeckoAppShell::CancelVibrate() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jCancelVibrate);
|
||||
@ -241,7 +241,7 @@ void GeckoAppShell::CheckURIVisited(const nsAString& a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jstring j0 = AndroidBridge::NewJavaString(env, a0);
|
||||
@ -255,7 +255,7 @@ void GeckoAppShell::ClearMessageList(int32_t a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jClearMessageList, a0);
|
||||
@ -267,7 +267,7 @@ void GeckoAppShell::CloseCamera() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jCloseCamera);
|
||||
@ -279,7 +279,7 @@ void GeckoAppShell::CloseNotification(const nsAString& a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jstring j0 = AndroidBridge::NewJavaString(env, a0);
|
||||
@ -293,7 +293,7 @@ void GeckoAppShell::CreateMessageListWrapper(int64_t a0, int64_t a1, jobjectArra
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[7];
|
||||
@ -314,7 +314,7 @@ void GeckoAppShell::CreateShortcut(const nsAString& a0, const nsAString& a1, con
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(4) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[4];
|
||||
@ -332,7 +332,7 @@ void GeckoAppShell::DeleteMessageWrapper(int32_t a0, int32_t a1) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jDeleteMessageWrapper, a0, a1);
|
||||
@ -344,7 +344,7 @@ void GeckoAppShell::DisableBatteryNotifications() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jDisableBatteryNotifications);
|
||||
@ -356,7 +356,7 @@ void GeckoAppShell::DisableNetworkNotifications() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jDisableNetworkNotifications);
|
||||
@ -368,7 +368,7 @@ void GeckoAppShell::DisableScreenOrientationNotifications() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jDisableScreenOrientationNotifications);
|
||||
@ -380,7 +380,7 @@ void GeckoAppShell::DisableSensor(int32_t a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jDisableSensor, a0);
|
||||
@ -392,7 +392,7 @@ void GeckoAppShell::EnableBatteryNotifications() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jEnableBatteryNotifications);
|
||||
@ -404,7 +404,7 @@ void GeckoAppShell::EnableLocation(bool a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jEnableLocation, a0);
|
||||
@ -416,7 +416,7 @@ void GeckoAppShell::EnableLocationHighAccuracy(bool a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jEnableLocationHighAccuracy, a0);
|
||||
@ -428,7 +428,7 @@ void GeckoAppShell::EnableNetworkNotifications() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jEnableNetworkNotifications);
|
||||
@ -440,7 +440,7 @@ void GeckoAppShell::EnableScreenOrientationNotifications() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jEnableScreenOrientationNotifications);
|
||||
@ -452,7 +452,7 @@ void GeckoAppShell::EnableSensor(int32_t a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jEnableSensor, a0);
|
||||
@ -464,7 +464,7 @@ jobject GeckoAppShell::GetContext() {
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jobject temp = env->CallStaticObjectMethod(mGeckoAppShellClass, jGetContext);
|
||||
@ -477,7 +477,7 @@ jdoubleArray GeckoAppShell::GetCurrentBatteryInformationWrapper() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jobject temp = env->CallStaticObjectMethod(mGeckoAppShellClass, jGetCurrentBatteryInformationWrapper);
|
||||
@ -490,7 +490,7 @@ jdoubleArray GeckoAppShell::GetCurrentNetworkInformationWrapper() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jobject temp = env->CallStaticObjectMethod(mGeckoAppShellClass, jGetCurrentNetworkInformationWrapper);
|
||||
@ -503,7 +503,7 @@ jfloat GeckoAppShell::GetDensity() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jfloat temp = env->CallStaticFloatMethod(mGeckoAppShellClass, jGetDensity);
|
||||
@ -516,7 +516,7 @@ int32_t GeckoAppShell::GetDpiWrapper() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
int32_t temp = env->CallStaticIntMethod(mGeckoAppShellClass, jGetDpiWrapper);
|
||||
@ -529,7 +529,7 @@ jstring GeckoAppShell::GetExtensionFromMimeTypeWrapper(const nsAString& a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(2) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jstring j0 = AndroidBridge::NewJavaString(env, a0);
|
||||
@ -544,7 +544,7 @@ jobjectArray GeckoAppShell::GetHandlersForMimeTypeWrapper(const nsAString& a0, c
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(3) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jstring j0 = AndroidBridge::NewJavaString(env, a0);
|
||||
@ -560,7 +560,7 @@ jobjectArray GeckoAppShell::GetHandlersForURLWrapper(const nsAString& a0, const
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(3) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jstring j0 = AndroidBridge::NewJavaString(env, a0);
|
||||
@ -576,7 +576,7 @@ jbyteArray GeckoAppShell::GetIconForExtensionWrapper(const nsAString& a0, int32_
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(2) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jstring j0 = AndroidBridge::NewJavaString(env, a0);
|
||||
@ -591,7 +591,7 @@ void GeckoAppShell::GetMessageWrapper(int32_t a0, int32_t a1) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jGetMessageWrapper, a0, a1);
|
||||
@ -603,7 +603,7 @@ jstring GeckoAppShell::GetMimeTypeFromExtensionsWrapper(const nsAString& a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(2) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jstring j0 = AndroidBridge::NewJavaString(env, a0);
|
||||
@ -618,7 +618,7 @@ void GeckoAppShell::GetNextMessageInListWrapper(int32_t a0, int32_t a1) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jGetNextMessageInListWrapper, a0, a1);
|
||||
@ -630,7 +630,7 @@ jstring GeckoAppShell::GetProxyForURIWrapper(const nsAString& a0, const nsAStrin
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(4) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[4];
|
||||
@ -649,7 +649,7 @@ int32_t GeckoAppShell::GetScreenDepthWrapper() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
int32_t temp = env->CallStaticIntMethod(mGeckoAppShellClass, jGetScreenDepthWrapper);
|
||||
@ -662,7 +662,7 @@ int16_t GeckoAppShell::GetScreenOrientationWrapper() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
int16_t temp = env->CallStaticShortMethod(mGeckoAppShellClass, jGetScreenOrientationWrapper);
|
||||
@ -675,7 +675,7 @@ bool GeckoAppShell::GetShowPasswordSetting() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
bool temp = env->CallStaticBooleanMethod(mGeckoAppShellClass, jGetShowPasswordSetting);
|
||||
@ -688,7 +688,7 @@ jintArray GeckoAppShell::GetSystemColoursWrapper() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jobject temp = env->CallStaticObjectMethod(mGeckoAppShellClass, jGetSystemColoursWrapper);
|
||||
@ -701,7 +701,7 @@ void GeckoAppShell::HandleGeckoMessageWrapper(jobject a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jHandleGeckoMessageWrapper, a0);
|
||||
@ -723,7 +723,7 @@ void GeckoAppShell::HideProgressDialog() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jHideProgressDialog);
|
||||
@ -735,7 +735,7 @@ jintArray GeckoAppShell::InitCameraWrapper(const nsAString& a0, int32_t a1, int3
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(2) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[4];
|
||||
@ -754,7 +754,7 @@ bool GeckoAppShell::IsNetworkLinkKnown() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
bool temp = env->CallStaticBooleanMethod(mGeckoAppShellClass, jIsNetworkLinkKnown);
|
||||
@ -767,7 +767,7 @@ bool GeckoAppShell::IsNetworkLinkUp() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
bool temp = env->CallStaticBooleanMethod(mGeckoAppShellClass, jIsNetworkLinkUp);
|
||||
@ -780,7 +780,7 @@ bool GeckoAppShell::IsTablet() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
bool temp = env->CallStaticBooleanMethod(mGeckoAppShellClass, jIsTablet);
|
||||
@ -793,7 +793,7 @@ void GeckoAppShell::KillAnyZombies() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jKillAnyZombies);
|
||||
@ -805,7 +805,7 @@ jclass GeckoAppShell::LoadPluginClass(const nsAString& a0, const nsAString& a1)
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(3) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jstring j0 = AndroidBridge::NewJavaString(env, a0);
|
||||
@ -821,7 +821,7 @@ void GeckoAppShell::LockScreenOrientation(int32_t a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jLockScreenOrientation, a0);
|
||||
@ -833,7 +833,7 @@ void GeckoAppShell::MarkURIVisited(const nsAString& a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jstring j0 = AndroidBridge::NewJavaString(env, a0);
|
||||
@ -847,7 +847,7 @@ void GeckoAppShell::MoveTaskToBack() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jMoveTaskToBack);
|
||||
@ -859,7 +859,7 @@ int32_t GeckoAppShell::NetworkLinkType() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
int32_t temp = env->CallStaticIntMethod(mGeckoAppShellClass, jNetworkLinkType);
|
||||
@ -872,7 +872,7 @@ void GeckoAppShell::NotifyDefaultPrevented(bool a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jNotifyDefaultPrevented, a0);
|
||||
@ -884,7 +884,7 @@ void GeckoAppShell::NotifyIME(int32_t a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jNotifyIME, a0);
|
||||
@ -896,7 +896,7 @@ void GeckoAppShell::NotifyIMEChange(const nsAString& a0, int32_t a1, int32_t a2,
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[4];
|
||||
@ -914,7 +914,7 @@ void GeckoAppShell::NotifyIMEContext(int32_t a0, const nsAString& a1, const nsAS
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(3) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[4];
|
||||
@ -932,7 +932,7 @@ void GeckoAppShell::NotifyWakeLockChanged(const nsAString& a0, const nsAString&
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(2) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jstring j0 = AndroidBridge::NewJavaString(env, a0);
|
||||
@ -947,7 +947,7 @@ void GeckoAppShell::NotifyXreExit() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jNotifyXreExit);
|
||||
@ -959,7 +959,7 @@ bool GeckoAppShell::OpenUriExternal(const nsAString& a0, const nsAString& a1, co
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(6) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[6];
|
||||
@ -980,7 +980,7 @@ void GeckoAppShell::PerformHapticFeedback(bool a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jPerformHapticFeedback, a0);
|
||||
@ -992,7 +992,7 @@ bool GeckoAppShell::PumpMessageLoop() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
bool temp = env->CallStaticBooleanMethod(mGeckoAppShellClass, jPumpMessageLoop);
|
||||
@ -1005,7 +1005,7 @@ void GeckoAppShell::RegisterSurfaceTextureFrameListener(jobject a0, int32_t a1)
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jRegisterSurfaceTextureFrameListener, a0, a1);
|
||||
@ -1017,7 +1017,7 @@ void GeckoAppShell::RemovePluginView(jobject a0, bool a1) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jRemovePluginView, a0, a1);
|
||||
@ -1029,7 +1029,7 @@ void GeckoAppShell::ScanMedia(const nsAString& a0, const nsAString& a1) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(2) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jstring j0 = AndroidBridge::NewJavaString(env, a0);
|
||||
@ -1044,7 +1044,7 @@ void GeckoAppShell::ScheduleRestart() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jScheduleRestart);
|
||||
@ -1056,7 +1056,7 @@ void GeckoAppShell::SendMessageWrapper(const nsAString& a0, const nsAString& a1,
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(2) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[3];
|
||||
@ -1073,7 +1073,7 @@ void GeckoAppShell::SetFullScreen(bool a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jSetFullScreen, a0);
|
||||
@ -1085,7 +1085,7 @@ void GeckoAppShell::SetKeepScreenOn(bool a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jSetKeepScreenOn, a0);
|
||||
@ -1097,7 +1097,7 @@ void GeckoAppShell::SetURITitle(const nsAString& a0, const nsAString& a1) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(2) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jstring j0 = AndroidBridge::NewJavaString(env, a0);
|
||||
@ -1112,7 +1112,7 @@ void GeckoAppShell::ShowAlertNotificationWrapper(const nsAString& a0, const nsAS
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(5) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[5];
|
||||
@ -1131,7 +1131,7 @@ void GeckoAppShell::ShowInputMethodPicker() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jShowInputMethodPicker);
|
||||
@ -1143,7 +1143,7 @@ bool GeckoAppShell::UnlockProfile() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
bool temp = env->CallStaticBooleanMethod(mGeckoAppShellClass, jUnlockProfile);
|
||||
@ -1156,7 +1156,7 @@ void GeckoAppShell::UnlockScreenOrientation() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jUnlockScreenOrientation);
|
||||
@ -1168,7 +1168,7 @@ void GeckoAppShell::UnregisterSurfaceTextureFrameListener(jobject a0) {
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jUnregisterSurfaceTextureFrameListener, a0);
|
||||
@ -1180,7 +1180,7 @@ void GeckoAppShell::Vibrate1(int64_t a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jVibrate1, a0);
|
||||
@ -1192,7 +1192,7 @@ void GeckoAppShell::VibrateA(jlongArray a0, int32_t a1) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoAppShellClass, jVibrateA, a0, a1);
|
||||
@ -1235,7 +1235,7 @@ jobject JavaDomKeyLocation::valueOf(const nsAString& a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(2) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jstring j0 = AndroidBridge::NewJavaString(env, a0);
|
||||
@ -1250,7 +1250,7 @@ jobjectArray JavaDomKeyLocation::values() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jobject temp = env->CallStaticObjectMethod(mDomKeyLocationClass, jvalues);
|
||||
@ -1325,7 +1325,7 @@ jstring GeckoJavaSampler::GetFrameNameJavaProfilingWrapper(int32_t a0, int32_t a
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[3];
|
||||
@ -1343,7 +1343,7 @@ jdouble GeckoJavaSampler::GetSampleTimeJavaProfiling(int32_t a0, int32_t a1) {
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jdouble temp = env->CallStaticDoubleMethod(mGeckoJavaSamplerClass, jGetSampleTimeJavaProfiling, a0, a1);
|
||||
@ -1356,7 +1356,7 @@ jstring GeckoJavaSampler::GetThreadNameJavaProfilingWrapper(int32_t a0) {
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jobject temp = env->CallStaticObjectMethod(mGeckoJavaSamplerClass, jGetThreadNameJavaProfilingWrapper, a0);
|
||||
@ -1369,7 +1369,7 @@ void GeckoJavaSampler::PauseJavaProfiling() {
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoJavaSamplerClass, jPauseJavaProfiling);
|
||||
@ -1381,7 +1381,7 @@ void GeckoJavaSampler::StartJavaProfiling(int32_t a0, int32_t a1) {
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoJavaSamplerClass, jStartJavaProfiling, a0, a1);
|
||||
@ -1393,7 +1393,7 @@ void GeckoJavaSampler::StopJavaProfiling() {
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoJavaSamplerClass, jStopJavaProfiling);
|
||||
@ -1405,7 +1405,7 @@ void GeckoJavaSampler::UnpauseJavaProfiling() {
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mGeckoJavaSamplerClass, jUnpauseJavaProfiling);
|
||||
@ -1440,7 +1440,7 @@ SurfaceBits::SurfaceBits() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
Init(env->NewObject(mSurfaceBitsClass, jSurfaceBits), env);
|
||||
@ -1506,7 +1506,7 @@ void ThumbnailHelper::SendThumbnail(jobject a0, int32_t a1, bool a2) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[3];
|
||||
@ -1542,7 +1542,7 @@ DisplayPortMetrics::DisplayPortMetrics(jfloat a0, jfloat a1, jfloat a2, jfloat a
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[5];
|
||||
@ -1585,7 +1585,7 @@ jobject GLController::CreateEGLSurfaceForCompositorWrapper() {
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jobject temp = env->CallObjectMethod(wrapped_obj, jCreateEGLSurfaceForCompositorWrapper);
|
||||
@ -1633,7 +1633,7 @@ void GeckoLayerClient::ActivateProgram() {
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallVoidMethod(wrapped_obj, jActivateProgram);
|
||||
@ -1645,7 +1645,7 @@ void GeckoLayerClient::ContentDocumentChanged() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallVoidMethod(wrapped_obj, jContentDocumentChanged);
|
||||
@ -1657,7 +1657,7 @@ jobject GeckoLayerClient::CreateFrame() {
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jobject temp = env->CallObjectMethod(wrapped_obj, jCreateFrame);
|
||||
@ -1670,7 +1670,7 @@ void GeckoLayerClient::DeactivateProgram() {
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallVoidMethod(wrapped_obj, jDeactivateProgram);
|
||||
@ -1682,7 +1682,7 @@ jobject GeckoLayerClient::GetDisplayPort(bool a0, bool a1, int32_t a2, jobject a
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(2) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[4];
|
||||
@ -1701,7 +1701,7 @@ bool GeckoLayerClient::IsContentDocumentDisplayed() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
bool temp = env->CallBooleanMethod(wrapped_obj, jIsContentDocumentDisplayed);
|
||||
@ -1714,7 +1714,7 @@ jobject GeckoLayerClient::ProgressiveUpdateCallback(bool a0, jfloat a1, jfloat a
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[7];
|
||||
@ -1736,7 +1736,7 @@ void GeckoLayerClient::SetFirstPaintViewport(jfloat a0, jfloat a1, jfloat a2, jf
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[7];
|
||||
@ -1757,7 +1757,7 @@ void GeckoLayerClient::SetPageRect(jfloat a0, jfloat a1, jfloat a2, jfloat a3) {
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[4];
|
||||
@ -1775,7 +1775,7 @@ jobject GeckoLayerClient::SyncFrameMetrics(jfloat a0, jfloat a1, jfloat a2, jflo
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[14];
|
||||
@ -1804,7 +1804,7 @@ jobject GeckoLayerClient::SyncViewportInfo(int32_t a0, int32_t a1, int32_t a2, i
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[6];
|
||||
@ -1840,7 +1840,7 @@ ImmutableViewportMetrics::ImmutableViewportMetrics(jfloat a0, jfloat a1, jfloat
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[13];
|
||||
@ -1881,7 +1881,7 @@ jobject LayerView::RegisterCompositorWrapper() {
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jobject temp = env->CallStaticObjectMethod(mLayerViewClass, jRegisterCompositorWrapper);
|
||||
@ -1911,7 +1911,7 @@ void NativePanZoomController::PostDelayedCallbackWrapper(int64_t a0) {
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallVoidMethod(wrapped_obj, jPostDelayedCallbackWrapper, a0);
|
||||
@ -1923,7 +1923,7 @@ void NativePanZoomController::RequestContentRepaintWrapper(jfloat a0, jfloat a1,
|
||||
JNIEnv *env = GetJNIForThread();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[5];
|
||||
@ -1971,7 +1971,7 @@ ProgressiveUpdateData::ProgressiveUpdateData() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
Init(env->NewObject(mProgressiveUpdateDataClass, jProgressiveUpdateData), env);
|
||||
@ -1982,7 +1982,7 @@ void ProgressiveUpdateData::setViewport(jobject a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallVoidMethod(wrapped_obj, jsetViewport, a0);
|
||||
@ -2087,7 +2087,7 @@ ViewTransform::ViewTransform(jfloat a0, jfloat a1, jfloat a2) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jvalue args[3];
|
||||
@ -2208,7 +2208,7 @@ jobject NativeZip::CreateInputStream(jobject a0, int32_t a1) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(2) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jobject temp = env->CallObjectMethod(wrapped_obj, jCreateInputStream, a0, a1);
|
||||
@ -2244,7 +2244,7 @@ MatrixBlobCursor::MatrixBlobCursor(jobjectArray a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
Init(env->NewObject(mMatrixBlobCursorClass, jMatrixBlobCursor, a0), env);
|
||||
@ -2255,7 +2255,7 @@ MatrixBlobCursor::MatrixBlobCursor(jobjectArray a0, int32_t a1) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
Init(env->NewObject(mMatrixBlobCursorClass, jMatrixBlobCursor0, a0, a1), env);
|
||||
@ -2266,7 +2266,7 @@ void MatrixBlobCursor::AddRow(jobject a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallVoidMethod(wrapped_obj, jAddRow, a0);
|
||||
@ -2278,7 +2278,7 @@ void MatrixBlobCursor::AddRow(jobject a0, int32_t a1) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallVoidMethod(wrapped_obj, jAddRow1, a0, a1);
|
||||
@ -2290,7 +2290,7 @@ void MatrixBlobCursor::AddRow(jobjectArray a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallVoidMethod(wrapped_obj, jAddRow2, a0);
|
||||
@ -2321,7 +2321,7 @@ SQLiteBridgeException::SQLiteBridgeException() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
Init(env->NewObject(mSQLiteBridgeExceptionClass, jSQLiteBridgeException), env);
|
||||
@ -2332,7 +2332,7 @@ SQLiteBridgeException::SQLiteBridgeException(const nsAString& a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jstring j0 = AndroidBridge::NewJavaString(env, a0);
|
||||
@ -2371,7 +2371,7 @@ void Clipboard::ClearText() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
env->CallStaticVoidMethod(mClipboardClass, jClearText);
|
||||
@ -2383,7 +2383,7 @@ jstring Clipboard::GetClipboardTextWrapper() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jobject temp = env->CallStaticObjectMethod(mClipboardClass, jGetClipboardTextWrapper);
|
||||
@ -2396,7 +2396,7 @@ bool Clipboard::HasText() {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(0) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
bool temp = env->CallStaticBooleanMethod(mClipboardClass, jHasText);
|
||||
@ -2409,7 +2409,7 @@ void Clipboard::SetClipboardText(const nsAString& a0) {
|
||||
JNIEnv *env = AndroidBridge::GetJNIEnv();
|
||||
if (env->PushLocalFrame(1) != 0) {
|
||||
AndroidBridge::HandleUncaughtException(env);
|
||||
MOZ_ASSUME_UNREACHABLE("Exception should have caused crash.");
|
||||
MOZ_CRASH("Exception should have caused crash.");
|
||||
}
|
||||
|
||||
jstring j0 = AndroidBridge::NewJavaString(env, a0);
|
||||
|
Loading…
Reference in New Issue
Block a user