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

1234

/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 mirror::ArtMethod* method = self->GetCurrentMethod(NULL); local
38 DCHECK(method != NULL);
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(self, native_code, false);
/art/runtime/entrypoints/interpreter/
H A Dinterpreter_entrypoints.cc31 mirror::ArtMethod* method = shadow_frame->GetMethod(); local
33 if (method->IsStatic()) {
34 mirror::Class* declaringClass = method->GetDeclaringClass();
46 // Reload from shadow frame in case the method moved, this is faster than adding a handle.
47 method = shadow_frame->GetMethod();
54 method->Invoke(self, shadow_frame->GetVRegArgs(arg_offset),
/art/runtime/mirror/
H A Ddex_cache-inl.h36 ArtMethod* method = GetResolvedMethods()->Get(method_idx); local
38 if (method != NULL && method->IsRuntimeMethod()) {
39 DCHECK(method == Runtime::Current()->GetResolutionMethod());
42 return method;
/art/runtime/
H A Druntime-inl.h26 inline QuickMethodFrameInfo Runtime::GetRuntimeMethodFrameInfo(mirror::ArtMethod* method) { argument
27 DCHECK(method != nullptr);
28 // Cannot be imt-conflict-method or resolution-method.
29 DCHECK(method != GetImtConflictMethod());
30 DCHECK(method != GetResolutionMethod());
32 if (method == GetCalleeSaveMethodUnchecked(Runtime::kRefsAndArgs)) {
34 } else if (method == GetCalleeSaveMethodUnchecked(Runtime::kSaveAll)) {
37 DCHECK(method == GetCalleeSaveMethodUnchecked(Runtime::kRefsOnly));
H A Dmethod_helper-inl.h47 mirror::ArtMethod* method = GetMethod(); local
48 mirror::Class* type = method->GetDexCacheResolvedType(type_idx);
50 type = Runtime::Current()->GetClassLinker()->ResolveType(type_idx, method);
57 mirror::ArtMethod* method = GetMethod(); local
58 const DexFile* dex_file = method->GetDexFile();
59 const DexFile::MethodId& method_id = dex_file->GetMethodId(method->GetDexMethodIndex());
66 mirror::ArtMethod* method = GetMethod(); local
67 mirror::Class* declaringClass = method->GetDeclaringClass();
71 Handle<mirror::DexCache> dex_cache(hs.NewHandle(method->GetDexCache()));
72 s = Runtime::Current()->GetClassLinker()->ResolveString(*method
[all...]
H A Dmethod_helper.cc30 mirror::ArtMethod* method = method_->GetInterfaceMethodIfProxy(); local
31 uint32_t dex_method_idx = method->GetDexMethodIndex();
34 Handle<mirror::DexCache> dex_cache(hs.NewHandle(method->GetDexCache()));
67 mirror::ArtMethod* method = GetMethod(); local
68 const DexFile* dexfile = method->GetDexFile();
70 return method->GetDexMethodIndex();
72 const DexFile::MethodId& mid = dexfile->GetMethodId(method->GetDexMethodIndex());
108 mirror::ArtMethod* method = GetMethod(); local
109 const DexFile* dexfile = method->GetDexFile();
110 const uint32_t dex_method_idx = method
[all...]
H A Dproxy_test.cc50 // Builds the method array.
62 // Fill the method array
87 mirror::ArtMethod* method = virtual_methods->Get(mth_index); local
89 soa.AddLocalReference<jobject>(method));
H A Dscoped_thread_state_change.h167 mirror::ArtMethod* method = reinterpret_cast<mirror::ArtMethod*>(mid); local
168 return ReadBarrier::BarrierForRoot<mirror::ArtMethod, kWithReadBarrier>(&method);
171 jmethodID EncodeMethod(mirror::ArtMethod* method) const
176 return reinterpret_cast<jmethodID>(method);
/art/test/044-proxy/src/
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 DClash3.java70 public Object invoke(Object proxy, Method method, Object[] args) argument
H A DClash4.java72 public Object invoke(Object proxy, Method method, Object[] args) argument
H A DWrappedThrow.java188 public Object invoke(Object proxy, Method method, Object[] args) argument
195 if (method.getDeclaringClass() == java.lang.Object.class) {
196 //System.out.println("!!! object " + method.getName());
197 if (method.getName().equals("toString"))
199 else if (method.getName().equals("hashCode"))
201 else if (method.getName().equals("equals"))
207 System.out.println("Invoke " + method);
216 if (method.getName().equals("throwFunky"))
218 if (method.getName().equals("throwFunky2"))
220 if (method
[all...]
/art/runtime/entrypoints/portable/
H A Dportable_invoke_entrypoints.cc27 mirror::ArtMethod* method = FindMethodFast(method_idx, this_object, caller_method, local
29 if (UNLIKELY(method == NULL)) {
32 method = FindMethodFromCode<type, access_check>(method_idx, &this_object, &caller_method,
34 if (UNLIKELY(method == NULL)) {
41 const void* code = method->GetEntryPointFromPortableCompiledCode();
48 LOG(FATAL) << "Code was NULL in method: " << PrettyMethod(method)
49 << " location: " << method->GetDexFile()->GetLocation();
51 return method;
H A Dportable_thread_entrypoints.cc34 mirror::ArtMethod* method = cur_frame->GetMethod(); local
36 ShadowFrame* new_frame = ShadowFrame::Create(num_regs, NULL, method, dex_pc);
38 const uint8_t* gc_map = method->GetNativeGcMap(sizeof(void*));
87 mirror::ArtMethod* method,
90 new_shadow_frame->SetMethod(method);
85 art_portable_push_shadow_frame_from_code(Thread* thread, ShadowFrame* new_shadow_frame, mirror::ArtMethod* method, uint32_t num_vregs) argument
/art/runtime/arch/arm/
H A Dcontext_arm.cc45 mirror::ArtMethod* method = fr.GetMethod(); local
46 const QuickMethodFrameInfo frame_info = method->GetQuickFrameInfo();
/art/runtime/arch/arm64/
H A Dcontext_arm64.cc48 mirror::ArtMethod* method = fr.GetMethod(); local
49 const QuickMethodFrameInfo frame_info = method->GetQuickFrameInfo();
/art/runtime/arch/mips/
H A Dcontext_mips.cc44 mirror::ArtMethod* method = fr.GetMethod(); local
45 const QuickMethodFrameInfo frame_info = method->GetQuickFrameInfo();
/art/runtime/arch/x86/
H A Dcontext_x86.cc40 mirror::ArtMethod* method = fr.GetMethod(); local
41 const QuickMethodFrameInfo frame_info = method->GetQuickFrameInfo();
/art/runtime/arch/x86_64/
H A Dcontext_x86_64.cc43 mirror::ArtMethod* method = fr.GetMethod(); local
44 const QuickMethodFrameInfo frame_info = method->GetQuickFrameInfo();
/art/compiler/
H A Dcompiler.cc106 CompiledMethod* method = TryCompileWithSeaIR(code_item, variable
113 if (method != nullptr) {
114 return method;
133 uintptr_t GetEntryPointOf(mirror::ArtMethod* method) const {
134 return reinterpret_cast<uintptr_t>(method->GetEntryPointFromPortableCompiledCode());
H A Dcompilers.cc59 CompiledMethod* method = TryCompileWithSeaIR(code_item, local
66 if (method != nullptr) {
67 return method;
86 uintptr_t QuickCompiler::GetEntryPointOf(mirror::ArtMethod* method) const {
88 return reinterpret_cast<uintptr_t>(method->GetEntryPointFromQuickCompiledCodePtrSize(
149 CompiledMethod* method = TryCompile(code_item, access_flags, invoke_type, class_def_idx, local
151 if (method != nullptr) {
152 return method;
/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.
81 jmethodID method = env->GetStaticMethodID(klass.get(), "main", "([Ljava/lang/String;)V"); local
82 if (method == NULL) {
88 // Make sure the method is public. JNI doesn't prevent us from
89 // calling a private method, so we have to check it explicitly.
90 if (!IsMethodPublic(env, klass.get(), method)) {
97 env->CallStaticVoidMethod(klass.get(), method, args.get());
/art/compiler/driver/
H A Dcompiler_driver_test.cc50 void EnsureCompiled(jobject class_loader, const char* class_name, const char* method,
61 mid_ = env_->GetMethodID(class_, method, signature);
63 mid_ = env_->GetStaticMethodID(class_, method, signature);
65 CHECK(mid_ != NULL) << "Method not found: " << class_name << "." << method << signature;
124 mirror::ArtMethod* method = dex_cache->GetResolvedMethod(i); local
125 EXPECT_TRUE(method != NULL) << "method_idx=" << i
128 EXPECT_TRUE(method->GetEntryPointFromQuickCompiledCode() != NULL) << "method_idx=" << i
133 EXPECT_TRUE(method->GetEntryPointFromPortableCompiledCode() != NULL) << "method_idx=" << i

Completed in 215 milliseconds

1234