Skip to main content

Module native

Module native 

Source
Expand description

Versioned executor-neutral ABI shared by native code generators and runtime hosts.

The ABI deliberately carries opaque value/root tokens rather than Rust Value layouts. This keeps numeric storage private and lets the final integer seal evolve without creating a second value system. Pointers are borrowed for one host call; ownership always remains with the documented host-side arena or root table.

Structs§

NativeAbiError
NativeAbiLayout
Complete target layout used by native-code cache keys and compatibility checks. Portable executable identity uses the contract fingerprint above; native objects additionally bind this target-specific fingerprint.
NativeAbiVersion
NativeCall
One borrowed call transaction. Results are committed only when the returned NativeExit is Completed; all other exits leave host-visible outputs unset.
NativeCallKind
NativeCancellation
NativeCancellationReason
NativeDeoptReason
NativeDeoptimization
NativeException
Opaque exception identity plus precise throw location.
NativeExit
Result of a native call. Only the payload selected by kind is meaningful.
NativeExitKind
NativeFrame
Runtime-owned frame visible to generated code and host helpers.
NativeFrameKind
NativeHostStatus
NativeHostVTable
Runtime helper table supplied to generated code.
NativeResumeKind
NativeResumeState
Exact interpreter-materializable state at a native program point.
NativeRoot
One precise GC root visible at a native safepoint.
NativeRootKind
NativeRootSet
Borrowed root slice. The host owns the backing allocation.
NativeSafepoint
State exposed at every allocation, cancellation, transfer, or deopt poll.
NativeSiteOutcome
Host decision for one Native IR site.
NativeSiteOutcomeKind
NativeSitePhase
NativeSiteRequest
Stable, path-independent identity of one executable Native IR site.
NativeSourceLocation
Stable source location. It contains no host path or Rust string layout.
NativeSourceMapEntry
Path-independent source-map projection for diagnostics and stack traces.
NativeSourceMapView
NativeSuspension
NativeTypeLayout
NativeUtf8
Borrowed UTF-8 bytes owned by the executable product.
NativeValueRef
Opaque, generation-checked reference to a runtime-owned RunMat value.

Constants§

NATIVE_ABI_SCHEMA_VERSION
NATIVE_ABI_VERSION

Functions§

native_abi_contract_fingerprint
Target-independent identity used by executable/runtime compatibility keys.
native_abi_layout
native_abi_layout_fingerprint

Type Aliases§

NativeEntryPoint
Uniform generated-function entrypoint.
NativeExecuteSiteFn
Execute exactly one immutable Native IR site.
NativeReleaseValueFn
NativeRetainValueFn
NativeSafepointFn
NativeSourceLookupFn