Searched defs:method (Results 51 - 75 of 112) sorted by relevance

12345

/art/runtime/interpreter/
H A Dinterpreter_goto_table_impl.cc70 instrumentation->Branch(self, method, dex_pc, offset); \
73 if (jit::Jit::MaybeDoOnStackReplacement(self, method, dex_pc, offset, &result)) { \
81 jit->AddSamples(self, method, 1, /*with_backedges*/ true); \
196 ArtMethod* method = shadow_frame.GetMethod(); local
2466 // TODO: these allocations should not leak, and the lambda method should not be local.
H A Dinterpreter_switch_impl.cc75 instrumentation->Branch(self, method, dex_pc, offset); \
78 if (jit::Jit::MaybeDoOnStackReplacement(self, method, dex_pc, offset, &result)) { \
80 /* OSR has completed execution of the method. Signal mterp to return to caller */ \
90 jit->AddSamples(self, method, 1, /*with_backedges*/ true); \
115 ArtMethod* method = shadow_frame.GetMethod(); local
2375 // TODO: these allocations should not leak, and the lambda method should not be local.
H A Dunstarted_runtime_test.cc63 ArtMethod* method, \
68 interpreter::UnstartedRuntime::UnstartedJNI ## Name(self, method, receiver, args, result); \
385 ArtMethod* method = klass->FindDeclaredDirectMethod("<init>", "(Ljava/lang/String;)V", local
388 // create instruction data for invoke-direct {v0, v1} of method with fake index
393 ShadowFrame* shadow_frame = ShadowFrame::CreateDeoptimizedFrame(10, nullptr, method, 0);
400 interpreter::DoCall<false, false>(method, self, *shadow_frame, inst, inst_data[0], &result);
H A Dinterpreter_common.cc439 // Exception is not caught by the current method. We will unwind to the
444 // Exception is caught in the current method. We will jump to the found_dex_pc.
511 ArtMethod* method = shadow_frame->GetMethod(); local
513 if (method->IsStatic()) {
514 mirror::Class* declaringClass = method->GetDeclaringClass();
527 // Reload from shadow frame in case the method moved, this is faster than adding a handle.
528 method = shadow_frame->GetMethod();
538 method->Invoke(self, shadow_frame->GetVRegArgs(arg_offset),
540 result, method->GetInterfaceMethodIfProxy(sizeof(void*))->GetShorty());
587 // Compute method informatio
659 ArtMethod* method = new_shadow_frame->GetMethod()->GetInterfaceMethodIfProxy(sizeof(void*)); local
[all...]
H A Dinterpreter_common.h45 #include "mirror/method.h"
137 // Invokes the given method. This is part of the invocation support and is used by DoInvoke and
151 // Validates that the art method corresponding to a lambda method target
167 // TODO(iam): Also handle the case when the method is non-static, what error do we throw?
170 // Method could be native, proxy method, etc. Lambda targets have to be concrete impls,
183 // Split the method into a lo and hi 32 bits so we can encode them into 2 virtual registers.
206 // to the target dex method index into the target register vA and vA + 1.
224 * - vB is the method index which will be the target for a later invoke-lambda
299 // Validates that the art method point
345 ArtMethod* method = shadow_frame.GetMethod(); local
751 ArtMethod* method = shadow_frame.GetMethod(); local
[all...]
/art/runtime/interpreter/mterp/
H A Dmterp.cc288 art::ArtMethod* method, Thread* self)
290 Class* c = ResolveVerifyAndClinit(index, method, self, false, false);
304 art::ArtMethod* method, Thread* self)
306 Class* c = ResolveVerifyAndClinit(index, method, self, false, false);
642 * Create a hotness_countdown based on the current method hotness_count and profiling
644 * to the full instrumentation via MterpAddHotnessBatch. Called once on entry to the method,
647 extern "C" int MterpSetUpHotnessCountdown(ArtMethod* method, ShadowFrame* shadow_frame)
649 uint16_t hotness_count = method->GetCounter();
685 extern "C" int16_t MterpAddHotnessBatch(ArtMethod* method,
692 jit->AddSamples(self, method, coun
700 ArtMethod* method = shadow_frame->GetMethod(); local
719 ArtMethod* method = shadow_frame->GetMethod(); local
[all...]
/art/runtime/lambda/
H A Dclosure.cc137 uintptr_t method = reinterpret_cast<uintptr_t>(GetTargetMethod()); local
138 result = 31 * result + Low32Bits(method);
139 if (sizeof(method) == sizeof(uint64_t)) {
140 result = 31 * result + High32Bits(method);
/art/test/044-proxy/src/
H A DBasicTest.java98 /* declare an object that will handle the method calls */
241 public Object invoke(Object proxy, Method method, Object[] args) argument
248 if (method.getDeclaringClass() == java.lang.Object.class) {
249 //System.out.println("!!! object " + method.getName());
250 if (method.getName().equals("toString")) {
252 } else if (method.getName().equals("hashCode")) {
254 } else if (method.getName().equals("equals")) {
261 if (method.getDeclaringClass() == Trace.class) {
262 if (method.getName().equals("getTrace")) {
276 if (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/tools/dexfuzz/src/dexfuzz/program/
H A DProgram.java69 * for a method, and the mutatable form. It also controls all CodeMutators,
94 * Responsible for adding new class ID items, method ID items, etc.
138 * Given a maximum number of mutations that can be performed on a method, n,
139 * give up after attempting (n * this value) mutations for any method.
238 * This is so when we're associating method names with code items,
239 * we can find the name of the class the method belongs to.
253 * For each CodeItem, find the name of the method the item represents.
258 // Associate method names with codeItems.
269 // Track the current method index with this value, since the encoding in
273 for (EncodedMethod method
291 associateMethod(EncodedMethod method, int methodIdx, String className) argument
[all...]
/art/compiler/driver/
H A Dcompiler_driver-inl.h154 ArtMethod* method,
157 return referrer_class->CanAccessResolvedMethod(access_to, method, dex_cache, field_idx);
215 // "write access" to a method.
312 // .method hi()V
316 // .end method
318 // even if 'DEF' inherits the method from it's superclass.
361 // dex cache, check that this resolved method is where we expect it.
422 // Sharpening failed so generate a regular resolved method dispatch.
151 CanAccessResolvedMember( mirror::Class* referrer_class, mirror::Class* access_to, ArtMethod* method, mirror::DexCache* dex_cache, uint32_t field_idx) argument
/art/runtime/
H A Dcommon_throws.cc83 void ThrowAbstractMethodError(ArtMethod* method) { argument
85 StringPrintf("abstract method \"%s\"",
86 PrettyMethod(method).c_str()).c_str());
91 StringPrintf("abstract method \"%s\"",
170 << " method " << PrettyMethod(called).c_str();
190 msg << "Final field '" << PrettyField(accessed, false) << "' cannot be written to by method '"
220 ArtMethod* method, ArtMethod* referrer) {
222 msg << "The method '" << PrettyMethod(method) << "' was expected to be of type "
229 void ThrowIncompatibleClassChangeErrorClassForInterfaceSuper(ArtMethod* method, argument
219 ThrowIncompatibleClassChangeError(InvokeType expected_type, InvokeType found_type, ArtMethod* method, ArtMethod* referrer) argument
278 ThrowIncompatibleClassChangeErrorForMethodConflict(ArtMethod* method) argument
360 ArtMethod* method = Thread::Current()->GetCurrentMethod(nullptr); local
396 ThrowNullPointerExceptionForMethodAccess(ArtMethod* method, InvokeType type) argument
406 ArtMethod* method = Thread::Current()->GetCurrentMethod(&throw_dex_pc); local
[all...]
H A Ddebugger.h60 klass(invoke_class), method(invoke_method), arg_count(args_count), arg_values(args),
73 ArtMethod* const method; member in struct:art::DebugInvokeReq
93 int stack_depth, ArtMethod* method)
95 stack_depth_(stack_depth), method_(method) {
132 // A single-step is initiated in a suspended thread. We save here the current method and the
135 // causes the execution of an instruction in a different method or at a different line number.
152 kSelectiveDeoptimization, // deoptimize one method.
153 kSelectiveUndeoptimization // undeoptimize one method.
161 // Create a new JNI global reference for the method.
189 // TODO we could use a union to hold the instrumentation_event and the method sinc
92 SingleStepControl(JDWP::JdwpStepSize step_size, JDWP::JdwpStepDepth step_depth, int stack_depth, ArtMethod* method) 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(ArtMethod* method) REQUIRES(!lock_);
117 uint32_t Hash(ArtMethod* method);
121 uint32_t num_null_methods_; // Number of samples where can don't know the method.
124 typedef std::map<ArtMethod*, uint32_t> Map; // Map of method v
[all...]
H A Dart_method-inl.h81 ALWAYS_INLINE static inline void DoGetAccessFlagsHelper(ArtMethod* method)
83 CHECK(method->IsRuntimeMethod() ||
84 method->GetDeclaringClass<kReadBarrierOption>()->IsIdxLoaded() ||
85 method->GetDeclaringClass<kReadBarrierOption>()->IsErroneous());
134 ArtMethod* method = mirror::DexCache::GetElementPtrSize(GetDexCacheResolvedMethods(ptr_size), local
137 if (LIKELY(method != nullptr)) {
138 auto* declaring_class = method->GetDeclaringClass();
140 return method;
224 // We have an error if we are direct or a non-default, non-miranda interface method.
262 // Check that if we do think it is phony it looks like the resolution method
[all...]
H A Ddex_file_verifier_test.cc225 "could not find declaring class for direct method index 0");
245 "String index not available for method flags verification");
255 // .method public static constructor <clinit>()V
258 // .end method
260 // .method public constructor <init>()V
263 // .end method
265 // .method private declared-synchronized foo()V
268 // .end method
270 // .method public declared-synchronized bar()V
273 // .end method
333 SetMethodFlags(DexFile* dex_file, const char* method, uint32_t mask) argument
350 GetMethodFlags(DexFile* dex_file, const char* method) argument
357 ApplyMaskToMethodFlags(DexFile* dex_file, const char* method, uint32_t mask) argument
364 OrMaskToMethodFlags(DexFile* dex_file, const char* method, uint32_t mask) argument
371 RemoveCode(DexFile* dex_file, const char* method) argument
[all...]
H A Dquick_exception_handler.cc67 ArtMethod* method = GetMethod(); local
69 if (method == nullptr) {
77 // Report the method that did the down call as the handler.
81 // No next method? Check exception handler is set up for the unhandled exception handler
88 if (method->IsRuntimeMethod()) {
89 // Ignore callee save method.
90 DCHECK(method->IsCalleeSaveMethod());
93 return HandleTryItems(method);
97 bool HandleTryItems(ArtMethod* method)
100 if (!method
306 ArtMethod* method = GetMethod(); local
620 ArtMethod* method = GetMethod(); local
[all...]
H A Dreflection.cc99 // Set receiver if non-null (method is not static)
135 // Set receiver if non-null (method is not static)
174 // Set receiver if non-null (method is not static)
218 // Set receiver if non-null (method is not static)
232 StringPrintf("method %s argument %zd has type %s, got %s",
260 StringPrintf("method %s argument %zd has type %s, got %s", \
425 static ArtMethod* FindVirtualMethod(mirror::Object* receiver, ArtMethod* method)
427 return receiver->GetClass()->FindVirtualMethodForVirtualOrInterface(method, sizeof(void*));
432 ArtMethod* method, ArgArray* arg_array, JValue* result,
437 CheckMethodArguments(soa.Vm(), method
453 ArtMethod* method = soa.DecodeMethod(mid); local
483 ArtMethod* method = soa.DecodeMethod(mid); local
514 ArtMethod* method = FindVirtualMethod(receiver, soa.DecodeMethod(mid)); local
545 ArtMethod* method = FindVirtualMethod(receiver, soa.DecodeMethod(mid)); local
[all...]
/art/runtime/entrypoints/
H A Dentrypoint_utils-inl.h59 // The method in the dex cache can be the runtime method responsible for invoking
63 // We first find the class loader of our caller. If it is the outer method, we can directly
92 ArtMethod* method,
96 mirror::Class* klass = method->GetDexCacheResolvedType<false>(type_idx, pointer_size);
98 klass = class_linker->ResolveType(type_idx, method);
113 mirror::Class* referrer = method->GetDeclaringClass();
175 ArtMethod* method,
179 mirror::Class* klass = CheckObjectAlloc<kAccessCheck>(type_idx, method, self, &slow_path);
232 ArtMethod* method,
91 CheckObjectAlloc(uint32_t type_idx, ArtMethod* method, Thread* self, bool* slow_path) argument
174 AllocObjectFromCode(uint32_t type_idx, ArtMethod* method, Thread* self, gc::AllocatorType allocator_type) argument
230 CheckArrayAlloc(uint32_t type_idx, int32_t component_count, ArtMethod* method, bool* slow_path) argument
268 AllocArrayFromCode(uint32_t type_idx, int32_t component_count, ArtMethod* method, Thread* self, gc::AllocatorType allocator_type) argument
294 AllocArrayFromCodeResolved(mirror::Class* klass, int32_t component_count, ArtMethod* method, Thread* self, gc::AllocatorType allocator_type) argument
346 ArtMethod* method = referrer->GetInterfaceMethodIfProxy(sizeof(void*)); variable
569 ArtMethod* method = klass->FindVirtualMethodForInterface( local
[all...]
/art/runtime/jdwp/
H A Djdwp.h58 typedef uint64_t MethodId; /* any kind of method, including constructors */
77 ArtMethod* method; member in struct:art::JDWP::EventLocation
193 * single-stepping, and method entry/exit. (JDWP requires that these four
196 * In some cases "*pLoc" will just have a method and class name, e.g. when
197 * issuing a MethodEntry on a native method.
333 * SetWaitForJdwpToken method before processing a command from the
336 * it must call the ClearWaitForJdwpToken method to allow another thread
/art/runtime/native/
H A Djava_lang_Class.cc30 #include "mirror/method.h"
401 auto* method = mirror::Method::CreateFromArtMethod(soa.Self(), &m); local
402 if (method == nullptr) {
406 ret->SetWithoutChecks<false>(num_methods++, method);
490 mirror::Object* method = klass->GetDexFile().GetEnclosingMethod(klass); local
491 if (method != nullptr) {
492 if (method->GetClass() ==
494 return soa.AddLocalReference<jobject>(method);
507 mirror::Object* method = klass->GetDexFile().GetEnclosingMethod(klass); local
508 if (method !
[all...]
H A Ddalvik_system_VMRuntime.cc360 ArtMethod* method = dex_cache->GetResolvedMethod(method_idx, sizeof(void*)); local
361 if (method != nullptr) {
373 method = klass->FindDirectMethod(dex_cache.Get(), method_idx, sizeof(void*));
376 method = klass->FindInterfaceMethod(dex_cache.Get(), method_idx, sizeof(void*));
380 method = klass->FindVirtualMethod(dex_cache.Get(), method_idx, sizeof(void*));
386 if (method == nullptr) {
389 // LOG(INFO) << "VMRuntime.preloadDexCaches resolved method " << PrettyMethod(method);
390 dex_cache->SetResolvedMethod(method_idx, method, sizeof(void*));
465 ArtMethod* method local
[all...]
/art/runtime/jit/
H A Djit.cc248 bool Jit::CompileMethod(ArtMethod* method, Thread* self, bool osr) { argument
250 DCHECK(!method->IsRuntimeMethod());
252 // Don't compile the method if it has breakpoints.
253 if (Dbg::IsDebuggerActive() && Dbg::MethodHasAnyBreakpoints(method)) {
254 VLOG(jit) << "JIT not compiling " << PrettyMethod(method) << " due to breakpoint";
258 // Don't compile the method if we are supposed to be deoptimized.
260 if (instrumentation->AreAllMethodsDeoptimized() || instrumentation->IsDeoptimized(method)) {
261 VLOG(jit) << "JIT not compiling " << PrettyMethod(method) << " due to deoptimization";
265 // If we get a request to compile a proxy method, we pass the actual Java method
337 CanInvokeCompiledCode(ArtMethod* method) argument
394 MaybeDoOnStackReplacement(Thread* thread, ArtMethod* method, uint32_t dex_pc, int32_t dex_pc_offset, JValue* result) argument
541 AddMemoryUsage(ArtMethod* method, size_t bytes) argument
560 JitCompileTask(ArtMethod* method, TaskKind kind) argument
599 AddSamples(Thread* self, ArtMethod* method, uint16_t count, bool with_backedges) argument
669 MethodEntered(Thread* thread, ArtMethod* method) argument
[all...]
/art/runtime/quick/
H A Dinline_method_analyser.cc32 * only to allow the debugger to check whether a method has been inlined.
140 // Used for a single invoke in a constructor. In that situation, the method verifier makes
142 ArtMethod* GetTargetConstructor(ArtMethod* method, const Instruction* invoke_direct)
146 method->GetCodeItem()->registers_size_ - method->GetCodeItem()->ins_size_);
150 method->GetDexCache()->GetResolvedMethod(method_index, pointer_size);
154 CHECK(target_method->GetDeclaringClass() == method->GetDeclaringClass() ||
155 target_method->GetDeclaringClass() == method->GetDeclaringClass()->GetSuperClass());
209 bool RecordConstructorIPut(ArtMethod* method,
218 mirror::DexCache* dex_cache = method
449 AnalyseMethodCode(ArtMethod* method, InlineMethod* result) argument
459 AnalyseMethodCode(const DexFile::CodeItem* code_item, const MethodReference& method_ref, bool is_static, ArtMethod* method, InlineMethod* result) argument
593 AnalyseIGetMethod(const DexFile::CodeItem* code_item, const MethodReference& method_ref, bool is_static, ArtMethod* method, InlineMethod* result) argument
658 AnalyseIPutMethod(const DexFile::CodeItem* code_item, const MethodReference& method_ref, bool is_static, ArtMethod* method, InlineMethod* result) argument
727 ComputeSpecialAccessorInfo(ArtMethod* method, uint32_t field_idx, bool is_put, InlineIGetIPutData* result) argument
[all...]
/art/test/004-JniTest/src/
H A DMain.java214 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { argument

Completed in 521 milliseconds

12345