MCPcopy Create free account
hub / github.com/chc4/lineiform / stack

Method stack

lineiform/src/lift.rs:217–233  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

215 }
216
217 fn stack(&self) -> usize {
218 let sp = self.bound.get(&Location::Reg(RegSpec::rsp()));
219 match sp {
220 Some(JitVariable::Known(JitValue::Ref(base, offset)))
221 if let JitValue::Stack = **base =>
222 {
223 //println!("current stack @ 0x{:x}", offset);
224 assert!(offset <= &STACK_TOP);
225 *offset
226 },
227 Some(JitVariable::Known(JitValue::Const(Wrapping(stack)))) => {
228 assert!(stack <= &STACK_TOP);
229 *stack
230 }
231 x => unimplemented!("non-concrete stack?? {:?}", x),
232 }
233 }
234
235 fn dump(&self) {
236 }

Callers 2

emitMethod · 0.80
shift_stackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected