test/runtime/cases.rad 1.1 KiB raw
1
//! Actor roles and progress fields shared by runtime loading checks.
2
3
// Roles selected by the parent in the startup page.
4
/// First compiler call, interrupted and cancelled by the controller.
5
export constant FIRST_LOADER: u32 = 0;
6
/// Compiler call that is interrupted, resumed, and then repeated.
7
export constant RETRY_LOADER: u32 = 1;
8
/// User context that runs while the retry loader owns compilation.
9
export constant WITNESS: u32 = 2;
10
/// Machine context that verifies cancellation and publication.
11
export constant CONTROLLER: u32 = 3;
12
13
/// Number of user and machine actors in the fixture.
14
export constant ACTORS: u32 = 4;
15
/// Progress value written immediately before a compiler call.
16
export constant STARTED: u64 = 1;
17
/// Progress value written after both compiler calls complete.
18
export constant COMPLETE: u64 = 2;
19
/// Shared progress word that holds the published package identity.
20
export constant IMAGE_ID: u32 = 3;
21
22
/// Progress prefix for an error from the first image load.
23
export constant LOAD_ERROR_BASE: u64 = 100;
24
/// Progress prefix for an error from the repeated image load.
25
export constant REPEAT_ERROR_BASE: u64 = 200;