1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -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 GitHub
parent 1ef96343a1
commit 4c5e73c5fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.