Skip to main content

Module eval_router

Module eval_router 

Source
Expand description

Evaluator, Bytecode VM, and Task Scheduler Call-Site Cutover Router (Stage S6).

Replaces direct string-based crate::bind::dispatch calls across crates/vibe/src/{eval, bytecode, task_scheduler} with unified ExtensionRegistry resolution, $O(1)$ PreparedCallCache lookup, zero-heap slice marshaling, SentinelPolicyGate enforcement, and budget charging.

Structs§

PreparedCallCache
Fixed-capacity, zero-heap cache mapping call-path FNV-1a hashes to PreparedCallHandles.

Constants§

BUILTIN_EXTENSION_ALIASES
Short aliases of all built-in extension providers registered by default.
BUILTIN_EXTENSION_IRIS
Canonical namespace IRIs of all built-in extension providers registered by default.

Functions§

execute_prepared_value_call
Executes a resolved PreparedCallHandle by marshaling pos_args into stack-allocated BorrowedSliceViews (with descriptor-driven overflow sizing when needed), invoking dispatch_prepared_call, charging budget, and decoding CallerOutputSlice back to a Value.
is_extension_call_path
Returns true if path starts with a registered built-in extension alias or canonical IRI.
is_extension_namespace
Returns true if ns is a known built-in extension alias or canonical IRI.
route_call
Unified host and extension call router used by eval, bytecode, and task_scheduler.
trap_to_diagnostic
Maps a deterministic VibeTrap to a VibeScript Diagnostic.
try_prepare_path
Resolves a dotted or canonical IRI call path against registry into a PreparedCallHandle.