Lines Matching refs:context

23 #include "arch/context.h"
886 OwnedMonitorVisitor(Thread* thread, Context* context,
890 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames),
926 std::unique_ptr<Context> context(Context::Create());
927 OwnedMonitorVisitor visitor(thread, context.get(), monitors, stack_depths);
1628 static bool Callback(void* context, uint32_t address, uint32_t line_number) {
1629 DebugCallbackContext* pContext = reinterpret_cast<DebugCallbackContext*>(context);
1656 DebugCallbackContext context;
1657 context.numItems = 0;
1658 context.pReply = pReply;
1662 DebugCallbackContext::Callback, nullptr, &context);
1665 JDWP::Set4BE(expandBufGetBuffer(pReply) + numLinesOffset, context.numItems);
1676 static void Callback(void* context, uint16_t slot, uint32_t startAddress, uint32_t endAddress,
1679 DebugCallbackContext* pContext = reinterpret_cast<DebugCallbackContext*>(context);
1711 DebugCallbackContext context;
1712 context.method = m;
1713 context.pReply = pReply;
1714 context.variable_count = 0;
1715 context.with_generic = with_generic;
1721 &context);
1724 JDWP::Set4BE(expandBufGetBuffer(pReply) + variable_count_offset, context.variable_count);
2489 GetThisVisitor(Thread* thread, Context* context, JDWP::FrameId frame_id_in)
2491 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames),
2521 std::unique_ptr<Context> context(Context::Create());
2522 GetThisVisitor visitor(thread, context.get(), frame_id);
2531 FindFrameVisitor(Thread* thread, Context* context, JDWP::FrameId frame_id)
2533 : StackVisitor(thread, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames),
2577 std::unique_ptr<Context> context(Context::Create());
2578 FindFrameVisitor visitor(thread, context.get(), frame_id);
2584 // Read the values from visitor's context.
2748 std::unique_ptr<Context> context(Context::Create());
2749 FindFrameVisitor visitor(thread, context.get(), frame_id);
2755 // Writes the values into visitor's context.
2937 CatchLocationFinder(Thread* self, const Handle<mirror::Throwable>& exception, Context* context)
2939 : StackVisitor(self, context, StackVisitor::StackWalkKind::kIncludeInlinedFrames),
3024 std::unique_ptr<Context> context(Context::Create());
3025 CatchLocationFinder clf(self, h_exception, context.get());
3726 DebugCallbackContext* context = reinterpret_cast<DebugCallbackContext*>(raw_context);
3727 if (static_cast<int32_t>(line_number_cb) == context->line_number_) {
3728 if (!context->last_pc_valid) {
3730 context->last_pc = address;
3731 context->last_pc_valid = true;
3735 } else if (context->last_pc_valid) { // and the line number is new
3737 for (uint32_t dex_pc = context->last_pc; dex_pc < address; ++dex_pc) {
3738 context->single_step_control_->AddDexPc(dex_pc);
3740 context->last_pc_valid = false;
3777 DebugCallbackContext context(single_step_control, line_number, code_item);
3779 DebugCallbackContext::Callback, nullptr, &context);
4634 // OLD-TODO: if context.merge, see if this chunk is different from the last chunk.
4755 HeapChunkContext context(what == HPSG_WHAT_MERGED_OBJECTS, native);
4758 dlmalloc_inspect_all(HeapChunkContext::HeapChunkNativeCallback, &context);
4759 HeapChunkContext::HeapChunkNativeCallback(nullptr, nullptr, 0, &context); // Indicate end of a space.
4770 context.SetChunkOverhead(sizeof(size_t));
4771 space->AsDlMallocSpace()->Walk(HeapChunkContext::HeapChunkJavaCallback, &context);
4773 context.SetChunkOverhead(0);
4781 space->AsRosAllocSpace()->Walk(HeapChunkContext::HeapChunkJavaCallback, &context);
4787 context.SetChunkOverhead(0);
4788 space->AsBumpPointerSpace()->Walk(BumpPointerSpaceCallback, &context);
4789 HeapChunkContext::HeapChunkJavaCallback(nullptr, nullptr, 0, &context);
4796 context.SetChunkOverhead(0);
4797 space->AsRegionSpace()->Walk(BumpPointerSpaceCallback, &context);
4798 HeapChunkContext::HeapChunkJavaCallback(nullptr, nullptr, 0, &context);
4805 context.ResetStartOfNextChunk();
4809 context.SetChunkOverhead(0);
4810 heap->GetLargeObjectsSpace()->Walk(HeapChunkContext::HeapChunkJavaCallback, &context);