← All docs
is_object() — internals
Compiler internals for is_object(): lowering path, type checks, and runtime helpers.
is_object() — internals
Where it lives
- Signature:
src/builtins/types/is_object.rs - Lowering:
src/codegen/lower_inst/builtins.rs:1636 (lower_is_object) - Function symbol:
lower_is_object()
Lowering notes
- Lowers
is_object(): true for statically-known objects, or a boxed Mixed/Union value whose - runtime tag is an object (6).
Runtime helpers
No direct __rt_* helpers captured — the lowering is inlined or routes through another builtin.
Signature summary
function is_object(mixed $value): bool
What the type checker enforces
- Arity: takes exactly 1 argument.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/types/is_object.rs(eval_builtin!) - Dispatch hooks:
direct,values