Lines Matching refs:frame
67 StackFrameARM* frame = new StackFrameARM(); in GetContextFrame() local
71 frame->context = *context_; in GetContextFrame()
72 frame->context_validity = context_frame_validity_; in GetContextFrame()
73 frame->trust = StackFrame::FRAME_TRUST_CONTEXT; in GetContextFrame()
74 frame->instruction = frame->context.iregs[MD_CONTEXT_ARM_REG_PC]; in GetContextFrame()
76 return frame; in GetContextFrame()
105 scoped_ptr<StackFrameARM> frame(new StackFrameARM()); in GetCallerByCFIFrameInfo() local
112 frame->context_validity |= StackFrameARM::RegisterValidFlag(i); in GetCallerByCFIFrameInfo()
113 frame->context.iregs[i] = entry->second; in GetCallerByCFIFrameInfo()
120 frame->context_validity |= StackFrameARM::RegisterValidFlag(i); in GetCallerByCFIFrameInfo()
121 frame->context.iregs[i] = last_frame->context.iregs[i]; in GetCallerByCFIFrameInfo()
125 if (!(frame->context_validity & StackFrameARM::CONTEXT_VALID_PC)) { in GetCallerByCFIFrameInfo()
130 frame->context_validity |= StackFrameARM::CONTEXT_VALID_PC; in GetCallerByCFIFrameInfo()
131 frame->context.iregs[MD_CONTEXT_ARM_REG_PC] = entry->second; in GetCallerByCFIFrameInfo()
135 frame->context_validity |= StackFrameARM::CONTEXT_VALID_PC; in GetCallerByCFIFrameInfo()
136 frame->context_validity |= StackFrameARM::CONTEXT_VALID_LR; in GetCallerByCFIFrameInfo()
137 frame->context.iregs[MD_CONTEXT_ARM_REG_LR] = entry->second; in GetCallerByCFIFrameInfo()
138 frame->context.iregs[MD_CONTEXT_ARM_REG_PC] = in GetCallerByCFIFrameInfo()
144 if (!(frame->context_validity & StackFrameARM::CONTEXT_VALID_SP)) { in GetCallerByCFIFrameInfo()
148 frame->context_validity |= StackFrameARM::CONTEXT_VALID_SP; in GetCallerByCFIFrameInfo()
149 frame->context.iregs[MD_CONTEXT_ARM_REG_SP] = entry->second; in GetCallerByCFIFrameInfo()
156 if ((frame->context_validity & essentials) != essentials) in GetCallerByCFIFrameInfo()
159 frame->trust = StackFrame::FRAME_TRUST_CFI; in GetCallerByCFIFrameInfo()
160 return frame.release(); in GetCallerByCFIFrameInfo()
182 StackFrameARM* frame = new StackFrameARM(); in GetCallerByStackScan() local
184 frame->trust = StackFrame::FRAME_TRUST_SCAN; in GetCallerByStackScan()
185 frame->context = last_frame->context; in GetCallerByStackScan()
186 frame->context.iregs[MD_CONTEXT_ARM_REG_PC] = caller_pc; in GetCallerByStackScan()
187 frame->context.iregs[MD_CONTEXT_ARM_REG_SP] = caller_sp; in GetCallerByStackScan()
188 frame->context_validity = StackFrameARM::CONTEXT_VALID_PC | in GetCallerByStackScan()
191 return frame; in GetCallerByStackScan()
224 StackFrameARM* frame = new StackFrameARM(); in GetCallerByFramePointer() local
226 frame->trust = StackFrame::FRAME_TRUST_FP; in GetCallerByFramePointer()
227 frame->context = last_frame->context; in GetCallerByFramePointer()
228 frame->context.iregs[fp_register_] = caller_fp; in GetCallerByFramePointer()
229 frame->context.iregs[MD_CONTEXT_ARM_REG_SP] = caller_sp; in GetCallerByFramePointer()
230 frame->context.iregs[MD_CONTEXT_ARM_REG_PC] = in GetCallerByFramePointer()
232 frame->context.iregs[MD_CONTEXT_ARM_REG_LR] = caller_lr; in GetCallerByFramePointer()
233 frame->context_validity = StackFrameARM::CONTEXT_VALID_PC | in GetCallerByFramePointer()
237 return frame; in GetCallerByFramePointer()
249 scoped_ptr<StackFrameARM> frame; in GetCallerFrame() local
255 frame.reset(GetCallerByCFIFrameInfo(frames, cfi_frame_info.get())); in GetCallerFrame()
259 if (fp_register_ >= 0 && !frame.get()) in GetCallerFrame()
260 frame.reset(GetCallerByFramePointer(frames)); in GetCallerFrame()
263 if (stack_scan_allowed && !frame.get()) in GetCallerFrame()
264 frame.reset(GetCallerByStackScan(frames)); in GetCallerFrame()
267 if (!frame.get()) in GetCallerFrame()
272 if (frame->context.iregs[MD_CONTEXT_ARM_REG_PC] == 0) in GetCallerFrame()
278 if (frame->context.iregs[MD_CONTEXT_ARM_REG_SP] in GetCallerFrame()
290 frame->instruction = frame->context.iregs[MD_CONTEXT_ARM_REG_PC] - 2; in GetCallerFrame()
292 return frame.release(); in GetCallerFrame()