1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-23 15:16:54 -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 feat(core): disableable extensions & ops (#14063) 2022-03-22 16:39:58 +01:00
eval_js_value.rs chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
fs_module_loader.rs docs: Improve mod_evaluate documentation (#14827) 2022-06-20 14:40:57 +02:00
hello_world.rs perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
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 perf(ops): Monomorphic sync op calls (#15337) 2022-08-11 15:56:56 +02:00
ts_module_loader.rs docs: Improve mod_evaluate documentation (#14827) 2022-06-20 14:40:57 +02:00
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