Searched defs:method (Results 26 - 50 of 112) sorted by relevance

12345

/art/runtime/native/
H A Djava_lang_reflect_Method.cc34 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 Doat_quick_method_header.cc37 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 Dproxy_test.cc24 #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 Dreflection_test.cc84 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 Dclass_linker-inl.h127 // 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 Dfault_handler.cc337 // 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 Dgc_root.h144 explicit GcRootSource(ArtMethod* method) argument
145 : field_(nullptr), method_(method) {
H A Dimage.cc136 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 Dinstrumentation.h51 // 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 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/test/common/
H A Druntime_state.cc138 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 Dverified_method.cc99 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 Djit_compiler.cc59 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 Dintrinsics.cc124 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 Dprofiling_info.h88 * 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 Ddex_cache-inl.h82 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 Dthrowable.cc80 // 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 Dcommon_compiler_test.cc44 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 Ddex_file_method_inliner.cc685 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 Dcompiler_driver_test.cc51 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 Dmulti_oat_relative_patcher_test.cc163 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 Dallocation_record.h44 AllocRecordStackTraceElement(ArtMethod* method, uint32_t dex_pc) argument
45 : method_(method),
/art/runtime/interpreter/
H A Dinterpreter.cc35 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...]

Completed in 879 milliseconds

12345