/art/runtime/mirror/ |
H A D | dex_cache-inl.h | 27 ArtMethod* method = GetResolvedMethods()->Get(method_idx); local 29 if (method != NULL && method->IsRuntimeMethod()) { 30 DCHECK(method == Runtime::Current()->GetResolutionMethod()); 33 return method;
|
H A D | class.cc | 339 ArtMethod* method = FindDeclaredVirtualMethod(name, signature); local 340 if (method != NULL) { 341 return method; 347 method = iftable->GetInterface(i)->FindDeclaredVirtualMethod(name, signature); 348 if (method != NULL) { 349 return method; 357 ArtMethod* method = FindDeclaredVirtualMethod(dex_cache, dex_method_idx); local 358 if (method != NULL) { 359 return method; 365 method 377 ArtMethod* method = GetDirectMethod(i); local 389 ArtMethod* method = GetDirectMethod(i); local 400 ArtMethod* method = klass->FindDeclaredDirectMethod(name, signature); local 410 ArtMethod* method = klass->FindDeclaredDirectMethod(dex_cache, dex_method_idx); local 422 ArtMethod* method = GetVirtualMethod(i); local 434 ArtMethod* method = GetVirtualMethod(i); local 445 ArtMethod* method = klass->FindDeclaredVirtualMethod(name, signature); local 455 ArtMethod* method = klass->FindDeclaredVirtualMethod(dex_cache, dex_method_idx); local 612 mirror::ArtMethod* method = methods->GetWithoutChecks(index); local [all...] |
H A D | class-inl.h | 211 inline ArtMethod* Class::FindVirtualMethodForInterface(ArtMethod* method) const { 212 Class* declaring_class = method->GetDeclaringClass(); 214 DCHECK(declaring_class->IsInterface()) << PrettyMethod(method); 220 return iftable->GetMethodArray(i)->Get(method->GetMethodIndex()); 226 inline ArtMethod* Class::FindVirtualMethodForVirtual(ArtMethod* method) const 228 DCHECK(!method->GetDeclaringClass()->IsInterface() || method->IsMiranda()); 229 // The argument method may from a super class. 231 return GetVTable()->Get(method->GetMethodIndex()); 234 inline ArtMethod* Class::FindVirtualMethodForSuper(ArtMethod* method) cons [all...] |
H A D | throwable.cc | 62 // Decode the internal stack trace into the depth and method trace 68 ArtMethod* method = down_cast<ArtMethod*>(method_trace->Get(i)); local 69 mh.ChangeMethod(method); 73 result += StringPrintf(" at %s (%s:%d)\n", PrettyMethod(method, true).c_str(),
|
/art/runtime/entrypoints/quick/ |
H A D | quick_alloc_entrypoints.cc | 26 extern "C" mirror::Object* artAllocObjectFromCode(uint32_t type_idx, mirror::ArtMethod* method, 30 return AllocObjectFromCode(type_idx, method, self, false); 34 mirror::ArtMethod* method, 39 return AllocObjectFromCode(type_idx, method, self, true); 42 extern "C" mirror::Array* artAllocArrayFromCode(uint32_t type_idx, mirror::ArtMethod* method, 47 return AllocArrayFromCode(type_idx, method, component_count, self, false); 51 mirror::ArtMethod* method, 57 return AllocArrayFromCode(type_idx, method, component_count, self, true); 61 mirror::ArtMethod* method, 66 return CheckAndAllocArrayFromCode(type_idx, method, component_coun [all...] |
H A D | quick_instrumentation_entrypoints.cc | 26 extern "C" const void* artInstrumentationMethodEntryFromCode(mirror::ArtMethod* method, 34 const void* result = instrumentation->GetQuickCodeFor(method); 36 instrumentation->PushInstrumentationStackFrame(self, method->IsStatic() ? NULL : this_object, 37 method, lr, interpreter_entry); 38 CHECK(result != NULL) << PrettyMethod(method);
|
H A D | quick_invoke_entrypoints.cc | 34 mirror::ArtMethod* method; local 36 method = this_object->GetClass()->FindVirtualMethodForInterface(interface_method); 37 if (UNLIKELY(method == NULL)) { 46 // Determine method index from calling dex instruction. 121 method = FindMethodFromCode(dex_method_idx, this_object, caller_method, self, 123 if (UNLIKELY(method == NULL)) { 128 const void* code = method->GetEntryPointFromCompiledCode(); 133 MethodHelper mh(method); 134 LOG(FATAL) << "Code was NULL in method: " << PrettyMethod(method) 151 mirror::ArtMethod* method = FindMethodFast(method_idx, this_object, caller_method, local [all...] |
/art/runtime/entrypoints/interpreter/ |
H A D | interpreter_entrypoints.cc | 31 mirror::ArtMethod* method = shadow_frame->GetMethod(); local 33 if (method->IsStatic()) { 34 Runtime::Current()->GetClassLinker()->EnsureInitialized(method->GetDeclaringClass(), true, true); 40 method->Invoke(self, arg_array.GetArray(), arg_array.GetNumBytes(), result, mh.GetShorty()[0]); 42 method->Invoke(self, shadow_frame->GetVRegArgs(arg_offset),
|
/art/runtime/ |
H A D | instrumentation.h | 42 // the events they are listening for. The call backs supply the thread, method and dex_pc the event 48 // Call-back for when a method is entered. 50 const mirror::ArtMethod* method, 53 // Call-back for when a method is exited. 57 const mirror::ArtMethod* method, uint32_t dex_pc, 61 // Call-back for when a method is popped due to an exception throw. A method will either cause a 63 virtual void MethodUnwind(Thread* thread, const mirror::ArtMethod* method, 66 // Call-back for when the dex pc moves in a method. 68 const mirror::ArtMethod* method, uint32_ 275 InstrumentationStackFrame(mirror::Object* this_object, mirror::ArtMethod* method, uintptr_t return_pc, size_t frame_id, bool interpreter_entry) argument [all...] |
H A D | instrumentation.cc | 58 mirror::ArtMethod* method = klass->GetDirectMethod(i); local 59 if (!method->IsAbstract()) { 62 if (forced_interpret_only_ && !method->IsNative() && !method->IsProxyMethod()) { 64 } else if (is_initialized || !method->IsStatic() || method->IsConstructor()) { 65 new_code = class_linker->GetOatCodeFor(method); 70 if (!interpreter_stubs_installed_ || method->IsNative()) { 76 method->SetEntryPointFromCompiledCode(new_code); 80 mirror::ArtMethod* method local 172 mirror::ArtMethod* method = (*it).method_; local 379 UpdateMethodsCode(mirror::ArtMethod* method, const void* code) const argument 404 MethodEnterEventImpl(Thread* thread, mirror::Object* this_object, const mirror::ArtMethod* method, uint32_t dex_pc) const argument 418 MethodExitEventImpl(Thread* thread, mirror::Object* this_object, const mirror::ArtMethod* method, uint32_t dex_pc, const JValue& return_value) const argument 432 MethodUnwindEvent(Thread* thread, mirror::Object* this_object, const mirror::ArtMethod* method, uint32_t dex_pc) const argument 442 DexPcMovedEventImpl(Thread* thread, mirror::Object* this_object, const mirror::ArtMethod* method, uint32_t dex_pc) const argument 481 PushInstrumentationStackFrame(Thread* self, mirror::Object* this_object, mirror::ArtMethod* method, uintptr_t lr, bool interpreter_entry) argument 509 mirror::ArtMethod* method = instrumentation_frame.method_; local 560 mirror::ArtMethod* method = instrumentation_frame.method_; local [all...] |
H A D | jni_internal_test.cc | 81 void DoCompile(mirror::ArtMethod*& method, 104 method = is_static ? c->FindDirectMethod(method_name, method_signature) 106 CHECK(method != NULL); 117 mirror::ArtMethod* method; local 119 DoCompile(method, receiver, is_static, "nop", "()V"); 128 method->Invoke(Thread::Current(), arg_array.GetArray(), arg_array.GetNumBytes(), &result, 'V'); 133 mirror::ArtMethod* method; local 135 DoCompile(method, receiver, is_static, "identity", "(I)I"); 148 method->Invoke(Thread::Current(), arg_array.GetArray(), arg_array.GetNumBytes(), &result, 'B'); 153 method 169 mirror::ArtMethod* method; local 205 mirror::ArtMethod* method; local 249 mirror::ArtMethod* method; local 295 mirror::ArtMethod* method; local 346 mirror::ArtMethod* method; local 402 mirror::ArtMethod* method; local 463 mirror::ArtMethod* method; local 529 mirror::ArtMethod* method; local 584 mirror::ArtMethod* method; local 648 mirror::ArtMethod* method; local 883 jmethodID method = env_->GetMethodID(jlobject, "foo", "()V"); local 884 EXPECT_EQ(static_cast<jmethodID>(NULL), method); local 889 EXPECT_NE(static_cast<jmethodID>(NULL), method); local 895 EXPECT_EQ(static_cast<jmethodID>(NULL), method); local 900 EXPECT_NE(static_cast<jmethodID>(NULL), method); local 913 jmethodID method = env_->GetStaticMethodID(jlobject, "foo", "()V"); local 914 EXPECT_EQ(static_cast<jmethodID>(NULL), method); local 920 EXPECT_EQ(static_cast<jmethodID>(NULL), method); local 927 EXPECT_NE(static_cast<jmethodID>(NULL), method); local 956 jobject method = env_->ToReflectedMethod(c, mid, JNI_FALSE); local 1646 mirror::ArtMethod* method = klass->FindDirectMethod("main", "([Ljava/lang/String;)V"); local [all...] |
H A D | common_test.h | 185 void MakeExecutable(mirror::ArtMethod* method) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { 186 CHECK(method != NULL); 187 LOG(INFO) << "MakeExecutable " << PrettyMethod(method); 190 if (!method->IsAbstract()) { 191 const mirror::DexCache* dex_cache = method->GetDeclaringClass()->GetDexCache(); 195 method->GetDexMethodIndex())); 202 LOG(INFO) << "MakeExecutable " << PrettyMethod(method) << " code=" << method_code; 210 oat_method.LinkMethod(method); 211 method->SetEntryPointFromInterpreter(artInterpreterToCompiledCodeBridge); 216 LOG(INFO) << "MakeExecutable " << PrettyMethod(method) << " cod 487 mirror::ArtMethod* method = klass->FindDirectMethod(method_name, signature); local 501 mirror::ArtMethod* method = klass->FindVirtualMethod(method_name, signature); local [all...] |
H A D | trace.cc | 61 // u4 method ID | method action 66 // u4 method ID | method action 71 // u4 method ID | method action 80 kTraceMethodEnter = 0x00, // method entry 81 kTraceMethodExit = 0x01, // method exit 82 kTraceUnroll = 0x02, // method exited by exception unrolling 136 static uint32_t EncodeTraceMethodAndAction(const mirror::ArtMethod* method, argument 473 mirror::ArtMethod* method = DecodeTraceMethodId(tmid); local 547 DexPcMoved(Thread* thread, mirror::Object* this_object, const mirror::ArtMethod* method, uint32_t new_dex_pc) argument 553 MethodEntered(Thread* thread, mirror::Object* this_object, const mirror::ArtMethod* method, uint32_t dex_pc) argument 562 MethodExited(Thread* thread, mirror::Object* this_object, const mirror::ArtMethod* method, uint32_t dex_pc, const JValue& return_value) argument 573 MethodUnwind(Thread* thread, const mirror::ArtMethod* method, uint32_t dex_pc) argument 604 LogMethodTraceEvent(Thread* thread, const mirror::ArtMethod* method, instrumentation::Instrumentation::InstrumentationEvent event, uint32_t thread_clock_diff, uint32_t wall_clock_diff) argument 658 mirror::ArtMethod* method = DecodeTraceMethodId(tmid); local [all...] |
/art/runtime/entrypoints/portable/ |
H A D | portable_invoke_entrypoints.cc | 31 mirror::ArtMethod* method = FindMethodFast(method_idx, local 36 if (UNLIKELY(method == NULL)) { 37 method = FindMethodFromCode(method_idx, this_object, caller_method, 39 if (UNLIKELY(method == NULL)) { 45 const void* code = method->GetEntryPointFromCompiledCode(); 49 MethodHelper mh(method); 50 LOG(FATAL) << "Code was NULL in method: " << PrettyMethod(method) 53 return method;
|
H A D | portable_thread_entrypoints.cc | 34 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(); 91 mirror::ArtMethod* method, 94 new_shadow_frame->SetMethod(method); 89 art_portable_push_shadow_frame_from_code(Thread* thread, ShadowFrame* new_shadow_frame, mirror::ArtMethod* method, uint32_t num_vregs) argument
|
H A D | portable_fillarray_entrypoints.cc | 24 extern "C" void art_portable_fill_array_data_from_code(mirror::ArtMethod* method, 29 const DexFile::CodeItem* code_item = MethodHelper(method).GetCodeItem();
|
/art/test/044-proxy/src/ |
H A D | WrappedThrow.java | 188 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 D | BasicTest.java | 94 /* declare an object that will handle the method calls */ 232 public Object invoke(Object proxy, Method method, Object[] args) argument 239 if (method.getDeclaringClass() == java.lang.Object.class) { 240 //System.out.println("!!! object " + method.getName()); 241 if (method.getName().equals("toString")) 243 else if (method.getName().equals("hashCode")) 245 else if (method.getName().equals("equals")) 251 System.out.println("Invoke " + method); 261 result = method.invoke(mObj, args); 264 System.out.println("Success: method " [all...] |
H A D | NarrowingTest.java | 26 // Note that this method declaration narrows the return type. 37 public Object invoke(Object proxy, Method method, 39 System.out.println("Invocation of " + method);
|
/art/runtime/arch/arm/ |
H A D | jni_entrypoints_arm.S | 35 cbz r0, 1f @ is method code null? 38 bx r12 @ if non-null, tail call to method's code
|
H A D | context_arm.cc | 44 mirror::ArtMethod* method = fr.GetMethod(); local 45 uint32_t core_spills = method->GetCoreSpillMask(); 46 uint32_t fp_core_spills = method->GetFpSpillMask(); 49 size_t frame_size = method->GetFrameSizeInBytes();
|
/art/runtime/arch/x86/ |
H A D | context_x86.cc | 39 mirror::ArtMethod* method = fr.GetMethod(); local 40 uint32_t core_spills = method->GetCoreSpillMask(); 42 DCHECK_EQ(method->GetFpSpillMask(), 0u); 43 size_t frame_size = method->GetFrameSizeInBytes();
|
/art/runtime/entrypoints/jni/ |
H A D | jni_entrypoints.cc | 27 // Used by the JNI dlsym stub to find the native method to invoke if none is registered. 33 mirror::ArtMethod* method = self->GetCurrentMethod(NULL); local 34 DCHECK(method != NULL); 36 // Lookup symbol address for method, on failure we'll return NULL with an exception set, 37 // otherwise we return the address of the method we found. 38 void* native_code = soa.Vm()->FindCodeForNativeMethod(method); 44 method->RegisterNative(self, native_code); 63 // | arg3 | <- Calling JNI method's frame (and extra bit for out args)
|
/art/runtime/arch/mips/ |
H A D | context_mips.cc | 43 mirror::ArtMethod* method = fr.GetMethod(); local 44 uint32_t core_spills = method->GetCoreSpillMask(); 45 uint32_t fp_core_spills = method->GetFpSpillMask(); 48 size_t frame_size = method->GetFrameSizeInBytes();
|
H A D | jni_entrypoints_mips.S | 50 move $t9, $v0 # put method code result in $t9 51 jr $t9 # leaf call to method's code
|