1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-10 16:11:13 -05:00
denoland-deno/ext
Andreu Botella 4d6f412b0b
refactor(core): Turn the wasm_streaming_feed binding into ops (#11985)
Async WebAssembly compilation was implemented by adding two
bindings: `set_wasm_streaming_callback`, which registered a callback to
be called whenever a streaming wasm compilation was started, and
`wasm_streaming_feed`, which let the JS callback modify the state of the
v8 wasm compiler.

`set_wasm_streaming_callback` cannot currently be implemented as
anything other than a binding, but `wasm_streaming_feed` does not really
need to use anything specific to bindings, and could indeed be
implemented as one or more ops. This PR does that, resulting in a
simplification of the relevant code.

There are three operations on the state of the v8 wasm compiler that
`wasm_streaming_feed` allowed: feeding new bytes into the compiler,
letting it know that there are no more bytes coming from the network,
and aborting the compilation. This PR provides `op_wasm_streaming_feed`
to feed new bytes into the compiler, and `op_wasm_streaming_abort` to
abort the compilation. It doesn't provide an op to let v8 know that the
response is finished, but closing the resource with `Deno.core.close()`
will achieve that.
2021-09-13 14:27:54 +02:00
..
broadcast_channel chore: update dependencies (#11856) 2021-09-02 23:38:44 +02:00
console feat: ArrayBuffer in structured clone transfer (#11840) 2021-08-25 13:48:53 +02:00
crypto feat(ext/crypto): generate ECDH keys (#11870) 2021-09-13 11:35:49 +02:00
fetch refactor(core): Turn the wasm_streaming_feed binding into ops (#11985) 2021-09-13 14:27:54 +02:00
ffi chore: update dependencies (#11856) 2021-09-02 23:38:44 +02:00
http refactor: use Deno.core.tryClose (#11980) 2021-09-11 02:54:37 +02:00
net docs(ext/net): add note about listening 0.0.0.0 (#11938) 2021-09-07 16:26:21 +09:00
timers feat(fmt): add basic JS doc formatting (#11902) 2021-09-02 18:28:12 -04:00
tls chore: update dependencies (#11856) 2021-09-02 23:38:44 +02:00
url feat: add URLPattern API (#11941) 2021-09-08 11:14:29 +02:00
web fix: FileReader onevent attributes don't conform to spec (#11908) 2021-09-12 09:35:05 -04:00
webgpu feat(fmt): add basic JS doc formatting (#11902) 2021-09-02 18:28:12 -04:00
webidl refactor(webgpu): use op interface idiomatically (#11835) 2021-08-24 20:32:25 +02:00
websocket refactor: use Deno.core.tryClose (#11980) 2021-09-11 02:54:37 +02:00
webstorage chore: update dependencies (#11856) 2021-09-02 23:38:44 +02:00