Searched refs:method (Results 1 - 25 of 116) sorted by relevance

12345

/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;
H A Dclass.cc363 ArtMethod* method = FindDeclaredVirtualMethod(name, signature); local
364 if (method != nullptr) {
365 return method;
371 method = iftable->GetInterface(i)->FindDeclaredVirtualMethod(name, signature);
372 if (method != nullptr) {
373 return method;
381 ArtMethod* method = FindDeclaredVirtualMethod(name, signature); local
382 if (method != nullptr) {
383 return method;
389 method
399 ArtMethod* method = FindDeclaredVirtualMethod(dex_cache, dex_method_idx); local
417 ArtMethod* method = GetDirectMethod(i); local
427 ArtMethod* method = GetDirectMethod(i); local
438 ArtMethod* method = GetDirectMethod(i); local
449 ArtMethod* method = klass->FindDeclaredDirectMethod(name, signature); local
459 ArtMethod* method = klass->FindDeclaredDirectMethod(name, signature); local
469 ArtMethod* method = klass->FindDeclaredDirectMethod(dex_cache, dex_method_idx); local
479 ArtMethod* method = GetVirtualMethod(i); local
489 ArtMethod* method = GetVirtualMethod(i); local
500 ArtMethod* method = GetVirtualMethod(i); local
514 ArtMethod* method = klass->FindDeclaredVirtualMethod(name, signature); local
524 ArtMethod* method = klass->FindDeclaredVirtualMethod(name, signature); local
534 ArtMethod* method = klass->FindDeclaredVirtualMethod(dex_cache, dex_method_idx); local
544 ArtMethod* method = GetDirectMethod(i); local
707 mirror::ArtMethod* method = methods->GetWithoutChecks(index); local
[all...]
H A Dart_method-inl.h92 ArtMethod* method = GetDexCacheResolvedMethods()->Get(method_index); local
93 if (method != nullptr && !method->GetDeclaringClass()->IsErroneous()) {
94 return method;
235 // On failure, instead of nullptr we get the quick-generic-jni-trampoline for native method
328 // Check that if we do think it is phony it looks like the resolution method.
335 // Check that if we do think it is phony it looks like the imt conflict method.
343 // Check that if we do think it is phony it looks like the imt unimplemented method.
366 // For Proxy method we exclude direct method (ther
417 mirror::ArtMethod* method = GetInterfaceMethodIfProxy(); local
427 mirror::ArtMethod* method = GetInterfaceMethodIfProxy(); local
433 mirror::ArtMethod* method = GetInterfaceMethodIfProxy(); local
443 mirror::ArtMethod* method = GetInterfaceMethodIfProxy(); local
466 mirror::ArtMethod* method = GetInterfaceMethodIfProxy(); local
471 mirror::ArtMethod* method = GetInterfaceMethodIfProxy(); local
476 mirror::ArtMethod* method = GetInterfaceMethodIfProxy(); local
484 mirror::ArtMethod* method = GetInterfaceMethodIfProxy(); local
490 mirror::ArtMethod* method = GetInterfaceMethodIfProxy(); local
506 mirror::ArtMethod* method = GetInterfaceMethodIfProxy(); local
511 mirror::ArtMethod* method = GetInterfaceMethodIfProxy(); local
520 mirror::ArtMethod* method = GetInterfaceMethodIfProxy(); local
[all...]
/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/
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 Dinstrumentation.cc50 // Do we want to deoptimize for method entry and exit listeners or just try to intercept
85 static void UpdateEntrypoints(mirror::ArtMethod* method, const void* quick_code,
89 method->SetEntryPointFromPortableCompiledCode(portable_code);
91 method->SetEntryPointFromQuickCompiledCode(quick_code);
92 bool portable_enabled = method->IsPortableCompiled();
94 method->SetIsPortableCompiled();
96 method->ClearIsPortableCompiled();
98 if (!method->IsResolutionMethod()) {
104 && !method->IsNative() && !method
125 InstallStubsForMethod(mirror::ArtMethod* method) argument
679 UpdateMethodsCode(mirror::ArtMethod* method, const void* quick_code, const void* portable_code, bool have_portable_code) argument
727 AddDeoptimizedMethod(mirror::ArtMethod* method) argument
742 FindDeoptimizedMethod(mirror::ArtMethod* method) argument
765 RemoveDeoptimizedMethod(mirror::ArtMethod* method) argument
784 Deoptimize(mirror::ArtMethod* method) argument
813 Undeoptimize(mirror::ArtMethod* method) argument
862 IsDeoptimized(mirror::ArtMethod* method) argument
883 mirror::ArtMethod* method; local
921 GetQuickCodeFor(mirror::ArtMethod* method, size_t pointer_size) const argument
936 MethodEnterEventImpl(Thread* thread, mirror::Object* this_object, mirror::ArtMethod* method, uint32_t dex_pc) const argument
950 MethodExitEventImpl(Thread* thread, mirror::Object* this_object, mirror::ArtMethod* method, uint32_t dex_pc, const JValue& return_value) const argument
964 MethodUnwindEvent(Thread* thread, mirror::Object* this_object, mirror::ArtMethod* method, uint32_t dex_pc) const argument
974 DexPcMovedEventImpl(Thread* thread, mirror::Object* this_object, mirror::ArtMethod* method, uint32_t dex_pc) const argument
985 FieldReadEventImpl(Thread* thread, mirror::Object* this_object, mirror::ArtMethod* method, uint32_t dex_pc, mirror::ArtField* field) const argument
996 FieldWriteEventImpl(Thread* thread, mirror::Object* this_object, mirror::ArtMethod* method, uint32_t dex_pc, mirror::ArtField* field, const JValue& field_value) const argument
1037 PushInstrumentationStackFrame(Thread* self, mirror::Object* this_object, mirror::ArtMethod* method, uintptr_t lr, bool interpreter_entry) argument
1068 mirror::ArtMethod* method = instrumentation_frame.method_; local
1120 mirror::ArtMethod* method = instrumentation_frame.method_; local
[all...]
H A Dinstrumentation.h54 // the events they are listening for. The call backs supply the thread, method and dex_pc the event
60 // Call-back for when a method is entered.
62 mirror::ArtMethod* method,
65 // Call-back for when a method is exited.
69 mirror::ArtMethod* method, uint32_t dex_pc,
73 // Call-back for when a method is popped due to an exception throw. A method will either cause a
76 mirror::ArtMethod* method, uint32_t dex_pc)
79 // Call-back for when the dex pc moves in a method.
81 mirror::ArtMethod* method, uint32_
470 InstrumentationStackFrame(mirror::Object* this_object, mirror::ArtMethod* method, uintptr_t return_pc, size_t frame_id, bool interpreter_entry) argument
[all...]
H A Dreflection_test.cc84 void ReflectionTestMakeExecutable(mirror::ArtMethod** method,
110 *method = is_static ? c->FindDirectMethod(method_name, method_signature)
112 CHECK(method != nullptr);
133 mirror::ArtMethod* method; local
135 ReflectionTestMakeExecutable(&method, &receiver, is_static, "nop", "()V");
136 InvokeWithJValues(soa, receiver, soa.EncodeMethod(method), nullptr);
141 mirror::ArtMethod* method; local
143 ReflectionTestMakeExecutable(&method, &receiver, is_static, "identity", "(B)B");
147 JValue result = InvokeWithJValues(soa, receiver, soa.EncodeMethod(method), args);
151 result = InvokeWithJValues(soa, receiver, soa.EncodeMethod(method), arg
165 mirror::ArtMethod* method; local
189 mirror::ArtMethod* method; local
213 mirror::ArtMethod* method; local
241 mirror::ArtMethod* method; local
279 mirror::ArtMethod* method; local
322 mirror::ArtMethod* method; local
370 mirror::ArtMethod* method; local
403 mirror::ArtMethod* method; local
429 mirror::ArtMethod* method; local
458 mirror::ArtMethod* method; local
507 mirror::ArtMethod* method = klass->FindDirectMethod("main", "([Ljava/lang/String;)V"); local
[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 Dtrace.h79 mirror::ArtMethod* method, uint32_t dex_pc)
82 mirror::ArtMethod* method, uint32_t dex_pc,
86 mirror::ArtMethod* method, uint32_t dex_pc)
89 mirror::ArtMethod* method, uint32_t new_dex_pc)
92 mirror::ArtMethod* method, uint32_t dex_pc, mirror::ArtField* field)
95 mirror::ArtMethod* method, uint32_t dex_pc, mirror::ArtField* field,
120 void LogMethodTraceEvent(Thread* thread, mirror::ArtMethod* method,
130 // Singleton instance of the Trace or NULL when no method tracing is active.
151 // True if traceview should sample instead of instrumenting method entry/exit.
/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 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...]
H A DBasicTest.java97 /* declare an object that will handle the method calls */
239 public Object invoke(Object proxy, Method method, Object[] args) argument
246 if (method.getDeclaringClass() == java.lang.Object.class) {
247 //System.out.println("!!! object " + method.getName());
248 if (method.getName().equals("toString")) {
250 } else if (method.getName().equals("hashCode")) {
252 } else if (method.getName().equals("equals")) {
259 if (method.getDeclaringClass() == Trace.class) {
260 if (method.getName().equals("getTrace")) {
273 if (method
[all...]
/art/runtime/entrypoints/quick/
H A Dquick_alloc_entrypoints.cc30 uint32_t type_idx, mirror::ArtMethod* method, Thread* self, \
34 return AllocObjectFromCode<false, instrumented_bool>(type_idx, method, self, allocator_type); \
37 mirror::Class* klass, mirror::ArtMethod* method, Thread* self, \
41 return AllocObjectFromCodeResolved<instrumented_bool>(klass, method, self, allocator_type); \
44 mirror::Class* klass, mirror::ArtMethod* method, Thread* self, \
48 return AllocObjectFromCodeInitialized<instrumented_bool>(klass, method, self, allocator_type); \
51 uint32_t type_idx, mirror::ArtMethod* method, Thread* self, \
55 return AllocObjectFromCode<true, instrumented_bool>(type_idx, method, self, allocator_type); \
58 uint32_t type_idx, mirror::ArtMethod* method, int32_t component_count, Thread* self, \
62 return AllocArrayFromCode<false, instrumented_bool>(type_idx, method, component_coun
[all...]
H A Dquick_instrumentation_entrypoints.cc27 extern "C" const void* artInstrumentationMethodEntryFromCode(mirror::ArtMethod* method,
36 if (instrumentation->IsDeoptimized(method)) {
39 result = instrumentation->GetQuickCodeFor(method, sizeof(void*));
44 instrumentation->PushInstrumentationStackFrame(self, method->IsStatic() ? nullptr : this_object,
45 method, lr, interpreter_entry);
46 CHECK(result != NULL) << PrettyMethod(method);
/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/compiler/
H A Dcommon_compiler_test.cc97 // the /proc/cpuinfo method for this because Krait devices don't always put the idivt
153 void CommonCompilerTest::MakeExecutable(mirror::ArtMethod* method) { argument
154 CHECK(method != nullptr);
157 if (!method->IsAbstract()) {
158 mirror::DexCache* dex_cache = method->GetDeclaringClass()->GetDexCache();
162 method->GetDexMethodIndex()));
207 LOG(INFO) << "MakeExecutable " << PrettyMethod(method) << " code=" << method_code;
209 oat_method.LinkMethod(method);
210 method->SetEntryPointFromInterpreter(artInterpreterToCompiledCodeBridge);
214 if (!method
363 CompileMethod(mirror::ArtMethod* method) argument
379 mirror::ArtMethod* method = klass->FindDirectMethod(method_name, signature); local
392 mirror::ArtMethod* method = klass->FindVirtualMethod(method_name, signature); local
[all...]
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/runtime/interpreter/
H A Dinterpreter.cc27 static void UnstartedRuntimeJni(Thread* self, ArtMethod* method,
30 std::string name(PrettyMethod(method));
123 AbortTransaction(self, "Attempt to invoke native method in non-started runtime: %s",
127 LOG(FATAL) << "Calling native method " << PrettyMethod(method) << " in an unstarted "
132 static void InterpreterJni(Thread* self, ArtMethod* method, const StringPiece& shorty,
138 if (method->IsStatic()) {
141 fntype* const fn = reinterpret_cast<fntype*>(method->GetEntryPointFromJni());
143 soa.AddLocalReference<jclass>(method->GetDeclaringClass()));
152 fntype* const fn = reinterpret_cast<fntype*>(method
398 EnterInterpreterFromInvoke(Thread* self, ArtMethod* method, Object* receiver, uint32_t* args, JValue* result) argument
549 ArtMethod* method = shadow_frame->GetMethod(); local
[all...]
/art/runtime/entrypoints/portable/
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
H A Dportable_fillarray_entrypoints.cc24 extern "C" void art_portable_fill_array_data_from_code(mirror::ArtMethod* method,
29 const DexFile::CodeItem* code_item = method->GetCodeItem();
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;
/art/runtime/arch/arm/
H A Djni_entrypoints_arm.S37 cbz r0, 1f @ is method code null?
45 bx r12 @ if non-null, tail call to method's code
/art/runtime/entrypoints/
H A Dentrypoint_utils.h45 mirror::ArtMethod* method,
60 mirror::ArtMethod* method,
68 mirror::ArtMethod* method,
76 mirror::ArtMethod* method,
84 mirror::ArtMethod* method,
95 mirror::ArtMethod* method,
103 mirror::ArtMethod* method,
109 extern mirror::Array* CheckAndAllocArrayFromCode(uint32_t type_idx, mirror::ArtMethod* method,
116 mirror::ArtMethod* method,
151 // Fast path method resolutio
[all...]

Completed in 1171 milliseconds

12345