/art/runtime/native/ |
H A D | java_lang_reflect_Method.cc | 34 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); local 35 if (method->GetDeclaringClass()->IsProxyClass()) { 41 method->GetDexFile()->GetAnnotationForMethod(method, klass)); 46 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); local 47 if (!method->GetDeclaringClass()->IsAnnotation()) { 50 return soa.AddLocalReference<jobject>(method->GetDexFile()->GetAnnotationDefaultValue(method)); 55 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); local 56 if (method 92 ArtMethod* method = ArtMethod::FromReflectedMethod(soa, javaMethod); local [all...] |
/art/runtime/ |
H A D | oat_quick_method_header.cc | 37 uint32_t OatQuickMethodHeader::ToDexPc(ArtMethod* method, argument 50 DCHECK(method->IsNative()); 58 << " current entry_point=" << method->GetEntryPointFromQuickCompiledCode() 59 << ") in " << PrettyMethod(method); 64 uintptr_t OatQuickMethodHeader::ToNativeQuickPc(ArtMethod* method, argument 69 DCHECK(!method->IsNative()); 88 << " in " << PrettyMethod(method);
|
H A D | proxy_test.cc | 24 #include "mirror/method.h" 52 // Builds the method array. 62 // Fill the method array 63 ArtMethod* method = javaLangObject->FindDeclaredVirtualMethod( local 65 CHECK(method != nullptr); 68 mirror::Method::CreateFromArtMethod(soa.Self(), method))); 69 method = javaLangObject->FindDeclaredVirtualMethod("hashCode", "()I", sizeof(void*)); 70 CHECK(method != nullptr); 73 mirror::Method::CreateFromArtMethod(soa.Self(), method))); 74 method [all...] |
H A D | reflection_test.cc | 84 void ReflectionTestMakeExecutable(ArtMethod** method, 110 *method = is_static ? c->FindDirectMethod(method_name, method_signature, sizeof(void*)) 112 CHECK(method != nullptr); 133 ArtMethod* method; local 135 ReflectionTestMakeExecutable(&method, &receiver, is_static, "nop", "()V"); 137 InvokeWithJValues(soa, receiver_ref.get(), soa.EncodeMethod(method), nullptr); 142 ArtMethod* method; local 144 ReflectionTestMakeExecutable(&method, &receiver, is_static, "identity", "(B)B"); 149 JValue result = InvokeWithJValues(soa, receiver_ref.get(), soa.EncodeMethod(method), args); 153 result = InvokeWithJValues(soa, receiver_ref.get(), soa.EncodeMethod(method), arg 168 ArtMethod* method; local 193 ArtMethod* method; local 218 ArtMethod* method; local 247 ArtMethod* method; local 286 ArtMethod* method; local 330 ArtMethod* method; local 379 ArtMethod* method; local 413 ArtMethod* method; local 440 ArtMethod* method; local 470 ArtMethod* method; local 520 ArtMethod* method = klass->FindDirectMethod("main", "([Ljava/lang/String;)V", sizeof(void*)); local [all...] |
H A D | class_linker-inl.h | 127 // implementation of the method. If this class's implementation of the method is copied from an 132 const DexFile::MethodId& method = dex_file->GetMethodId(method_idx); local 133 mirror::Class* resolved_type = dex_cache->GetResolvedType(method.class_idx_); 135 resolved_type = ResolveType(*dex_file, method.class_idx_, dex_cache, class_loader); 159 // Note: We cannot check here to see whether we added the method to the cache. It
|
H A D | fault_handler.cc | 337 // Get the architecture specific method address and return address. These 341 // If we don't have a potential method, we're outta here. 342 VLOG(signals) << "potential method: " << method_obj; 347 VLOG(signals) << "no method"; 351 // Verify that the potential method is indeed a method. 374 // We can be certain that this is a method now. Check if we have a GC map 427 ArtMethod* method = nullptr; local 432 manager_->GetMethodAndReturnPcAndSp(siginfo, context, &method, &return_pc, &sp); 433 // Inside of generated code, sp[0] is the method, s [all...] |
H A D | gc_root.h | 144 explicit GcRootSource(ArtMethod* method) argument 145 : field_(nullptr), method_(method) {
|
H A D | image.cc | 136 void ImageHeader::SetImageMethod(ImageMethod index, ArtMethod* method) { argument 138 image_methods_[index] = reinterpret_cast<uint64_t>(method); 176 auto* method = reinterpret_cast<ArtMethod*>(base + runtime_methods.Offset() + pos); local 177 visitor->Visit(method);
|
H A D | instrumentation.h | 51 // Do we want to deoptimize for method entry and exit listeners or just try to intercept 57 // the events they are listening for. The call backs supply the thread, method and dex_pc the event 63 // Call-back for when a method is entered. 65 ArtMethod* method, 68 // Call-back for when a method is exited. 70 ArtMethod* method, uint32_t dex_pc, 74 // Call-back for when a method is popped due to an exception throw. A method will either cause a 77 ArtMethod* method, uint32_t dex_pc) 80 // Call-back for when the dex pc moves in a method 605 InstrumentationStackFrame(mirror::Object* this_object, ArtMethod* method, uintptr_t return_pc, size_t frame_id, bool interpreter_entry) argument [all...] |
/art/test/044-proxy/src/ |
H A D | Clash3.java | 70 public Object invoke(Object proxy, Method method, Object[] args) argument
|
H A D | Clash4.java | 72 public Object invoke(Object proxy, Method method, Object[] args) argument
|
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...] |
/art/test/common/ |
H A D | runtime_state.cc | 138 ArtMethod* method = klass->FindDeclaredDirectMethodByName(chars.c_str(), sizeof(void*)); local 143 ProfilingInfo::Create(soa.Self(), method, /* retry_allocation */ true); 145 header = OatQuickMethodHeader::FromEntryPoint(method->GetEntryPointFromQuickCompiledCode()); 152 jit->CompileMethod(method, soa.Self(), /* osr */ false);
|
/art/compiler/dex/ |
H A D | verified_method.cc | 99 ArtMethod* method = local 101 if (method == nullptr) { 106 // failure. Put the dex method index in the dequicken map since we need this to get number of 108 dequicken_map_.Put(dex_pc, DexFileReference(method->GetDexFile(), 109 method->GetDexMethodIndex())); 121 // TODO: Putting a field index in a method reference is gross. 176 // If the method is not found in the cache this means that it was never found 180 // Find the concrete method. 197 // If we knew exactly the class being dispatched upon, or if the target method cannot be 206 * Walks over the method cod [all...] |
/art/compiler/jit/ |
H A D | jit_compiler.cc | 59 void* handle, ArtMethod* method, Thread* self, bool osr) 63 return jit_compiler->CompileMethod(self, method, osr); 78 // Callers of this method assume it has NO_RETURN. 202 bool JitCompiler::CompileMethod(Thread* self, ArtMethod* method, bool osr) { argument 203 DCHECK(!method->IsProxyMethod()); 210 Handle<mirror::Class> h_class(hs.NewHandle(method->GetDeclaringClass())); 212 VLOG(jit) << "JIT failed to initialize " << PrettyMethod(method); 221 success = compiler_driver_->GetCompiler()->JitCompile(self, code_cache, method, osr); 223 const void* ptr = method->GetEntryPointFromQuickCompiledCode(); 230 << PrettyMethod(method) [all...] |
/art/compiler/optimizing/ |
H A D | intrinsics.cc | 124 static Intrinsics GetIntrinsic(InlineMethod method) { argument 125 switch (method.opcode) { 128 return ((method.d.data & kIntrinsicFlagToFloatingPoint) == 0) ? 131 return ((method.d.data & kIntrinsicFlagToFloatingPoint) == 0) ? 150 switch (GetType(method.d.data, true)) { 156 LOG(FATAL) << "Unknown/unsupported op size " << method.d.data; 160 switch (GetType(method.d.data, true)) { 168 LOG(FATAL) << "Unknown/unsupported op size " << method.d.data; 172 switch (GetType(method.d.data, true)) { 178 LOG(FATAL) << "Unknown/unsupported op size " << method 577 InlineMethod method; local [all...] |
/art/runtime/jit/ |
H A D | profiling_info.h | 88 * Profiling info for a method, created and filled by the interpreter once the 89 * method is warm, and used by the compiler to drive optimizations. 93 // Create a ProfilingInfo for 'method'. Return whether it succeeded, or if it is 94 // not needed in case the method does not have virtual/interface invocations. 95 static bool Create(Thread* self, ArtMethod* method, bool retry_allocation) 169 ProfilingInfo(ArtMethod* method, const std::vector<uint32_t>& entries) argument 171 method_(method), 194 // When the compiler inlines the method associated to this ProfilingInfo,
|
/art/runtime/mirror/ |
H A D | dex_cache-inl.h | 82 ArtMethod* method = GetElementPtrSize<ArtMethod*>(GetResolvedMethods(), method_idx, ptr_size); local 84 if (method != nullptr && method->IsRuntimeMethod()) { 85 DCHECK_EQ(method, Runtime::Current()->GetResolutionMethod()); 88 return method; 91 inline void DexCache::SetResolvedMethod(uint32_t method_idx, ArtMethod* method, size_t ptr_size) { argument 94 SetElementPtrSize(GetResolvedMethods(), method_idx, method, ptr_size); local
|
H A D | throwable.cc | 80 // See method BuildInternalStackTraceVisitor::Init for the format. 97 // Decode the internal stack trace into the depth and method trace 98 // See method BuildInternalStackTraceVisitor::Init for the format. 111 ArtMethod* method = method_trace->GetElementPtrSize<ArtMethod*>(i, ptr_size); local 113 int32_t line_number = method->GetLineNumFromDexPC(dex_pc); 114 const char* source_file = method->GetDeclaringClassSourceFile(); 115 result += StringPrintf(" at %s (%s:%d)\n", PrettyMethod(method, true).c_str(), 135 method_name != nullptr ? method_name->ToModifiedUtf8().c_str() : "<unknown method>",
|
/art/compiler/ |
H A D | common_compiler_test.cc | 44 void CommonCompilerTest::MakeExecutable(ArtMethod* method) { argument 45 CHECK(method != nullptr); 48 if (!method->IsAbstract()) { 49 mirror::DexCache* dex_cache = method->GetDeclaringClass()->GetDexCache(); 53 method->GetDexMethodIndex())); 89 LOG(INFO) << "MakeExecutable " << PrettyMethod(method) << " code=" << method_code; 90 class_linker_->SetEntryPointsToCompiledCode(method, method_code); 94 class_linker_->SetEntryPointsToInterpreter(method); 245 void CommonCompilerTest::CompileMethod(ArtMethod* method) { argument 246 CHECK(method ! 249 compiler_driver_->CompileOne(Thread::Current(), method, &timings); local 262 ArtMethod* method = klass->FindDirectMethod(method_name, signature, pointer_size); local 276 ArtMethod* method = klass->FindVirtualMethod(method_name, signature, pointer_size); local [all...] |
/art/compiler/dex/quick/ |
H A D | dex_file_method_inliner.cc | 685 InlineMethod method; local 686 bool success = InlineMethodAnalyser::AnalyseMethodCode(verifier, &method); 687 return success && AddInlineMethod(verifier->GetMethodReference().dex_method_index, method); 831 bool DexFileMethodInliner::AddInlineMethod(int32_t method_idx, const InlineMethod& method) { argument 834 inline_methods_.Put(method_idx, method);
|
/art/compiler/driver/ |
H A D | compiler_driver_test.cc | 51 void EnsureCompiled(jobject class_loader, const char* class_name, const char* method, 62 mid_ = env_->GetMethodID(class_, method, signature); 64 mid_ = env_->GetStaticMethodID(class_, method, signature); 66 CHECK(mid_ != nullptr) << "Method not found: " << class_name << "." << method << signature; 125 ArtMethod* method = dex_cache->GetResolvedMethod(i, pointer_size); local 126 EXPECT_TRUE(method != nullptr) << "method_idx=" << i 129 EXPECT_TRUE(method->GetEntryPointFromQuickCompiledCode() != nullptr) << "method_idx=" << i
|
/art/compiler/linker/ |
H A D | multi_oat_relative_patcher_test.cc | 163 const CompiledMethod* method = reinterpret_cast<const CompiledMethod*>(-1); local 169 uint32_t method1_offset_check = patcher_.ReserveSpace(method1_offset, method, ref1); 177 uint32_t method2_offset_adjusted = patcher_.ReserveSpace(method2_offset, method, ref2); 192 uint32_t method3_offset_check = patcher_.ReserveSpace(method3_offset, method, ref3);
|
/art/runtime/gc/ |
H A D | allocation_record.h | 44 AllocRecordStackTraceElement(ArtMethod* method, uint32_t dex_pc) argument 45 : method_(method),
|
/art/runtime/interpreter/ |
H A D | interpreter.cc | 35 static void InterpreterJni(Thread* self, ArtMethod* method, const StringPiece& shorty, 41 if (method->IsStatic()) { 44 fntype* const fn = reinterpret_cast<fntype*>(method->GetEntryPointFromJni()); 46 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); 55 fntype* const fn = reinterpret_cast<fntype*>(method->GetEntryPointFromJni()); 57 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); 62 fntype* const fn = reinterpret_cast<fntype*>(method->GetEntryPointFromJni()); 64 soa.AddLocalReference<jclass>(method->GetDeclaringClass())); 69 fntype* const fn = reinterpret_cast<fntype*>(method->GetEntryPointFromJni()); 71 soa.AddLocalReference<jclass>(method 280 ArtMethod *method = shadow_frame.GetMethod(); local 310 ArtMethod* method = shadow_frame.GetMethod(); local 391 EnterInterpreterFromInvoke(Thread* self, ArtMethod* method, Object* receiver, uint32_t* args, JValue* result, bool stay_in_interpreter) argument 628 ArtMethod* method = shadow_frame->GetMethod(); local [all...] |