(self, ty: &JitType)
| 301 | |
| 302 | impl UnTypedAbiValue { |
| 303 | unsafe fn to_typed(self, ty: &JitType) -> AbiValue { |
| 304 | unsafe { |
| 305 | match ty { |
| 306 | JitType::Int => AbiValue::Int(self.int), |
| 307 | JitType::Float => AbiValue::Float(self.float), |
| 308 | JitType::Bool => AbiValue::Bool(self.boolean != 0), |
| 309 | } |
| 310 | } |
| 311 | } |
| 312 | } |
| 313 | |
| 314 | // we don't actually ever touch CompiledCode til we drop it, it should be safe. |
no test coverage detected