@hew-lang/sandbox-vm 0.6.2 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -4
- package/cli/test-runner.mjs +4 -1
- package/dist/interpreter/interpreter.d.ts +1 -1
- package/dist/interpreter/interpreter.js +1 -1
- package/dist/interpreter/parity-runner.js +26 -1
- package/dist/interpreter/run-program.d.ts +3 -2
- package/dist/interpreter/run-program.js +5 -3
- package/dist/interpreter/schema-validator.d.ts +9 -4
- package/dist/interpreter/schema-validator.js +15 -49
- package/dist/interpreter/types.d.ts +4 -0
- package/dist/interpreter/v1/browser-directory.d.ts +107 -0
- package/dist/interpreter/v1/browser-directory.js +288 -0
- package/dist/interpreter/v1/calendar.d.ts +4 -0
- package/dist/interpreter/v1/calendar.js +64 -0
- package/dist/interpreter/v1/codecs.js +2 -2
- package/dist/interpreter/v1/exec.d.ts +2 -2
- package/dist/interpreter/v1/exec.js +439 -183
- package/dist/interpreter/v1/instructions.generated.d.ts +1135 -0
- package/dist/interpreter/v1/instructions.generated.js +106 -0
- package/dist/interpreter/v1/package-graph.d.ts +2 -0
- package/dist/interpreter/v1/package-graph.js +729 -0
- package/dist/interpreter/v1/package-validator.generated.d.ts +3 -0
- package/dist/interpreter/v1/package-validator.generated.js +75846 -0
- package/dist/interpreter/v1/package.d.ts +5 -680
- package/dist/interpreter/v1/package.js +0 -12
- package/dist/interpreter/v1/scheduler.d.ts +5 -1
- package/dist/interpreter/v1/scheduler.js +32 -3
- package/dist/interpreter/v1/shims.d.ts +250 -7
- package/dist/interpreter/v1/shims.js +429 -150
- package/dist/interpreter/v1/structural.d.ts +2 -28
- package/dist/interpreter/v1/timestamp.d.ts +7 -0
- package/dist/interpreter/v1/timestamp.js +54 -0
- package/dist/interpreter/v1/validate.d.ts +8 -2
- package/dist/interpreter/v1/validate.js +190 -202
- package/dist/interpreter/v1/value-operations.d.ts +7 -2
- package/dist/interpreter/v1/value-operations.js +13 -6
- package/dist/interpreter/values.d.ts +4 -0
- package/dist/interpreter/values.js +6 -0
- package/dist/interpreter/worker.js +4 -3
- package/package.json +4 -4
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
export const OP_NAMES = [
|
|
2
|
+
"coverage.hit",
|
|
3
|
+
"const.int",
|
|
4
|
+
"const.bool",
|
|
5
|
+
"const.float",
|
|
6
|
+
"const.char",
|
|
7
|
+
"const.unit",
|
|
8
|
+
"const.duration",
|
|
9
|
+
"const.str",
|
|
10
|
+
"const.bytes",
|
|
11
|
+
"copy_value",
|
|
12
|
+
"move",
|
|
13
|
+
"fork",
|
|
14
|
+
"destroy_value",
|
|
15
|
+
"begin_borrow",
|
|
16
|
+
"end_borrow",
|
|
17
|
+
"finish_linear_receiver",
|
|
18
|
+
"alloc_place",
|
|
19
|
+
"store.init",
|
|
20
|
+
"store.assign",
|
|
21
|
+
"load.copy",
|
|
22
|
+
"load.take",
|
|
23
|
+
"load.borrow",
|
|
24
|
+
"end_lifetime",
|
|
25
|
+
"tuple.make",
|
|
26
|
+
"tuple.get",
|
|
27
|
+
"aggregate.make",
|
|
28
|
+
"aggregate.project_copy",
|
|
29
|
+
"aggregate.project_borrow",
|
|
30
|
+
"destructure",
|
|
31
|
+
"array.make",
|
|
32
|
+
"array.repeat",
|
|
33
|
+
"variant.make",
|
|
34
|
+
"variant.is",
|
|
35
|
+
"variant.project_copy",
|
|
36
|
+
"variant.project_borrow",
|
|
37
|
+
"variant.destructure",
|
|
38
|
+
"unary",
|
|
39
|
+
"binary",
|
|
40
|
+
"cast",
|
|
41
|
+
"str.eq",
|
|
42
|
+
"bytes.eq",
|
|
43
|
+
"function.make",
|
|
44
|
+
"closure.make",
|
|
45
|
+
"callable.coerce",
|
|
46
|
+
"dyn.make",
|
|
47
|
+
"register_defer",
|
|
48
|
+
"generator.make",
|
|
49
|
+
"actor.ingress_adapter",
|
|
50
|
+
"stream.pipe",
|
|
51
|
+
"task_scope.enter",
|
|
52
|
+
"task_scope.close",
|
|
53
|
+
"task.race",
|
|
54
|
+
"task.spawn",
|
|
55
|
+
"task.invoke",
|
|
56
|
+
];
|
|
57
|
+
export const TERM_NAMES = [
|
|
58
|
+
"return",
|
|
59
|
+
"goto",
|
|
60
|
+
"branch",
|
|
61
|
+
"switch.variant",
|
|
62
|
+
"checked.binary",
|
|
63
|
+
"timestamp.binary",
|
|
64
|
+
"unreachable",
|
|
65
|
+
"call",
|
|
66
|
+
"indirect.call",
|
|
67
|
+
"dyn.call",
|
|
68
|
+
"value.call",
|
|
69
|
+
"wire.codec",
|
|
70
|
+
"runtime.call",
|
|
71
|
+
"extern.call",
|
|
72
|
+
"actor.call",
|
|
73
|
+
"panic",
|
|
74
|
+
"trap",
|
|
75
|
+
"checked_raise",
|
|
76
|
+
"cleanup.dispatch",
|
|
77
|
+
"resume_unwind",
|
|
78
|
+
"enter_defer",
|
|
79
|
+
"finish_defer",
|
|
80
|
+
"recover_fault",
|
|
81
|
+
"suspend",
|
|
82
|
+
];
|
|
83
|
+
export const SUSPENSION_NAMES = [
|
|
84
|
+
"Sleep",
|
|
85
|
+
"SleepUntil",
|
|
86
|
+
"Await",
|
|
87
|
+
"ActorSend",
|
|
88
|
+
"RestartWait",
|
|
89
|
+
"Read",
|
|
90
|
+
"Accept",
|
|
91
|
+
"CallClosure",
|
|
92
|
+
"Timeout",
|
|
93
|
+
"ScopeDeadline",
|
|
94
|
+
"Yield",
|
|
95
|
+
"GeneratorNext",
|
|
96
|
+
"Safepoint",
|
|
97
|
+
"ServiceAcquire",
|
|
98
|
+
"SemaphoreAcquire",
|
|
99
|
+
"NativeIo",
|
|
100
|
+
"Offload",
|
|
101
|
+
"Ask",
|
|
102
|
+
"Join",
|
|
103
|
+
"StreamSend",
|
|
104
|
+
"StreamNext",
|
|
105
|
+
"Select",
|
|
106
|
+
];
|