1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00

chore(ops): update docs on fast calls (#15985)

This commit is contained in:
Divy Srivastava 2022-09-22 14:36:57 +05:30 committed by David Sherret
parent 5a1eb5d031
commit 61fc8bfcf4

View file

@ -34,8 +34,9 @@ Cases where code is optimized away:
The macro will infer and try to auto generate V8 fast API call trait impl for
`sync` ops with:
- arguments: integers / `&mut OpState`
- return_type: integers
- arguments: integers, bool, `&mut OpState`, `&[u8]`, &mut [u8]`,`&[u32]`,`&mut
[u32]`
- return_type: integers, bool
The `#[op(fast)]` attribute should be used to enforce fast call generation at
compile time.