Lines Matching refs:stack_top
44 static inline bool IsValidFrame(uptr frame, uptr stack_top, uptr stack_bottom) { in IsValidFrame() argument
45 return frame > stack_bottom && frame < stack_top - 2 * sizeof (uhwptr); in IsValidFrame()
52 uptr stack_top, in GetCanonicFrame() argument
55 if (!IsValidFrame(bp, stack_top, stack_bottom)) return 0; in GetCanonicFrame()
57 if (IsValidFrame((uptr)bp_prev[0], stack_top, stack_bottom)) return bp_prev; in GetCanonicFrame()
60 if (IsValidFrame((uptr)bp_prev[-1], stack_top, stack_bottom)) in GetCanonicFrame()
72 void BufferedStackTrace::FastUnwindStack(uptr pc, uptr bp, uptr stack_top, in FastUnwindStack() argument
77 if (stack_top < 4096) return; // Sanity check for stack top. in FastUnwindStack()
78 uhwptr *frame = GetCanonicFrame(bp, stack_top, stack_bottom); in FastUnwindStack()
83 while (IsValidFrame((uptr)frame, stack_top, bottom) && in FastUnwindStack()
91 if (!IsValidFrame((uptr)caller_frame, stack_top, bottom) || in FastUnwindStack()
102 frame = GetCanonicFrame((uptr)frame[0], stack_top, bottom); in FastUnwindStack()