mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 15:49:44 -05:00
8fe9b8a4cc
Implements `Result` in fast-calls. Note that the approach here is slightly different. Rather than store the last result in the `OpState`, we put it into the `OpCtx` which saves us a lookup and lock in the error case. We do not have to lock this field as it's guaranteed only one runtime and thread can ever access it. The fastcall path for many ops can avoid doing a great deal of work, even for `Result` return values. In the previous iteration of `ops`, all `Result`-returning functions would fetch and lock the `OpState`, regardless of whether it was used or not. |
||
---|---|---|
.. | ||
add.out | ||
add.rs | ||
add_options.out | ||
add_options.rs | ||
doc_comment.out | ||
doc_comment.rs | ||
result_primitive.out | ||
result_primitive.rs | ||
result_void.out | ||
result_void.rs | ||
smi.out | ||
smi.rs |