Home
last modified time | relevance | path

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

12

/art/runtime/
Druntime_linux.cc135 …explicit UContext(void* raw_context) : context(reinterpret_cast<ucontext_t*>(raw_context)->uc_mcon… in UContext()
140 DumpRegister32(os, "eax", context->__ss.__eax); in Dump()
141 DumpRegister32(os, "ebx", context->__ss.__ebx); in Dump()
142 DumpRegister32(os, "ecx", context->__ss.__ecx); in Dump()
143 DumpRegister32(os, "edx", context->__ss.__edx); in Dump()
146 DumpRegister32(os, "edi", context->__ss.__edi); in Dump()
147 DumpRegister32(os, "esi", context->__ss.__esi); in Dump()
148 DumpRegister32(os, "ebp", context->__ss.__ebp); in Dump()
149 DumpRegister32(os, "esp", context->__ss.__esp); in Dump()
152 DumpRegister32(os, "eip", context->__ss.__eip); in Dump()
[all …]
Dfault_handler.h45 void HandleFault(int sig, siginfo_t* info, void* context);
46 void HandleNestedSignal(int sig, siginfo_t* info, void* context);
54 void GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, mirror::ArtMethod** out_method,
57 bool IsInGeneratedCode(siginfo_t* siginfo, void *context, bool check_dex_pc)
76 virtual bool Action(int sig, siginfo_t* siginfo, void* context) = 0;
89 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRIDE;
99 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRIDE;
109 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRIDE;
119 bool Action(int sig, siginfo_t* siginfo, void* context) OVERRIDE NO_THREAD_SAFETY_ANALYSIS;
Dfault_handler.cc81 static void art_fault_handler(int sig, siginfo_t* info, void* context) { in art_fault_handler() argument
82 fault_manager.HandleFault(sig, info, context); in art_fault_handler()
86 static void art_nested_signal_handler(int sig, siginfo_t* info, void* context) { in art_nested_signal_handler() argument
87 fault_manager.HandleNestedSignal(sig, info, context); in art_nested_signal_handler()
138 void FaultManager::HandleFault(int sig, siginfo_t* info, void* context) { in HandleFault() argument
144 if (IsInGeneratedCode(info, context, true)) { in HandleFault()
148 if (handler->Action(sig, info, context)) { in HandleFault()
167 if (handler->Action(sig, info, context)) { in HandleFault()
176 InvokeUserSignalHandler(sig, info, context); in HandleFault()
203 bool FaultManager::IsInGeneratedCode(siginfo_t* siginfo, void* context, bool check_dex_pc) { in IsInGeneratedCode() argument
[all …]
Ddex_file.cc722 LineNumFromPcContext context(rel_pc, -1); in GetLineNumFromPC() local
724 NULL, &context); in GetLineNumFromPC()
725 return context.line_num_; in GetLineNumFromPC()
763 void* context, const byte* stream, LocalInfo* local_in_reg) const { in DecodeDebugInfo0() argument
852 InvokeLocalCbIfLive(context, reg, address, local_in_reg, local_cb); in DecodeDebugInfo0()
873 InvokeLocalCbIfLive(context, reg, address, local_in_reg, local_cb); in DecodeDebugInfo0()
913 if (position_cb(context, address, line)) { in DecodeDebugInfo0()
926 void* context) const { in DecodeDebugInfo()
933 …DecodeDebugInfo0(code_item, is_static, method_idx, position_cb, local_cb, context, stream, &local_… in DecodeDebugInfo()
936 …InvokeLocalCbIfLive(context, reg, code_item->insns_size_in_code_units_, &local_in_reg[0], local_cb… in DecodeDebugInfo()
[all …]
Ddebugger.cc953 OwnedMonitorVisitor(Thread* thread, Context* context, in GetOwnedMonitors()
957 : StackVisitor(thread, context), current_stack_depth(0), in GetOwnedMonitors()
994 std::unique_ptr<Context> context(Context::Create()); in GetOwnedMonitors() local
995 OwnedMonitorVisitor visitor(thread, context.get(), &monitors, &stack_depths); in GetOwnedMonitors()
1659 static bool Callback(void* context, uint32_t address, uint32_t line_number) { in OutputLineTable()
1660 DebugCallbackContext* pContext = reinterpret_cast<DebugCallbackContext*>(context); in OutputLineTable()
1687 DebugCallbackContext context; in OutputLineTable() local
1688 context.numItems = 0; in OutputLineTable()
1689 context.pReply = pReply; in OutputLineTable()
1693 DebugCallbackContext::Callback, NULL, &context); in OutputLineTable()
[all …]
Dquick_exception_handler.cc45 CatchBlockStackVisitor(Thread* self, Context* context, Handle<mirror::Throwable>* exception, in CatchBlockStackVisitor() argument
48 : StackVisitor(self, context), self_(self), exception_(exception), in CatchBlockStackVisitor()
172 DeoptimizeStackVisitor(Thread* self, Context* context, QuickExceptionHandler* exception_handler) in DeoptimizeStackVisitor() argument
174 : StackVisitor(self, context), self_(self), exception_handler_(exception_handler), in DeoptimizeStackVisitor()
Dthread.cc876 StackDumpVisitor(std::ostream& os, Thread* thread, Context* context, bool can_allocate) in StackDumpVisitor()
878 : StackVisitor(thread, context), os(os), thread(thread), can_allocate(can_allocate), in StackDumpVisitor()
934 static void DumpLockedObject(mirror::Object* o, void* context) in DumpLockedObject()
936 std::ostream& os = *reinterpret_cast<std::ostream*>(context); in DumpLockedObject()
1012 std::unique_ptr<Context> context(Context::Create()); in DumpJavaStack() local
1013 StackDumpVisitor dumper(os, const_cast<Thread*>(this), context.get(), in DumpJavaStack()
1986 CurrentMethodVisitor(Thread* thread, Context* context, bool abort_on_error) in CurrentMethodVisitor()
1988 : StackVisitor(thread, context), this_object_(nullptr), method_(nullptr), dex_pc_(0), in CurrentMethodVisitor()
2019 Context* context = GetLongJumpContext(); in GetCurrentLocationForThrow() local
2020 CurrentMethodVisitor visitor(this, context, true); in GetCurrentLocationForThrow()
[all …]
/art/runtime/arch/mips/
Dfault_handler_mips.cc32 void FaultManager::HandleNestedSignal(int sig, siginfo_t* info, void* context) { in HandleNestedSignal() argument
35 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, in GetMethodAndReturnPcAndSp() argument
40 bool NullPointerHandler::Action(int sig, siginfo_t* info, void* context) { in Action() argument
44 bool SuspensionHandler::Action(int sig, siginfo_t* info, void* context) { in Action() argument
48 bool StackOverflowHandler::Action(int sig, siginfo_t* info, void* context) { in Action() argument
/art/runtime/arch/arm64/
Dfault_handler_arm64.cc40 void FaultManager::HandleNestedSignal(int sig, siginfo_t* info, void* context) { in HandleNestedSignal() argument
44 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in HandleNestedSignal()
54 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, in GetMethodAndReturnPcAndSp() argument
57 struct ucontext *uc = reinterpret_cast<struct ucontext *>(context); in GetMethodAndReturnPcAndSp()
85 bool NullPointerHandler::Action(int sig, siginfo_t* info, void* context) { in Action() argument
90 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
108 bool SuspensionHandler::Action(int sig, siginfo_t* info, void* context) { in Action() argument
114 struct ucontext *uc = reinterpret_cast<struct ucontext *>(context); in Action()
158 bool StackOverflowHandler::Action(int sig, siginfo_t* info, void* context) { in Action() argument
159 struct ucontext *uc = reinterpret_cast<struct ucontext *>(context); in Action()
/art/runtime/arch/arm/
Dfault_handler_arm.cc50 void FaultManager::HandleNestedSignal(int sig, siginfo_t* info, void* context) { in HandleNestedSignal() argument
56 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in HandleNestedSignal()
67 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, in GetMethodAndReturnPcAndSp() argument
70 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in GetMethodAndReturnPcAndSp()
103 bool NullPointerHandler::Action(int sig, siginfo_t* info, void* context) { in Action() argument
111 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
130 bool SuspensionHandler::Action(int sig, siginfo_t* info, void* context) { in Action() argument
136 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in Action()
199 bool StackOverflowHandler::Action(int sig, siginfo_t* info, void* context) { in Action() argument
200 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in Action()
/art/runtime/arch/x86/
Dfault_handler_x86.cc229 void FaultManager::HandleNestedSignal(int sig, siginfo_t* info, void* context) { in HandleNestedSignal() argument
239 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in HandleNestedSignal()
244 void FaultManager::GetMethodAndReturnPcAndSp(siginfo_t* siginfo, void* context, in GetMethodAndReturnPcAndSp() argument
247 struct ucontext* uc = reinterpret_cast<struct ucontext*>(context); in GetMethodAndReturnPcAndSp()
282 bool NullPointerHandler::Action(int sig, siginfo_t* info, void* context) { in Action() argument
283 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
322 bool SuspensionHandler::Action(int sig, siginfo_t* info, void* context) { in Action() argument
341 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
396 bool StackOverflowHandler::Action(int sig, siginfo_t* info, void* context) { in Action() argument
397 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in Action()
/art/test/004-SignalTest/
Dsignaltest.cc50 static void signalhandler(int sig, siginfo_t* info, void* context) { in signalhandler() argument
57 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in signalhandler()
61 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in signalhandler()
65 struct ucontext *uc = reinterpret_cast<struct ucontext*>(context); in signalhandler()
/art/compiler/llvm/
Dir_builder.cc31 IRBuilder::IRBuilder(::llvm::LLVMContext& context, ::llvm::Module& module, in IRBuilder() argument
33 : LLVMIRBuilder(context), module_(&module), mdb_(context), java_object_type_(NULL), in IRBuilder()
57 ::llvm::Type* jenv_struct_type = ::llvm::StructType::create(context, "JEnv"); in IRBuilder()
Druntime_support_builder_arm.h27 RuntimeSupportBuilderARM(::llvm::LLVMContext& context, ::llvm::Module& module, IRBuilder& irb) in RuntimeSupportBuilderARM() argument
28 : RuntimeSupportBuilder(context, module, irb) {} in RuntimeSupportBuilderARM()
Druntime_support_builder_x86.h27 RuntimeSupportBuilderX86(::llvm::LLVMContext& context, ::llvm::Module& module, IRBuilder& irb) in RuntimeSupportBuilderX86() argument
28 : RuntimeSupportBuilder(context, module, irb) {} in RuntimeSupportBuilderX86()
Dmd_builder.h38 explicit MDBuilder(::llvm::LLVMContext& context) in MDBuilder() argument
39 : LLVMMDBuilder(context), tbaa_root_(createTBAARoot("Art TBAA Root")) { in MDBuilder()
Dintrinsic_helper.cc93 IntrinsicHelper::IntrinsicHelper(::llvm::LLVMContext& context, in IntrinsicHelper() argument
95 IRBuilder irb(context, module, *this); in IntrinsicHelper()
Druntime_support_builder.cc39 RuntimeSupportBuilder::RuntimeSupportBuilder(::llvm::LLVMContext& context, in RuntimeSupportBuilder() argument
42 : context_(context), module_(module), irb_(irb) { in RuntimeSupportBuilder()
/art/runtime/gc/space/
Dzygote_space.cc105 SweepCallbackContext* context = static_cast<SweepCallbackContext*>(arg); in SweepCallback() local
106 DCHECK(context->space->IsZygoteSpace()); in SweepCallback()
107 ZygoteSpace* zygote_space = context->space->AsZygoteSpace(); in SweepCallback()
108 Locks::heap_bitmap_lock_->AssertExclusiveHeld(context->self); in SweepCallback()
112 if (!context->swap_bitmaps) { in SweepCallback()
Dmalloc_space.cc231 SweepCallbackContext* context = static_cast<SweepCallbackContext*>(arg); in SweepCallback() local
232 space::MallocSpace* space = context->space->AsMallocSpace(); in SweepCallback()
233 Thread* self = context->self; in SweepCallback()
237 if (!context->swap_bitmaps) { in SweepCallback()
246 context->freed.objects += num_ptrs; in SweepCallback()
247 context->freed.bytes += space->FreeList(self, num_ptrs, ptrs); in SweepCallback()
Dlarge_object_space.cc492 SweepCallbackContext* context = static_cast<SweepCallbackContext*>(arg); in SweepCallback() local
493 space::LargeObjectSpace* space = context->space->AsLargeObjectSpace(); in SweepCallback()
494 Thread* self = context->self; in SweepCallback()
498 if (!context->swap_bitmaps) { in SweepCallback()
504 context->freed.objects += num_ptrs; in SweepCallback()
505 context->freed.bytes += space->FreeList(self, num_ptrs, ptrs); in SweepCallback()
/art/runtime/native/
Dorg_apache_harmony_dalvik_ddmc_DdmVmInternal.cc88 static void ThreadCountCallback(Thread*, void* context) { in ThreadCountCallback() argument
89 uint16_t& count = *reinterpret_cast<uint16_t*>(context); in ThreadCountCallback()
96 static void ThreadStatsGetterCallback(Thread* t, void* context) { in ThreadStatsGetterCallback() argument
124 std::vector<uint8_t>& bytes = *reinterpret_cast<std::vector<uint8_t>*>(context); in ThreadStatsGetterCallback()
/art/sigchainlib/
Dsigchain.h30 extern "C" void InvokeUserSignalHandler(int sig, siginfo_t* info, void* context);
Dsigchain_dummy.cc57 extern "C" void InvokeUserSignalHandler(int sig, siginfo_t* info, void* context) { in InvokeUserSignalHandler() argument
Dsigchain.cc115 extern "C" void InvokeUserSignalHandler(int sig, siginfo_t* info, void* context) { in InvokeUserSignalHandler() argument
134 action.sa_sigaction(sig, info, context); in InvokeUserSignalHandler()

12