Returns the [SPOffset] used as the base of the return area. # Panics This function panics if the return area doesn't hold a [SPOffset].
(&self)
| 267 | /// # Panics |
| 268 | /// This function panics if the return area doesn't hold a [SPOffset]. |
| 269 | pub fn unwrap_sp(&self) -> SPOffset { |
| 270 | match self { |
| 271 | Self::SP(offs) => *offs, |
| 272 | _ => unreachable!(), |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | /// Returns true if the return area is addressed via the stack pointer. |
| 277 | pub fn is_sp(&self) -> bool { |
no outgoing calls
no test coverage detected