Skip to main content

execute_remote_call

Function execute_remote_call 

Source
pub fn execute_remote_call(
    request: RemoteCallRequest,
    store: &SnapshotStore,
) -> RemoteCallResponse
Expand description

Execute a remote call request on this machine.

This is the entry point for the receiving side. It:

  1. Reconstructs the BytecodeProgram and populates its TypeSchemaRegistry
  2. Creates a full VirtualMachine with the program
  3. Materializes serialized arguments as kinded VM slots
  4. Calls the function by name or ID
  5. Converts the result back to SerializableVMValue

The store is used for SerializableVMValue ↔ slot conversion (needed for BlobRef-backed values like DataTable).

Phase-2c deferral: the slot/serializable round-trip is currently stubbed (see execute_inner body). The dispatch entry continues to exist so callers compile through the deferral; invocation surfaces the gap at runtime.