Skip to content

Commit

Permalink
Add ideas for more Wasm APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
titzer committed Jan 27, 2025
1 parent ce97e56 commit 263bf5b
Showing 1 changed file with 74 additions and 0 deletions.
74 changes: 74 additions & 0 deletions ideas/apis.txt
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

0 comments on commit 263bf5b

Please sign in to comment.