• Home
  • Raw
  • Download

Lines Matching refs:env

62     JNIEnv* env,  in Java_art_Breakpoint_getLineNumberTableNative()  argument
65 jmethodID method = env->FromReflectedMethod(target); in Java_art_Breakpoint_getLineNumberTableNative()
66 if (env->ExceptionCheck()) { in Java_art_Breakpoint_getLineNumberTableNative()
71 if (JvmtiErrorToException(env, jvmti_env, in Java_art_Breakpoint_getLineNumberTableNative()
75 jintArray lines_array = env->NewIntArray(nlines); in Java_art_Breakpoint_getLineNumberTableNative()
76 if (env->ExceptionCheck()) { in Java_art_Breakpoint_getLineNumberTableNative()
80 jlongArray locs_array = env->NewLongArray(nlines); in Java_art_Breakpoint_getLineNumberTableNative()
81 if (env->ExceptionCheck()) { in Java_art_Breakpoint_getLineNumberTableNative()
85 ScopedLocalRef<jclass> object_class(env, env->FindClass("java/lang/Object")); in Java_art_Breakpoint_getLineNumberTableNative()
86 if (env->ExceptionCheck()) { in Java_art_Breakpoint_getLineNumberTableNative()
90 jobjectArray ret = env->NewObjectArray(2, object_class.get(), nullptr); in Java_art_Breakpoint_getLineNumberTableNative()
91 if (env->ExceptionCheck()) { in Java_art_Breakpoint_getLineNumberTableNative()
95 jint* temp_lines = env->GetIntArrayElements(lines_array, /*isCopy*/nullptr); in Java_art_Breakpoint_getLineNumberTableNative()
96 jlong* temp_locs = env->GetLongArrayElements(locs_array, /*isCopy*/nullptr); in Java_art_Breakpoint_getLineNumberTableNative()
101 env->ReleaseIntArrayElements(lines_array, temp_lines, 0); in Java_art_Breakpoint_getLineNumberTableNative()
102 env->ReleaseLongArrayElements(locs_array, temp_locs, 0); in Java_art_Breakpoint_getLineNumberTableNative()
103 env->SetObjectArrayElement(ret, 0, locs_array); in Java_art_Breakpoint_getLineNumberTableNative()
104 env->SetObjectArrayElement(ret, 1, lines_array); in Java_art_Breakpoint_getLineNumberTableNative()
109 extern "C" JNIEXPORT jlong JNICALL Java_art_Breakpoint_getStartLocation(JNIEnv* env, in Java_art_Breakpoint_getStartLocation() argument
112 jmethodID method = env->FromReflectedMethod(target); in Java_art_Breakpoint_getStartLocation()
113 if (env->ExceptionCheck()) { in Java_art_Breakpoint_getStartLocation()
118 JvmtiErrorToException(env, jvmti_env, jvmti_env->GetMethodLocation(method, &start, &end)); in Java_art_Breakpoint_getStartLocation()
122 extern "C" JNIEXPORT void JNICALL Java_art_Breakpoint_clearBreakpoint(JNIEnv* env, in Java_art_Breakpoint_clearBreakpoint() argument
126 jmethodID method = env->FromReflectedMethod(target); in Java_art_Breakpoint_clearBreakpoint()
127 if (env->ExceptionCheck()) { in Java_art_Breakpoint_clearBreakpoint()
130 JvmtiErrorToException(env, jvmti_env, jvmti_env->ClearBreakpoint(method, location)); in Java_art_Breakpoint_clearBreakpoint()
133 extern "C" JNIEXPORT void JNICALL Java_art_Breakpoint_setBreakpoint(JNIEnv* env, in Java_art_Breakpoint_setBreakpoint() argument
137 jmethodID method = env->FromReflectedMethod(target); in Java_art_Breakpoint_setBreakpoint()
138 if (env->ExceptionCheck()) { in Java_art_Breakpoint_setBreakpoint()
141 JvmtiErrorToException(env, jvmti_env, jvmti_env->SetBreakpoint(method, location)); in Java_art_Breakpoint_setBreakpoint()
145 JNIEnv* env, in Java_art_Breakpoint_startBreakpointWatch() argument
152 if (JvmtiErrorToException(env, in Java_art_Breakpoint_startBreakpointWatch()
159 data->test_klass = reinterpret_cast<jclass>(env->NewGlobalRef(method_klass)); in Java_art_Breakpoint_startBreakpointWatch()
160 data->breakpoint_method = env->FromReflectedMethod(method); in Java_art_Breakpoint_startBreakpointWatch()
165 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->GetEnvironmentLocalStorage(&old_data))) { in Java_art_Breakpoint_startBreakpointWatch()
168 ScopedLocalRef<jclass> rt_exception(env, env->FindClass("java/lang/RuntimeException")); in Java_art_Breakpoint_startBreakpointWatch()
169 env->ThrowNew(rt_exception.get(), "Environment already has local storage set!"); in Java_art_Breakpoint_startBreakpointWatch()
172 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->SetEnvironmentLocalStorage(data))) { in Java_art_Breakpoint_startBreakpointWatch()
176 if (JvmtiErrorToException(env, in Java_art_Breakpoint_startBreakpointWatch()
182 if (JvmtiErrorToException(env, in Java_art_Breakpoint_startBreakpointWatch()
192 JNIEnv* env, in Java_art_Breakpoint_stopBreakpointWatch() argument
195 if (JvmtiErrorToException(env, jvmti_env, in Java_art_Breakpoint_stopBreakpointWatch()