-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
Ideas for events and control APIs | ||
|
||
Wasm Events arguments | ||
------------------------------------------ | ||
alloc struct/array instance | ||
read/write access | ||
- memory location | ||
- table element | ||
- global | ||
- object | ||
- field | ||
frame unwind | ||
throw exception | ||
catch exception | ||
trap | ||
|
||
Sub-wasm Events | ||
------------------------------------------- | ||
single-step | ||
gc:start/end | ||
object freed | ||
binding between module | ||
lock acquire/release | ||
thread switch | ||
thread block | ||
thread resume | ||
compile function | ||
deopt function | ||
OSR frame | ||
insert/remove probe | ||
load module | ||
validation error | ||
linking error | ||
OS-level signal | ||
I/O to files, sockets | ||
|
||
Command/APIs | ||
------------------------------------------ | ||
load wasm module | ||
create new instance, memory, memory, global, table, funcref | ||
insert probe on event | ||
remove probe on event | ||
compile/deopt function | ||
tune parameters | ||
- GC heuristics | ||
- compiler heuristics | ||
- interpreter heuristics | ||
|
||
APIs | ||
------------------------------------------ | ||
frame accessor | ||
- get/set local | ||
- get/set operand | ||
- get pc, func, instance | ||
- get depth | ||
- get caller | ||
lock | ||
- get owner | ||
mirror on | ||
- module | ||
- instance | ||
- memory | ||
- global | ||
- table | ||
- funcref | ||
redefine | ||
- function | ||
- module | ||
list loaded modules | ||
list instances | ||
list threads | ||
get resource usage | ||
deliver signal/async event | ||
dump core |