Lines Matching refs:jklass_
108 jklass_ = env_->FindClass("MyClassNatives"); in SetUpForTest()
109 ASSERT_TRUE(jklass_ != nullptr) << method_name << " " << method_sig; in SetUpForTest()
112 jmethod_ = env_->GetStaticMethodID(jklass_, method_name, method_sig); in SetUpForTest()
114 jmethod_ = env_->GetMethodID(jklass_, method_name, method_sig); in SetUpForTest()
120 ASSERT_EQ(JNI_OK, env_->RegisterNatives(jklass_, methods, 1)) in SetUpForTest()
123 env_->UnregisterNatives(jklass_); in SetUpForTest()
126 jmethodID constructor = env_->GetMethodID(jklass_, "<init>", "()V"); in SetUpForTest()
127 jobj_ = env_->NewObject(jklass_, constructor); in SetUpForTest()
132 static jclass jklass_; member in art::JniCompilerTest
184 jclass JniCompilerTest::jklass_; member in art::JniCompilerTest
206 EXPECT_TRUE(env->IsInstanceOf(thisObj, JniCompilerTest::jklass_)); in Java_MyClassNatives_foo()
216 env_->CallNonvirtualVoidMethod(jobj_, jklass_, jmethod_); in CompileAndRunNoArgMethodImpl()
218 env_->CallNonvirtualVoidMethod(jobj_, jklass_, jmethod_); in CompileAndRunNoArgMethodImpl()
235 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 24); in JNI_TEST()
250 jint result = env_->CallStaticIntMethod(jklass_, jmethod_, 42); in JNI_TEST()
262 EXPECT_TRUE(env->IsInstanceOf(thisObj, JniCompilerTest::jklass_)); in Java_MyClassNatives_fooI()
274 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 42); in CompileAndRunIntMethodImpl()
277 result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 0xCAFED00D); in CompileAndRunIntMethodImpl()
292 EXPECT_TRUE(env->IsInstanceOf(thisObj, JniCompilerTest::jklass_)); in Java_MyClassNatives_fooII()
304 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 99, 10); in CompileAndRunIntIntMethodImpl()
307 result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 0xCAFEBABE, in CompileAndRunIntIntMethodImpl()
323 EXPECT_TRUE(env->IsInstanceOf(thisObj, JniCompilerTest::jklass_)); in Java_MyClassNatives_fooJJ()
337 jlong result = env_->CallNonvirtualLongMethod(jobj_, jklass_, jmethod_, a, b); in CompileAndRunLongLongMethodImpl()
340 result = env_->CallNonvirtualLongMethod(jobj_, jklass_, jmethod_, b, a); in CompileAndRunLongLongMethodImpl()
355 EXPECT_TRUE(env->IsInstanceOf(thisObj, JniCompilerTest::jklass_)); in Java_MyClassNatives_fooDD()
367 jdouble result = env_->CallNonvirtualDoubleMethod(jobj_, jklass_, jmethod_, in CompileAndRunDoubleDoubleMethodImpl()
373 result = env_->CallNonvirtualDoubleMethod(jobj_, jklass_, jmethod_, a, b); in CompileAndRunDoubleDoubleMethodImpl()
386 EXPECT_TRUE(env->IsInstanceOf(thisObj, JniCompilerTest::jklass_)); in Java_MyClassNatives_fooJJ_synchronized()
400 jlong result = env_->CallNonvirtualLongMethod(jobj_, jklass_, jmethod_, a, b); in CompileAndRun_fooJJ_synchronizedImpl()
416 EXPECT_TRUE(env->IsInstanceOf(thisObj, JniCompilerTest::jklass_)); in Java_MyClassNatives_fooIOO()
438 jobject result = env_->CallNonvirtualObjectMethod(jobj_, jklass_, jmethod_, 0, nullptr, nullptr); in CompileAndRunIntObjectObjectMethodImpl()
442 result = env_->CallNonvirtualObjectMethod(jobj_, jklass_, jmethod_, 0, nullptr, jklass_); in CompileAndRunIntObjectObjectMethodImpl()
445 result = env_->CallNonvirtualObjectMethod(jobj_, jklass_, jmethod_, 1, nullptr, jklass_); in CompileAndRunIntObjectObjectMethodImpl()
448 result = env_->CallNonvirtualObjectMethod(jobj_, jklass_, jmethod_, 2, nullptr, jklass_); in CompileAndRunIntObjectObjectMethodImpl()
449 EXPECT_TRUE(env_->IsSameObject(jklass_, result)); in CompileAndRunIntObjectObjectMethodImpl()
452 result = env_->CallNonvirtualObjectMethod(jobj_, jklass_, jmethod_, 0, jklass_, nullptr); in CompileAndRunIntObjectObjectMethodImpl()
455 result = env_->CallNonvirtualObjectMethod(jobj_, jklass_, jmethod_, 1, jklass_, nullptr); in CompileAndRunIntObjectObjectMethodImpl()
456 EXPECT_TRUE(env_->IsSameObject(jklass_, result)); in CompileAndRunIntObjectObjectMethodImpl()
458 result = env_->CallNonvirtualObjectMethod(jobj_, jklass_, jmethod_, 2, jklass_, nullptr); in CompileAndRunIntObjectObjectMethodImpl()
485 jint result = env_->CallStaticIntMethod(jklass_, jmethod_, 20, 30); in CompileAndRunStaticIntIntMethodImpl()
512 jdouble result = env_->CallStaticDoubleMethod(jklass_, jmethod_, 99.0, 10.0); in CompileAndRunStaticDoubleDoubleMethodImpl()
517 result = env_->CallStaticDoubleMethod(jklass_, jmethod_, a, b); in CompileAndRunStaticDoubleDoubleMethodImpl()
537 jdouble result = env_->CallStaticDoubleMethod(jklass_, jmethod_, 2.0); in RunStaticLogDoubleMethodImpl()
550 jfloat result = env_->CallStaticFloatMethod(jklass_, jmethod_, 2.0); in RunStaticLogFloatMethodImpl()
571 jboolean result = env_->CallStaticBooleanMethod(jklass_, jmethod_); in RunStaticReturnTrueImpl()
581 jboolean result = env_->CallStaticBooleanMethod(jklass_, jmethod_); in JNI_TEST()
590 jint result = env_->CallStaticIntMethod(jklass_, jmethod_); in JNI_TEST()
626 jobject result = env_->CallStaticObjectMethod(jklass_, jmethod_, 0, nullptr, nullptr); in CompileAndRunStaticIntObjectObjectMethodImpl()
627 EXPECT_TRUE(env_->IsSameObject(jklass_, result)); in CompileAndRunStaticIntObjectObjectMethodImpl()
630 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 0, nullptr, jobj_); in CompileAndRunStaticIntObjectObjectMethodImpl()
631 EXPECT_TRUE(env_->IsSameObject(jklass_, result)); in CompileAndRunStaticIntObjectObjectMethodImpl()
633 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 1, nullptr, jobj_); in CompileAndRunStaticIntObjectObjectMethodImpl()
636 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 2, nullptr, jobj_); in CompileAndRunStaticIntObjectObjectMethodImpl()
640 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 0, jobj_, nullptr); in CompileAndRunStaticIntObjectObjectMethodImpl()
641 EXPECT_TRUE(env_->IsSameObject(jklass_, result)); in CompileAndRunStaticIntObjectObjectMethodImpl()
643 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 1, jobj_, nullptr); in CompileAndRunStaticIntObjectObjectMethodImpl()
646 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 2, jobj_, nullptr); in CompileAndRunStaticIntObjectObjectMethodImpl()
683 jobject result = env_->CallStaticObjectMethod(jklass_, jmethod_, 0, nullptr, nullptr); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
684 EXPECT_TRUE(env_->IsSameObject(jklass_, result)); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
687 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 0, nullptr, jobj_); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
688 EXPECT_TRUE(env_->IsSameObject(jklass_, result)); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
690 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 1, nullptr, jobj_); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
693 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 2, nullptr, jobj_); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
697 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 0, jobj_, nullptr); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
698 EXPECT_TRUE(env_->IsSameObject(jklass_, result)); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
700 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 1, jobj_, nullptr); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
703 result = env_->CallStaticObjectMethod(jklass_, jmethod_, 2, jobj_, nullptr); in CompileAndRunStaticSynchronizedIntObjectObjectMethodImpl()
737 env_->CallNonvirtualVoidMethod(jobj_, jklass_, jmethod_); in ExceptionHandlingImpl()
746 env_->CallNonvirtualVoidMethod(jobj_, jklass_, jmethod_); in ExceptionHandlingImpl()
755 env_->CallNonvirtualVoidMethod(jobj_, jklass_, jmethod_); in ExceptionHandlingImpl()
804 jint result = env_->CallNonvirtualIntMethod(jobj_, jklass_, jmethod_, 10); in NativeStackTraceElementImpl()
817 jobject result = env_->CallNonvirtualObjectMethod(jobj_, jklass_, jmethod_, jobj_); in ReturnGlobalRefImpl()
845 EXPECT_TRUE(env->IsSameObject(JniCompilerTest::jklass_, klass)); in JNI_TEST()
846 EXPECT_TRUE(env->IsSameObject(JniCompilerTest::jklass_, dst)); in JNI_TEST()
856 env_->CallStaticVoidMethod(jklass_, jmethod_, jobj_, 1234, jklass_, 5678, 9876); in JavaLangSystemArrayCopyImpl()
892 jint result = env_->CallStaticIntMethod(jklass_, jmethod_, 0x12345678ABCDEF88ll, jobj_, in GetTextImpl()
907 EXPECT_TRUE(env->IsInstanceOf(thisObj, JniCompilerTest::jklass_)); in Java_MyClassNatives_GetSinkProperties()
922 env_->CallNonvirtualObjectMethod(jobj_, jklass_, jmethod_, nullptr)); in GetSinkPropertiesNativeImpl()
953 env_->CallStaticObjectMethod(jklass_, jmethod_); in UpcallReturnTypeChecking_InstanceImpl()
965 env_->CallStaticObjectMethod(jklass_, jmethod_); in JNI_TEST()
969 env_->CallStaticObjectMethod(jklass_, jmethod_); in JNI_TEST()
1009 env_->CallStaticVoidMethod(jklass_, jmethod_, 123, env_->NewStringUTF("not a class!")); in JNI_TEST()
1019 EXPECT_TRUE(env->IsInstanceOf(thisObj, JniCompilerTest::jklass_)); in JNI_TEST()
1029 jfloat result = env_->CallNonvirtualFloatMethod(jobj_, jklass_, jmethod_, in CompileAndRunFloatFloatMethodImpl()
1034 result = env_->CallNonvirtualFloatMethod(jobj_, jklass_, jmethod_, a, b); in CompileAndRunFloatFloatMethodImpl()
1058 env_->CallNonvirtualVoidMethod(jobj_, jklass_, jmethod_, 1234, INT64_C(0x12345678ABCDEF0)); in CheckParameterAlignImpl()
1099 EXPECT_TRUE(env->IsInstanceOf(thisObj, JniCompilerTest::jklass_)); in JNI_TEST()
1479 env_->CallNonvirtualVoidMethodA(jobj_, jklass_, jmethod_, args); in MaxParamNumberImpl()
1488 env_->CallNonvirtualVoidMethodA(jobj_, jklass_, jmethod_, args); in MaxParamNumberImpl()
1585 env_->CallStaticVoidMethod(jklass_, jmethod_, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, f1, f2, in StackArgsIntsFirstImpl()
1655 env_->CallStaticVoidMethod(jklass_, jmethod_, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, i1, i2, i3, in StackArgsFloatsFirstImpl()
1724 env_->CallStaticVoidMethod(jklass_, jmethod_, i1, f1, i2, f2, i3, f3, i4, f4, i5, f5, i6, f6, i7, in StackArgsMixedImpl()
1770 env_->CallStaticVoidMethod(jklass_, jmethod_, i1, i2, i3, i4, i5, i6, i7, i8); in StackArgsSignExtendedMips64Impl()