Searched defs:method (Results 1 - 25 of 112) sorted by relevance

12345

/art/test/435-new-instance/src/
H A DTestInterface.java18 public void method(); method in interface:TestInterface
H A DTestClass.java20 public void method() {}; method in class:TestClass
H A DMain.java33 private static void $opt$NewInstance(String method, String errorName) throws Throwable { argument
36 Method m = c.getMethod(method);
/art/test/508-referrer-method/src/p1/
H A DPackagePrivateA.java20 protected static int method() { method in class:PackagePrivateA
H A DInPackage.java20 public static int $inline$method() {
22 // of the protected method, so that the Main class also has
24 return PublicB.method();
/art/test/511-clinit-interface/src/
H A DMain.java26 public static void method() { method in class:Main
/art/runtime/entrypoints/jni/
H A Djni_entrypoints.cc26 // Used by the JNI dlsym stub to find the native method to invoke if none is registered.
37 ArtMethod* method = self->GetCurrentMethod(nullptr); local
38 DCHECK(method != nullptr);
40 // Lookup symbol address for method, on failure we'll return null with an exception set,
41 // otherwise we return the address of the method we found.
42 void* native_code = soa.Vm()->FindCodeForNativeMethod(method);
48 method->RegisterNative(native_code, false);
/art/test/044-proxy/src/
H A DConstructorProxy.java49 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { argument
H A DFloatSelect.java25 public float method(float a, float b); method in interface:FloatSelect.FloatSelectI
29 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { argument
40 float floatResult = proxyObject.method(2.1f, 5.8f);
H A DClash.java65 public Object invoke(Object proxy, Method method, Object[] args) argument
H A DClash2.java55 public Object invoke(Object proxy, Method method, Object[] args) argument
H A DNativeProxy.java28 * Test invoking a proxy method from native code.
54 final Method method,
56 System.out.println(method.getName());
53 invoke(final Object proxy, final Method method, final Object[] args) argument
/art/runtime/mirror/
H A Dabstract_method.cc25 bool AbstractMethod::CreateFromArtMethod(ArtMethod* method) { argument
26 auto* interface_method = method->GetInterfaceMethodIfProxy(
30 SetArtMethod<kTransactionActive>(method);
31 SetFieldObject<kTransactionActive>(DeclaringClassOffset(), method->GetDeclaringClass());
34 SetField32<kTransactionActive>(AccessFlagsOffset(), method->GetAccessFlags());
35 SetField32<kTransactionActive>(DexMethodIndexOffset(), method->GetDexMethodIndex());
39 template bool AbstractMethod::CreateFromArtMethod<false>(ArtMethod* method);
40 template bool AbstractMethod::CreateFromArtMethod<true>(ArtMethod* method);
47 void AbstractMethod::SetArtMethod(ArtMethod* method) { argument
48 SetField64<kTransactionActive>(ArtMethodOffset(), reinterpret_cast<uint64_t>(method));
[all...]
H A Dmethod.cc17 #include "method.h"
55 Method* Method::CreateFromArtMethod(Thread* self, ArtMethod* method) { argument
56 DCHECK(!method->IsConstructor()) << PrettyMethod(method);
59 static_cast<AbstractMethod*>(ret)->CreateFromArtMethod<kTransactionActive>(method);
64 template Method* Method::CreateFromArtMethod<false>(Thread* self, ArtMethod* method);
65 template Method* Method::CreateFromArtMethod<true>(Thread* self, ArtMethod* method);
100 Constructor* Constructor::CreateFromArtMethod(Thread* self, ArtMethod* method) { argument
101 DCHECK(method->IsConstructor()) << PrettyMethod(method);
[all...]
/art/runtime/
H A Dimtable.h30 // Interface method table size. Increasing this value reduces the chance of two interface methods
31 // colliding in the interface method table but increases the size of classes that implement
47 void Set(size_t index, ArtMethod* method, size_t pointer_size) { argument
51 uintptr_t value = reinterpret_cast<uintptr_t>(method);
55 *reinterpret_cast<uint64_t*>(ptr) = reinterpret_cast<uint64_t>(method);
H A Druntime-inl.h38 inline QuickMethodFrameInfo Runtime::GetRuntimeMethodFrameInfo(ArtMethod* method) { argument
39 DCHECK(method != nullptr);
40 // Cannot be imt-conflict-method or resolution-method.
41 DCHECK_NE(method, GetImtConflictMethod());
42 DCHECK_NE(method, GetResolutionMethod());
44 if (method == GetCalleeSaveMethodUnchecked(Runtime::kRefsAndArgs)) {
46 } else if (method == GetCalleeSaveMethodUnchecked(Runtime::kSaveAll)) {
49 DCHECK_EQ(method, GetCalleeSaveMethodUnchecked(Runtime::kRefsOnly));
/art/runtime/native/
H A Djava_lang_reflect_AbstractMethod.cc32 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); local
33 if (method->GetDeclaringClass()->IsProxyClass()) {
41 return soa.AddLocalReference<jobjectArray>(method->GetDexFile()->GetAnnotationsForMethod(method));
46 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); local
47 if (method->GetDeclaringClass()->IsProxyClass()) {
52 method->GetDexFile()->GetSignatureAnnotationForMethod(method));
59 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); local
60 if (method
[all...]
/art/test/124-missing-classes/src/
H A DMain.java42 MissingClass method() { method in class:Main.ClassWithMissingMethodReturnType
57 void method(MissingClass arg) {} method in class:Main.ClassWithMissingMethodParameterType
/art/test/485-checker-dce-switch/src/
H A DMain.java19 public static int $inline$method() {
34 int i = $inline$method();
74 int i = $inline$method();
110 int i = $inline$method() + 10;
146 int i = $inline$method() - 10;
/art/test/497-inlining-and-class-loader/
H A Dclear_dex_cache.cc47 ArtMethod* method = mirror::DexCache::GetElementPtrSize(methods, i, sizeof(void*)); local
48 pointer_array->SetElementPtrSize(i, method, sizeof(void*));
64 ArtMethod* method = old->GetElementPtrSize<ArtMethod*>(i, sizeof(void*)); local
65 mirror::DexCache::SetElementPtrSize(methods, i, method, sizeof(void*));
/art/test/510-checker-try-catch/src/
H A DMain.java40 public static void testMethod(String method) throws Exception { argument
42 Method m = c.getMethod(method, new Class[] { boolean.class, boolean.class });
49 throw new Error("Method: \"" + method + "\", path: " + path + ", " +
/art/test/566-polymorphic-inlining/
H A Dpolymorphic_inline.cc31 ArtMethod* method = klass->FindDeclaredDirectMethodByName(method_name, sizeof(void*)); local
36 header = OatQuickMethodHeader::FromEntryPoint(method->GetEntryPointFromQuickCompiledCode());
/art/runtime/arch/arm/
H A Dquick_entrypoints_cc_arm.cc28 static void quick_invoke_reg_setup(ArtMethod* method, uint32_t* args, uint32_t args_size, argument
98 art_quick_invoke_stub_internal(method, args, args_size, self, result, result_in_float,
102 // Called by art::ArtMethod::Invoke to do entry into a non-static method.
104 extern "C" void art_quick_invoke_stub(ArtMethod* method, uint32_t* args, uint32_t args_size, argument
106 quick_invoke_reg_setup<false>(method, args, args_size, self, result, shorty);
109 // Called by art::ArtMethod::Invoke to do entry into a static method.
111 extern "C" void art_quick_invoke_static_stub(ArtMethod* method, uint32_t* args, argument
114 quick_invoke_reg_setup<true>(method, args, args_size, self, result, shorty);
/art/runtime/jit/
H A Dprofiling_info.cc28 ProfilingInfo::ProfilingInfo(ArtMethod* method, const std::vector<uint32_t>& entries) argument
30 method_(method),
39 if (method->IsCopied()) {
40 // GetHoldingClassOfCopiedMethod is expensive, but creating a profiling info for a copied method
43 Runtime::Current()->GetClassLinker()->GetHoldingClassOfCopiedMethod(method));
45 holding_class_ = GcRoot<mirror::Class>(method->GetDeclaringClass());
50 bool ProfilingInfo::Create(Thread* self, ArtMethod* method, bool retry_allocation) { argument
51 // Walk over the dex instructions of the method and keep track of
53 DCHECK(!method->IsNative());
55 const DexFile::CodeItem& code_item = *method
[all...]
/art/dalvikvm/
H A Ddalvikvm.cc31 // Determine whether or not the specified method is public.
35 fprintf(stderr, "Failed to get reflected method\n");
39 // getModifiers() method.
82 jmethodID method = env->GetStaticMethodID(klass.get(), "main", "([Ljava/lang/String;)V"); local
83 if (method == nullptr) {
89 // Make sure the method is public. JNI doesn't prevent us from
90 // calling a private method, so we have to check it explicitly.
91 if (!IsMethodPublic(env, klass.get(), method)) {
98 env->CallStaticVoidMethod(klass.get(), method, args.get());

Completed in 2609 milliseconds

12345