Constants§
- PTR_
MASK - TAG_
FALSE - TAG_
KIND_ BOOL_ FALSE - TAG_
KIND_ BOOL_ TRUE - TAG_
KIND_ CLOSURE - TAG_
KIND_ ERR - TAG_
KIND_ LIST - TAG_
KIND_ OK - TAG_
KIND_ STRING - TAG_
KIND_ STRUCT - TAG_
KIND_ UNIT - TAG_
KIND_ VARIANT - TAG_
MASK - TAG_
PATTERN - TAG_
TRUE - TAG_
UNIT
Statics§
Functions§
- call_
builtin ⚠ - Call a builtin by name from JIT’d code.
- decode_
bool - decode_
f64 - decode_
ptr - Extract the pointer from a heap-allocated tagged value.
- encode_
bool - encode_
f64 - encode_
heap - Encode a heap-allocated value (pointer must be valid and aligned). The pointer’s lower 48 bits are stored, higher bits must be zero-extendable. On x86-64, user-space pointers are < 2^48 so this is safe.
- encode_
unit - is_
number - is_
tagged - ling_
abs ⚠ - ling_
add ⚠ - ling_
alloc ⚠ - ling_
and ⚠ - ling_
bool_ ⚠to_ u64 - ling_
builtin ⚠ - Generic builtin dispatcher – calls builtin by name.
- ling_
ceil ⚠ - ling_
cos ⚠ - ling_
div ⚠ - ling_eq⚠
- ling_
f64_ ⚠add - ling_
f64_ ⚠div - ling_
f64_ ⚠eq - ling_
f64_ ⚠ge - ling_
f64_ ⚠gt - ling_
f64_ ⚠le - ling_
f64_ ⚠lt - ling_
f64_ ⚠mul - ling_
f64_ ⚠neg - ling_
f64_ ⚠rem - ling_
f64_ ⚠sub - ling_
floor ⚠ - ling_
free ⚠ - ling_ge⚠
- ling_gt⚠
- ling_le⚠
- ling_
list_ ⚠get - ling_
list_ ⚠len - ling_
list_ ⚠new - ling_
list_ ⚠push - ling_lt⚠
- ling_
mul ⚠ - ling_ne⚠
- ling_
neg ⚠ - ling_
not ⚠ - ling_or⚠
- ling_
panic ⚠ - ling_
print ⚠ - ling_
print_ ⚠val - ling_
rem ⚠ - ling_
round ⚠ - ling_
sin ⚠ - ling_
sqrt ⚠ - ling_
str_ ⚠concat - ling_
str_ ⚠eq - ling_
str_ ⚠len - ling_
str_ ⚠new - ling_
struct_ ⚠get - ling_
struct_ ⚠new - ling_
sub ⚠ - register_
builtin_ dispatch - tag_
kind - Extract the kind tag from a tagged value.
Type Aliases§
- Builtin
Dispatch - Signature of the builtin dispatch function provided by the host
lingcrate. Receives builtin name (ptr+len), args array (ptr+len), returns encoded Value.