Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 72) sorted by relevance

123

/art/runtime/
Druntime_common.cc135 : context(reinterpret_cast<ucontext_t*>(raw_context)->uc_mcontext) {} in UContext()
147 mcontext_t& context; member
152 DumpRegister32(os, "eax", context->__ss.__eax); in Dump()
153 DumpRegister32(os, "ebx", context->__ss.__ebx); in Dump()
154 DumpRegister32(os, "ecx", context->__ss.__ecx); in Dump()
155 DumpRegister32(os, "edx", context->__ss.__edx); in Dump()
158 DumpRegister32(os, "edi", context->__ss.__edi); in Dump()
159 DumpRegister32(os, "esi", context->__ss.__esi); in Dump()
160 DumpRegister32(os, "ebp", context->__ss.__ebp); in Dump()
161 DumpRegister32(os, "esp", context->__ss.__esp); in Dump()
[all …]
Dclass_loader_context_test.cc45 void VerifyContextSize(ClassLoaderContext* context, size_t expected_size) { in VerifyContextSize() argument
46 ASSERT_TRUE(context != nullptr); in VerifyContextSize()
47 ASSERT_EQ(expected_size, context->GetParentChainSize()); in VerifyContextSize()
50 void VerifyClassLoaderPCL(ClassLoaderContext* context, in VerifyClassLoaderPCL() argument
54 context, index, ClassLoaderContext::kPathClassLoader, classpath); in VerifyClassLoaderPCL()
57 void VerifyClassLoaderDLC(ClassLoaderContext* context, in VerifyClassLoaderDLC() argument
61 context, index, ClassLoaderContext::kDelegateLastClassLoader, classpath); in VerifyClassLoaderDLC()
64 void VerifyClassLoaderIMC(ClassLoaderContext* context, in VerifyClassLoaderIMC() argument
68 context, index, ClassLoaderContext::kInMemoryDexClassLoader, classpath); in VerifyClassLoaderIMC()
71 void VerifyClassLoaderSharedLibraryPCL(ClassLoaderContext* context, in VerifyClassLoaderSharedLibraryPCL() argument
[all …]
Dfault_handler.h48 bool HandleFault(int sig, siginfo_t* info, void* context);
59 void* context,
65 bool IsInGeneratedCode(siginfo_t* siginfo, void *context, bool check_dex_pc)
70 bool HandleFaultByOtherHandlers(int sig, siginfo_t* info, void* context)
88 virtual bool Action(int sig, siginfo_t* siginfo, void* context) = 0;
101 bool Action(int sig, siginfo_t* siginfo, void* context) override;
119 bool Action(int sig, siginfo_t* siginfo, void* context) override;
129 bool Action(int sig, siginfo_t* siginfo, void* context) override;
139 bool Action(int sig, siginfo_t* siginfo, void* context) override NO_THREAD_SAFETY_ANALYSIS;
Dfault_handler.cc47 static bool art_fault_handler(int sig, siginfo_t* info, void* context) { in art_fault_handler() argument
48 return fault_manager.HandleFault(sig, info, context); in art_fault_handler()
170 bool FaultManager::HandleFaultByOtherHandlers(int sig, siginfo_t* info, void* context) { in HandleFaultByOtherHandlers() argument
181 if (handler->Action(sig, info, context)) { in HandleFaultByOtherHandlers()
209 bool FaultManager::HandleFault(int sig, siginfo_t* info, void* context) { in HandleFault() argument
219 if (IsInGeneratedCode(info, context, true)) { in HandleFault()
223 if (handler->Action(sig, info, context)) { in HandleFault()
234 if (HandleFaultByOtherHandlers(sig, info, context)) { in HandleFault()
268 bool FaultManager::IsInGeneratedCode(siginfo_t* siginfo, void* context, bool check_dex_pc) { in IsInGeneratedCode() argument
298 GetMethodAndReturnPcAndSp(siginfo, context, &method_obj, &return_pc, &sp, &is_stack_overflow); in IsInGeneratedCode()
[all …]
Dmonitor_objects_stack_visitor.h40 Context* context,
45 context, in REQUIRES_SHARED()
79 static void VisitLockedObject(ObjPtr<mirror::Object> o, void* context)
Doat_file.cc1058 } context; in PreLoad()
1060 dl_iterate_phdr(dl_iterate_context::callback, &context); in PreLoad()
1061 shared_objects_before_ = context.count; in PreLoad()
1143 auto* context = reinterpret_cast<dl_iterate_context*>(data); in Dlopen()
1148 uint8_t* reservation_begin = context->reservation->Begin(); in Dlopen()
1156 if (offset < context->reservation->Size()) { in Dlopen()
1158 DCHECK_LE(memsz, context->reservation->Size() - offset); in Dlopen()
1174 DCHECK_LT(offset, context->reservation->Size()); in Dlopen()
1175 DCHECK_LE(memsz, context->reservation->Size() - offset); in Dlopen()
1176 context->max_size = std::max(context->max_size, offset + memsz); in Dlopen()
[all …]
Dmonitor_objects_stack_visitor.cc90 void MonitorObjectsStackVisitor::VisitLockedObject(ObjPtr<mirror::Object> o, void* context) { in VisitLockedObject() argument
91 MonitorObjectsStackVisitor* self = reinterpret_cast<MonitorObjectsStackVisitor*>(context); in VisitLockedObject()
/art/tools/class2greylist/src/com/android/class2greylist/
DCovariantReturnTypeHandler.java45 public void handleAnnotation(AnnotationEntry annotation, AnnotationContext context) { in handleAnnotation() argument
46 if (context instanceof AnnotatedClassContext) { in handleAnnotation()
49 handleAnnotation(annotation, (AnnotatedMemberContext) context); in handleAnnotation()
52 private void handleAnnotation(AnnotationEntry annotation, AnnotatedMemberContext context) { in handleAnnotation() argument
58 if (!(context.member instanceof Method)) { in handleAnnotation()
59 context.reportError("Cannot specify %s on a field", RETURN_TYPE); in handleAnnotation()
64 context.reportError("No %s set on @%s", RETURN_TYPE, SHORT_NAME); in handleAnnotation()
67 if (!mPublicApis.contains(context.getMemberDescriptor())) { in handleAnnotation()
68 context.reportError("Found @%s on non-SDK method", SHORT_NAME); in handleAnnotation()
74 String typeSignature = context.member.getSignature(); in handleAnnotation()
[all …]
DUnsupportedAppUsageAnnotationHandler.java87 public void handleAnnotation(AnnotationEntry annotation, AnnotationContext context) { in handleAnnotation() argument
89 if (context instanceof AnnotatedMemberContext) { in handleAnnotation()
90 AnnotatedMemberContext memberContext = (AnnotatedMemberContext) context; in handleAnnotation()
99 String signature = context.getMemberDescriptor(); in handleAnnotation()
110 context.reportError("Expected signature does not match generated:\n" in handleAnnotation()
118 context.reportError("Expected property %s to be of type int; got %d", in handleAnnotation()
128 if (context instanceof AnnotatedClassContext) { in handleAnnotation()
130 context.getClassDescriptor(), implicitMemberSignature); in handleAnnotation()
132 context.reportError( in handleAnnotation()
146 if (context instanceof AnnotatedClassContext && implicitMemberSignature == null) { in handleAnnotation()
[all …]
DAnnotationVisitor.java58 AnnotationContext context = new AnnotatedClassContext(mStatus, mClass, "L%s;"); in visit() local
60 handleAnnotations(context, annotationEntries); in visit()
77 AnnotationContext context = new AnnotatedMemberContext(mStatus, in visitMember() local
81 handleAnnotations(context, annotationEntries); in visitMember()
84 private void handleAnnotations(AnnotationContext context, AnnotationEntry[] annotationEntries) { in handleAnnotations() argument
89 mAnnotationHandlers.get(a.getAnnotationType()).handleAnnotation(a, context); in handleAnnotations()
DSignatureSyntaxError.java22 public final String context; field in SignatureSyntaxError
27 this.context = sc.getOriginalString(); in SignatureSyntaxError()
DJavadocLinkSyntaxError.java22 public final String context; field in JavadocLinkSyntaxError
28 this.context = sc.getOriginalString(); in JavadocLinkSyntaxError()
DRepeatedAnnotationHandler.java28 public void handleAnnotation(AnnotationEntry annotation, AnnotationContext context) { in handleAnnotation() argument
32 context.reportError("No value found on %s", annotation.getAnnotationType()); in handleAnnotation()
44 mWrappedHandler.handleAnnotation(aev.getAnnotationEntry(), context); in handleAnnotation() local
DMemberDumpingVisitor.java43 AnnotationContext context = new AnnotatedMemberContext(mStatus, in visitMember() local
46 System.out.println(context.getMemberDescriptor()); in visitMember()
/art/test/167-visit-locks/
Dvisit_locks.cc42 VisitLocks(Thread* thread, Context* context) in Java_Main_testVisitLocks() argument
43 : StackVisitor(thread, context, StackWalkKind::kIncludeInlinedFrames) { in Java_Main_testVisitLocks()
69 Context* context = Context::Create(); in Java_Main_testVisitLocks() local
70 VisitLocks vl(soa.Self(), context); in Java_Main_testVisitLocks()
72 delete context; in Java_Main_testVisitLocks()
/art/runtime/arch/arm64/
Dfault_handler_arm64.cc42 void* context, in GetMethodAndReturnPcAndSp() argument
47 struct ucontext *uc = reinterpret_cast<struct ucontext *>(context); in GetMethodAndReturnPcAndSp()
77 bool NullPointerHandler::Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info, void* context) { in Action() argument
85 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
107 void* context) { in Action() argument
114 struct ucontext *uc = reinterpret_cast<struct ucontext *>(context); in Action()
159 void* context) { in Action() argument
160 struct ucontext *uc = reinterpret_cast<struct ucontext *>(context); in Action()
/art/runtime/arch/arm/
Dfault_handler_arm.cc49 void* context, in GetMethodAndReturnPcAndSp() argument
54 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in GetMethodAndReturnPcAndSp()
96 bool NullPointerHandler::Action(int sig ATTRIBUTE_UNUSED, siginfo_t* info, void* context) { in Action() argument
107 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
133 void* context) { in Action() argument
140 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in Action()
204 void* context) { in Action() argument
205 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in Action()
/art/test/004-SignalTest/
Dsignaltest.cc63 void* context) { in signalhandler() argument
80 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in signalhandler()
84 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in signalhandler()
88 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in signalhandler()
91 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in signalhandler()
94 UNUSED(context); in signalhandler()
/art/test/466-get-live-vreg/
Dget_live_vreg_jni.cc32 TestVisitor(Thread* thread, Context* context) REQUIRES_SHARED(Locks::mutator_lock_) in TestVisitor() argument
33 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames) {} in TestVisitor()
82 std::unique_ptr<Context> context(Context::Create()); in Java_Main_doStaticNativeCallLiveVreg() local
83 TestVisitor visitor(soa.Self(), context.get()); in Java_Main_doStaticNativeCallLiveVreg()
/art/test/457-regs/
Dregs_jni.cc31 TestVisitor(Thread* thread, Context* context) in TestVisitor() argument
33 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames) {} in TestVisitor()
132 std::unique_ptr<Context> context(Context::Create()); in Java_PhiLiveness_regsNativeCall() local
133 TestVisitor visitor(soa.Self(), context.get()); in Java_PhiLiveness_regsNativeCall()
141 std::unique_ptr<Context> context(Context::Create()); in Java_PhiLiveness_regsNativeCallWithParameters() local
146 TestVisitor visitor(soa.Self(), context.get()); in Java_PhiLiveness_regsNativeCallWithParameters()
/art/runtime/gc/space/
Dzygote_space.cc120 SweepCallbackContext* context = static_cast<SweepCallbackContext*>(arg); in SweepCallback() local
121 DCHECK(context->space->IsZygoteSpace()); in SweepCallback()
122 ZygoteSpace* zygote_space = context->space->AsZygoteSpace(); in SweepCallback()
123 Locks::heap_bitmap_lock_->AssertExclusiveHeld(context->self); in SweepCallback()
127 if (!context->swap_bitmaps) { in SweepCallback()
/art/runtime/arch/x86/
Dfault_handler_x86.cc280 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, in GetMethodAndReturnPcAndSp() argument
285 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in GetMethodAndReturnPcAndSp()
328 bool NullPointerHandler::Action(int, siginfo_t* sig, void* context) { in Action() argument
332 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
373 bool SuspensionHandler::Action(int, siginfo_t*, void* context) { in Action() argument
388 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
443 bool StackOverflowHandler::Action(int, siginfo_t* info, void* context) { in Action() argument
444 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
/art/compiler/optimizing/
Dinduction_var_range.h67 bool GetInductionRange(HInstruction* context,
80 bool CanGenerateRange(HInstruction* context,
100 void GenerateRange(HInstruction* context,
113 HInstruction* GenerateTakenTest(HInstruction* context, HGraph* graph, HBasicBlock* block);
180 bool IsUnitStride(HInstruction* context,
219 bool HasInductionInfo(HInstruction* context,
289 bool GenerateRangeOrLastValue(HInstruction* context,
/art/test/543-env-long-ref/
Denv_long_ref.cc28 std::unique_ptr<Context> context(Context::Create()); in Java_Main_lookForMyRegisters() local
50 context.get(), in Java_Main_lookForMyRegisters()
/art/test/454-get-vreg/
Dget_vreg_jni.cc31 TestVisitor(Thread* thread, Context* context, mirror::Object* this_value) in TestVisitor() argument
33 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames), in TestVisitor()
125 std::unique_ptr<Context> context(Context::Create()); in Java_Main_doNativeCall() local
126 TestVisitor visitor(soa.Self(), context.get(), soa.Decode<mirror::Object>(value).Ptr()); in Java_Main_doNativeCall()

123