Lines Matching refs:uptr
30 uptr StackTrace::GetPreviousInstructionPc(uptr pc) { in GetPreviousInstructionPc()
45 static void PrintStackFramePrefix(uptr frame_num, uptr pc) { in PrintStackFramePrefix()
60 static void PrintModuleAndOffset(const char *module, uptr offset, in PrintModuleAndOffset()
65 void StackTrace::PrintStack(const uptr *addr, uptr size, in PrintStack()
71 uptr frame_num = 0; in PrintStack()
72 for (uptr i = 0; i < size && addr[i]; i++) { in PrintStack()
75 uptr pc = GetPreviousInstructionPc(addr[i]); in PrintStack()
76 uptr addr_frames_num = 0; // The number of stack frames for current in PrintStack()
93 for (uptr j = 0; j < addr_frames_num; j++) { in PrintStack()
115 uptr offset; in PrintStack()
127 uptr StackTrace::GetCurrentPc() { in GetCurrentPc()
131 void StackTrace::FastUnwindStack(uptr pc, uptr bp, in FastUnwindStack()
132 uptr stack_top, uptr stack_bottom) { in FastUnwindStack()
142 IsAligned((uptr)frame, sizeof(*frame)) && in FastUnwindStack()
146 trace[size++] = (uptr) pc1; in FastUnwindStack()
153 void StackTrace::PopStackFrames(uptr count) { in PopStackFrames()
156 for (uptr i = 0; i < size; i++) { in PopStackFrames()
165 uptr StackTrace::CompressStack(StackTrace *stack, u32 *compressed, uptr size) { in CompressStack()
168 uptr res = 0; in CompressStack()
169 for (uptr i = 0; i < stack->size && i < size; i++) { in CompressStack()
176 uptr prev_pc = 0; in CompressStack()
177 const uptr kMaxOffset = (1ULL << 30) - 1; in CompressStack()
178 uptr c_index = 0; in CompressStack()
179 uptr res = 0; in CompressStack()
180 for (uptr i = 0, n = stack->size; i < n; i++) { in CompressStack()
181 uptr pc = stack->trace[i]; in CompressStack()
186 uptr offset = (s64)(pc - prev_pc); in CompressStack()
192 uptr hi = pc >> 32; in CompressStack()
193 uptr lo = (pc << 32) >> 32; in CompressStack()
221 check_stack.size * sizeof(uptr))); in CompressStack()
229 u32 *compressed, uptr size) { in UncompressStack()
233 for (uptr i = 0; i < size && i < kStackTraceMax; i++) { in UncompressStack()
239 uptr prev_pc = 0; in UncompressStack()
241 for (uptr i = 0; i < size && stack->size < kStackTraceMax; i++) { in UncompressStack()
243 uptr pc = 0; in UncompressStack()
254 uptr hi = x; in UncompressStack()
255 uptr lo = compressed[i+1]; in UncompressStack()