Searched defs:method (Results 1 - 25 of 47) sorted by relevance

12

/art/runtime/entrypoints/portable/
H A Dportable_invoke_entrypoints.cc31 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 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();
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
/art/runtime/mirror/
H A Ddex_cache-inl.h27 ArtMethod* method = GetResolvedMethods()->Get(method_idx); local
29 if (method != NULL && method->IsRuntimeMethod()) {
30 DCHECK(method == Runtime::Current()->GetResolutionMethod());
33 return method;
H A Dthrowable.cc62 // 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/interpreter/
H A Dinterpreter_entrypoints.cc31 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/entrypoints/jni/
H A Djni_entrypoints.cc27 // 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/entrypoints/quick/
H A Dquick_invoke_entrypoints.cc34 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/test/044-proxy/src/
H A DClash.java65 public Object invoke(Object proxy, Method method, Object[] args) argument
H A DClash2.java55 public Object invoke(Object proxy, Method method, Object[] args) argument
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...]
H A DBasicTest.java94 /* 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 DReturnsAndArgPassing.java56 public Object invoke(Object proxy, Method method, Object[] args) { argument
58 check(method.getDeclaringClass() == MyInterface.class);
59 String name = method.getName();
/art/runtime/arch/arm/
H A Dcontext_arm.cc44 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/mips/
H A Dcontext_mips.cc43 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();
/art/runtime/arch/x86/
H A Dcontext_x86.cc39 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/dalvikvm/
H A Ddalvikvm.cc31 // Determine whether or not the specified method is public.
35 fprintf(stderr, "Failed to get reflected method\n");
39 // getModifiers() method.
81 jmethodID method = env->GetStaticMethodID(klass.get(), "main", "([Ljava/lang/String;)V"); local
82 if (method == NULL) {
88 // Make sure the method is public. JNI doesn't prevent us from
89 // calling a private method, so we have to check it explicitly.
90 if (!IsMethodPublic(env, klass.get(), method)) {
97 env->CallStaticVoidMethod(klass.get(), method, args.get());
/art/compiler/driver/
H A Dcompiler_driver_test.cc47 void EnsureCompiled(jobject class_loader, const char* class_name, const char* method,
58 mid_ = env_->GetMethodID(class_, method, signature);
60 mid_ = env_->GetStaticMethodID(class_, method, signature);
62 CHECK(mid_ != NULL) << "Method not found: " << class_name << "." << method << signature;
118 mirror::ArtMethod* method = dex_cache->GetResolvedMethod(i); local
119 EXPECT_TRUE(method != NULL) << "method_idx=" << i
122 EXPECT_TRUE(method->GetEntryPointFromCompiledCode() != NULL) << "method_idx=" << i
/art/compiler/
H A Delf_writer_mclinker.cc356 mirror::ArtMethod* method = NULL; local
362 method = linker->ResolveMethod(dex_file, method_idx, dex_cache, NULL, NULL, invoke_type);
363 CHECK(method != NULL);
369 // Don't overwrite static method trampoline
370 if (method != NULL &&
371 (!method->IsStatic() ||
372 method->IsConstructor() ||
373 method->GetDeclaringClass()->IsInitialized())) {
374 method->SetOatCodeOffset(offset);
/art/compiler/llvm/
H A Druntime_support_builder.cc86 ::llvm::Value* method,
95 // Store the method pointer
98 method,
118 ::llvm::Value* method,
125 method,
85 EmitPushShadowFrame(::llvm::Value* new_shadow_frame, ::llvm::Value* method, uint32_t num_vregs) argument
117 EmitPushShadowFrameNoInline(::llvm::Value* new_shadow_frame, ::llvm::Value* method, uint32_t num_vregs) argument
/art/runtime/
H A Dinstrumentation.h42 // 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 Dstack.cc120 UNIMPLEMENTED(ERROR) << "Failed to determine this object of abstract or proxy method"
243 std::string result("Visiting method '");
262 mirror::ArtMethod* method = GetMethod(); local
263 CHECK(method->GetClass() == mirror::ArtMethod::GetJavaLangReflectArtMethod());
265 method->AssertPcIsWithinCode(cur_quick_frame_pc_);
267 size_t frame_size = method->GetFrameSizeInBytes();
274 size_t return_pc_offset = method->GetReturnPcOffsetInBytes();
293 mirror::ArtMethod* method = *cur_quick_frame_; local
294 while (method != NULL) {
303 size_t frame_size = method
[all...]
H A Dcommon_throws.cc71 void ThrowAbstractMethodError(const mirror::ArtMethod* method) { argument
73 StringPrintf("abstract method \"%s\"",
74 PrettyMethod(method).c_str()).c_str());
145 << " method " << PrettyMethod(called).c_str();
166 msg << "Final field '" << PrettyField(accessed, false) << "' cannot be written to by method '"
190 mirror::ArtMethod* method,
193 msg << "The method '" << PrettyMethod(method) << "' was expected to be of type "
271 msg << "No " << type << " method " << name << signature
282 msg << "No method '" << PrettyMetho
189 ThrowIncompatibleClassChangeError(InvokeType expected_type, InvokeType found_type, mirror::ArtMethod* method, const mirror::ArtMethod* referrer) argument
317 ThrowNullPointerExceptionForMethodAccess(const ThrowLocation& throw_location, mirror::ArtMethod* method, InvokeType type) argument
354 mirror::ArtMethod* method = local
[all...]
H A Dinstrumentation.cc58 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...]

Completed in 8876 milliseconds

12