| ... | @@ -5702,6 +5702,10 @@ pub fn isNoReturn(ip: *const InternPool, ty: Index) bool { | ... | @@ -5702,6 +5702,10 @@ pub fn isNoReturn(ip: *const InternPool, ty: Index) bool { |
| 5702 | }; | 5702 | }; |
| 5703 | } | 5703 | } |
| 5704 | | 5704 | |
| | 5705 | pub fn isRuntimeValue(ip: *const InternPool, val: Index) bool { |
| | 5706 | return ip.items.items(.tag)[@intFromEnum(val)] == .runtime_value; |
| | 5707 | } |
| | 5708 | |
| 5705 | /// This is a particularly hot function, so we operate directly on encodings | 5709 | /// This is a particularly hot function, so we operate directly on encodings |
| 5706 | /// rather than the more straightforward implementation of calling `indexToKey`. | 5710 | /// rather than the more straightforward implementation of calling `indexToKey`. |
| 5707 | pub fn zigTypeTagOrPoison(ip: *const InternPool, index: Index) error{GenericPoison}!std.builtin.TypeId { | 5711 | pub fn zigTypeTagOrPoison(ip: *const InternPool, index: Index) error{GenericPoison}!std.builtin.TypeId { |