mirror of
https://github.com/denoland/deno.git
synced 2024-11-30 16:40:57 -05:00
ca66978a5a
This PR introduces Wasm ops. These calls are optimized for entry from Wasm land. The `#[op(wasm)]` attribute is opt-in. Last parameter `Option<&mut [u8]>` is the memory slice of the Wasm module *when entered from a Fast API call*. Otherwise, the user is expected to implement logic to obtain the memory if `None` ```rust #[op(wasm)] pub fn op_args_get( offset: i32, buffer_offset: i32, memory: Option<&mut [u8]>, ) { // ... } ``` |
||
---|---|---|
.. | ||
disable_ops.rs | ||
eval_js_value.rs | ||
fs_module_loader.rs | ||
hello_world.rs | ||
http_bench_json_ops.js | ||
http_bench_json_ops.rs | ||
panik.rs | ||
schedule_task.rs | ||
ts_module_loader.rs | ||
wasm.js | ||
wasm.rs | ||
wasm.ts |