0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-15 01:57:09 -05:00
denoland-deno/core/examples
Divy Srivastava ca66978a5a
feat(ops): fast calls for Wasm (#16776)
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]>,
) {
  // ...
}
```
2022-11-27 19:24:28 +05:30
..
disable_ops.rs
eval_js_value.rs
fs_module_loader.rs
hello_world.rs
http_bench_json_ops.js Reland "perf(core): generate inlined wrappers for async ops" (#16455) 2022-10-28 16:50:17 +05:30
http_bench_json_ops.rs chore: use Rust 1.65.0 (#16688) 2022-11-18 02:59:10 +01:00
panik.rs examples(core): panik (#15983) 2022-09-22 11:00:13 +05:30
schedule_task.rs
ts_module_loader.rs
wasm.js feat(ops): fast calls for Wasm (#16776) 2022-11-27 19:24:28 +05:30
wasm.rs feat(ops): fast calls for Wasm (#16776) 2022-11-27 19:24:28 +05:30
wasm.ts feat(ops): fast calls for Wasm (#16776) 2022-11-27 19:24:28 +05:30