Searched refs:method (Results 1 - 25 of 116) sorted by last modified time

12345

/art/test/115-native-bridge/
H A Dnativebridge.cc256 NativeBridgeMethod* method = find_native_bridge_method(name); local
257 if (method == nullptr)
259 method->fnPtr = sym;
261 return method->trampoline;
/art/runtime/
H A Djni_internal.cc112 "no %s method \"%s.%s%s\"",
119 LOG(return_errors ? ERROR : FATAL) << "Failed to register native method in "
147 mirror::ArtMethod* method = nullptr; local
149 method = c->FindDirectMethod(name, sig);
151 method = c->FindInterfaceMethod(name, sig);
153 method = c->FindVirtualMethod(name, sig);
154 if (method == nullptr) {
155 // No virtual method matching the signature. Search declared
157 method = c->FindDeclaredDirectMethod(name, sig);
160 if (method
169 mirror::ArtMethod* method = soa.Self()->GetCurrentMethod(nullptr); local
[all...]
H A Djni_internal_test.cc279 jmethodID method = env_->GetMethodID(jlobject, "foo", "()V"); local
280 EXPECT_EQ(nullptr, method);
284 method = env_->GetMethodID(jlobject, "equals", "(Ljava/lang/Object;)Z");
285 EXPECT_NE(nullptr, method);
289 // method is static.
290 method = env_->GetMethodID(jlstring, "valueOf", "(I)Ljava/lang/String;");
291 EXPECT_EQ(nullptr, method);
295 method = env_->GetMethodID(jlnsme, "<init>", "(Ljava/lang/String;)V");
296 EXPECT_NE(nullptr, method);
299 // Check that GetMethodID can find a interface method inherite
319 jmethodID method; local
342 jmethodID method = env_->GetStaticMethodID(jlobject, "foo", "()V"); local
414 jobject method = env_->ToReflectedMethod(c, mid, JNI_FALSE); local
[all...]
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 Dmethod_helper.h62 // Counts the number of references in the parameter list of the corresponding method.
123 // other_dexfile, such as the method index used to resolve this method in the other_dexfile.
129 // Set the method_ field, for proxy methods looking up the interface method via the resolved
131 void SetMethod(mirror::ArtMethod* method) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) {
132 method_.Assign(method);
H A Dmonitor.cc278 LOG(WARNING) << "Long monitor contention event with owner method="
1011 // Is there any reason to believe there's any synchronization in this method?
1087 void Monitor::TranslateLocation(mirror::ArtMethod* method, uint32_t dex_pc, argument
1089 // If method is null, location is unknown
1090 if (method == NULL) {
1095 *source_file = method->GetDeclaringClassSourceFile();
1099 *line_number = method->GetLineNumFromDexPC(dex_pc);
H A Dmonitor.h185 // Translates the provided method and pc into its declaring class' source file and line number.
186 void TranslateLocation(mirror::ArtMethod* method, uint32_t pc,
H A Doat_file.cc327 " method offsets", GetLocation().c_str(), i,
595 void OatFile::OatMethod::LinkMethod(mirror::ArtMethod* method) const {
596 CHECK(method != NULL);
598 method->SetEntryPointFromPortableCompiledCode(GetPortableCode());
600 method->SetEntryPointFromQuickCompiledCode(GetQuickCode());
H A Doat_file.h94 void LinkMethod(mirror::ArtMethod* method) const SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
H A Dprofiler.cc59 // Walk through the method within depth of max_depth_ on the Java stack
97 mirror::ArtMethod* method = thread->GetCurrentMethod(nullptr); local
98 if (false && method == nullptr) {
99 LOG(INFO) << "No current method available";
105 profiler->RecordMethod(method);
399 // This is empty right now, but to add a method, do this:
406 bool BackgroundMethodSamplingProfiler::ProcessMethod(mirror::ArtMethod* method) { argument
407 if (method == nullptr) {
409 // Don't record a nullptr method.
413 mirror::Class* cls = method
441 RecordMethod(mirror::ArtMethod* method) argument
454 mirror::ArtMethod* method = stack.front().first; local
488 Put(mirror::ArtMethod* method) argument
523 mirror::ArtMethod* method = inst_loc.first; local
552 MethodReference method = current->GetMethod(); local
583 mirror::ArtMethod *method = meth_iter.first; local
608 MethodReference method = method_iter.first; local
715 Hash(mirror::ArtMethod* method) argument
894 FindChild(MethodReference method, uint32_t dex_pc) argument
[all...]
H A Dprofiler.h47 // a particular context with the method on top of the stack being a leaf or an internal node of the
51 StackTrieNode(MethodReference method, uint32_t dex_pc, uint32_t method_size, argument
53 parent_(parent), method_(method), dex_pc_(dex_pc),
65 StackTrieNode* FindChild(MethodReference method, uint32_t dex_pc);
97 // counts the number of null methods (where we can't determine the method) and
98 // the number of methods in the boot path (where we have already compiled the method).
107 void Put(mirror::ArtMethod* method);
117 uint32_t Hash(mirror::ArtMethod* method);
121 uint32_t num_null_methods_; // Number of samples where can don't know the method.
124 typedef std::map<mirror::ArtMethod*, uint32_t> Map; // Map of method v
[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 Dquick_exception_handler.cc53 mirror::ArtMethod* method = GetMethod(); local
55 if (method == nullptr) {
62 // Report the method that did the down call as the handler.
66 // No next method? Check exception handler is set up for the unhandled exception handler
73 if (method->IsRuntimeMethod()) {
74 // Ignore callee save method.
75 DCHECK(method->IsCalleeSaveMethod());
79 return HandleTryItems(hs.NewHandle(method));
83 bool HandleTryItems(Handle<mirror::ArtMethod> method)
86 if (!method
181 mirror::ArtMethod* method = GetMethod(); local
[all...]
H A Dreflection.cc106 // Set receiver if non-null (method is not static)
142 // Set receiver if non-null (method is not static)
181 // Set receiver if non-null (method is not static)
226 // Set receiver if non-null (method is not static)
237 StringPrintf("method %s argument %zd has type %s, got %s",
265 StringPrintf("method %s argument %zd has type %s, got %s", \
403 mirror::ArtMethod* method)
405 return receiver->GetClass()->FindVirtualMethodForVirtualOrInterface(method);
410 mirror::ArtMethod* method, ArgArray* arg_array, JValue* result,
415 CheckMethodArguments(method, arg
431 mirror::ArtMethod* method = soa.DecodeMethod(mid); local
452 mirror::ArtMethod* method = soa.DecodeMethod(mid); local
472 mirror::ArtMethod* method = FindVirtualMethod(receiver, soa.DecodeMethod(mid)); local
493 mirror::ArtMethod* method = FindVirtualMethod(receiver, soa.DecodeMethod(mid)); local
[all...]
/art/runtime/mirror/
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...]
H A Dart_method.cc56 mirror::ArtMethod* method = f->GetObject(soa.Decode<mirror::Object*>(jlr_method))->AsArtMethod(); local
57 DCHECK(method != nullptr);
58 return method;
112 // Did this method override a super class method? If so load the result from the super class'
117 // Method didn't override superclass method so search interfaces
H A Dclass-inl.h150 inline void Class::SetEmbeddedImTableEntry(uint32_t i, ArtMethod* method) { argument
152 SetFieldObject<false>(MemberOffset(offset), method); local
186 inline void Class::SetEmbeddedVTableEntry(uint32_t i, ArtMethod* method) { argument
188 SetFieldObject<false>(MemberOffset(offset), method); local
189 CHECK(method == GetVTableDuringLinking()->Get(i));
279 inline bool Class::ResolvedMethodAccessTest(Class* access_to, ArtMethod* method, argument
284 // The referrer class can't access the method's declaring class but may still be able
285 // to access the method if the MethodId specifies an accessible subclass of the declaring
289 // The referenced class has already been resolved with the method, get it from the dex cache.
295 method, throw_invoke_typ
321 CanAccessResolvedMethod(Class* access_to, ArtMethod* method, DexCache* dex_cache, uint32_t method_idx) argument
327 CheckResolvedMethodAccess(Class* access_to, ArtMethod* method, uint32_t method_idx) argument
346 FindVirtualMethodForInterface(ArtMethod* method) argument
361 FindVirtualMethodForVirtual(ArtMethod* method) argument
368 FindVirtualMethodForSuper(ArtMethod* method) argument
373 FindVirtualMethodForVirtualOrInterface(ArtMethod* method) argument
[all...]
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 Dclass.h87 // Interface method table size. Increasing this value reduces the chance of two interface methods
88 // colliding in the interface method table but increases the size of classes that implement
94 HeapReference<ArtMethod> method; member in struct:art::mirror::FINAL::ImTableEntry
99 HeapReference<ArtMethod> method; member in struct:art::mirror::FINAL::VTableEntry
544 // method has been exposed by a public sub-class
579 // Can this class access a resolved method?
718 void SetEmbeddedImTableEntry(uint32_t i, ArtMethod* method) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
730 void SetEmbeddedVTableEntry(uint32_t i, ArtMethod* method) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
735 // Given a method implemented by this class but potentially from a super class, return the
736 // specific implementation method fo
[all...]
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 Dthrowable.cc83 // Decode the internal stack trace into the depth and method trace
91 mirror::ArtMethod* method = down_cast<ArtMethod*>(method_trace->Get(i)); local
93 int32_t line_number = method->GetLineNumFromDexPC(dex_pc);
94 const char* source_file = method->GetDeclaringClassSourceFile();
95 result += StringPrintf(" at %s (%s:%d)\n", PrettyMethod(method, true).c_str(),
/art/runtime/native/
H A Ddalvik_system_VMRuntime.cc304 mirror::ArtMethod* method = dex_cache->GetResolvedMethod(method_idx); local
305 if (method != NULL) {
317 method = klass->FindDirectMethod(dex_cache.Get(), method_idx);
320 method = klass->FindInterfaceMethod(dex_cache.Get(), method_idx);
324 method = klass->FindVirtualMethod(dex_cache.Get(), method_idx);
329 if (method == NULL) {
332 // LOG(INFO) << "VMRuntime.preloadDexCaches resolved method " << PrettyMethod(method);
333 dex_cache->SetResolvedMethod(method_idx, method);
405 mirror::ArtMethod* method local
[all...]
/art/runtime/quick/
H A Dinline_method_analyser.cc33 * only to allow the debugger to check whether a method has been inlined.
85 // we need to be able to detect possibly inlined method, we pass a null inline method to indicate
88 InlineMethod* method) {
90 DCHECK_EQ(Runtime::Current()->IsCompiler(), method != nullptr);
91 DCHECK_EQ(verifier->CanLoadClasses(), method != nullptr);
101 if (method != nullptr) {
102 method->opcode = kInlineOpNop;
103 method->flags = kInlineSpecial;
104 method
87 AnalyseMethodCode(verifier::MethodVerifier* verifier, InlineMethod* method) argument
334 mirror::ArtMethod* method = dex_cache->GetResolvedMethod(method_idx); local
[all...]
H A Dinline_method_analyser.h28 * only to allow the debugger to check whether a method has been inlined.
116 uint16_t return_arg_plus1 : 4; // iput only, method argument to return + 1, 0 = return void.
145 * Analyse method code to determine if the method is a candidate for inlining.
148 * @param verifier the method verifier holding data about the method to analyse.
149 * @param method placeholder for the inline method data.
150 * @return true if the method is a candidate for inlining, false otherwise.
152 static bool AnalyseMethodCode(verifier::MethodVerifier* verifier, InlineMethod* method)
[all...]

Completed in 322 milliseconds

12345