deno
feat(ext/ffi): Callbacks
#14663
Merged

feat(ext/ffi): Callbacks #14663

aapoalas
aapoalas aapoalas force pushed from dfba80a4 to 69633f09 4 years ago
aapoalas aapoalas changed the title feat(ffi): Explicit callbacks feat(ext/ffi): Explicit callbacks 4 years ago
aapoalas aapoalas force pushed from 2ee52e6d to 58664ffe 4 years ago
aapoalas aapoalas force pushed from 55300814 to b7821f32 4 years ago
aapoalas Start rewrite
291ca64b
aapoalas Further work
6f955d07
littledivy Scope in stack or not
352d98ee
aapoalas Functioning synchronous registered callbacks
15261ea8
littledivy Don't borrow across callback call
f98424ff
aapoalas Move forward with parameter types in FFI callbacks
8b460011
aapoalas Adapt, does not function properly
7a10c38b
aapoalas Use serde_v8::Value
2335d2a7
aapoalas fmt
f63cebaa
aapoalas Pick ops stuff from sqlite bindings
cd8260d9
aapoalas Try async fixing
78a12cda
aapoalas Work work
4de8ef8b
aapoalas Somewhat handle nonblocking calls
8a6dace9
aapoalas Not really well working
90c932d4
aapoalas Fix lifetime issues with ffi_parse_args
3c10894e
aapoalas Error handling
e3b55f62
aapoalas async work, thanks divy
8e637976
aapoalas Return lifetimes
15d0fbfd
aapoalas fmt & lint
69ae9bfb
aapoalas aapoalas force pushed from ad6e6767 to 69ae9bfb 4 years ago
aapoalas fmt & lint
48f439d3
aapoalas Actually pass RegisteredCallback RID to FFI
23f58000
aapoalas Actually functioning registered callbacks!
6971d16a
aapoalas fmt & lint
e271cc7c
aapoalas Remove likely unnecessary active scope tracking from ffi calls
98110af1
littledivy ops: support a result returning a future returning a result.
ccdd1221
littledivy reenable nonblocking ops as hybrids
283dc154
aapoalas Merge branch 'main' into feat/ffi-register-callback-rewrite
579015c3
aapoalas Rewrite ext/ffi to return serde_v8::Value
4fd175f9
aapoalas Fix
f4a8fe24
aapoalas Move parameter validity checks to JS side
f1eed633
aapoalas Fix nonblocking calls by reverting them to json::Value and U32x2 retu…
7478eade
aapoalas
aapoalas Add extensive FFI baseline benchmarks
c98241b2
aapoalas fmt & lint
6c0ffe87
aapoalas Minor improvements
297dab71
aapoalas Fix tests FFI calls
87e10ca3
aapoalas Merge branch 'main' into feat/ffi-register-callback-rewrite
f357ceaa
aapoalas fmt
7b2c176b
aapoalas Fix more FFI ops call signatures
3d53899b
aapoalas Fix check_unstable2 usage
2f370c9f
aapoalas Fix mistaken Symbol usage with ptr FFI calls
e6fad7ae
aapoalas aapoalas marked this pull request as ready for review 4 years ago
aapoalas Fix buffer returning with quite manual V8 value picking
06dee1f5
aapoalas Add callback tests
c29d8fd9
aapoalas fmt & lint
69eec016
aapoalas Expose registered callback pointer values
6db458b1
aapoalas Use primordials
84ddbda0
aapoalas Improve deno_ffi_callback inline comment
bcc5caf9
aapoalas Catch and rethrow errors from FFI callbacks
77f3f517
littledivy
littledivy commented on 2022-06-13
aapoalas Fix idiosyncracies, add some types at least
ce5b3cb7
aapoalas Use pointer values for RegisteredCallbacks, removing resource_table u…
3f117709
aapoalas Fix errors in i64 / u64 callback return values
53bfa8fc
littledivy
littledivy commented on 2022-06-14
aapoalas Review comments
7d75f7db
aapoalas Rename RegisteredCallback to UnsafeCallback
3b8a881d
aapoalas Use specific APIs for ints
6ac34713
aapoalas Use specific APIs for ints in callbacks, avoid serde_v8 in callback p…
a7814635
littledivy
littledivy commented on 2022-06-15
aapoalas Implicit drop
0c678526
littledivy
littledivy commented on 2022-06-15
aapoalas Review fixes, light renaming
d936617f
aapoalas Safety notice on UnsafeCallbackResource close()
798ebf5c
littledivy
littledivy commented on 2022-06-15
aapoalas Missing permissions check, remove left-over op, add notice about Unsa…
56004f22
aapoalas Return v8::Value directly in UnsafeCallback constructor
3cf98c44
littledivy Merge branch 'main' into feat/ffi-register-callback-rewrite
3582d940
littledivy
littledivy approved these changes on 2022-06-16
littledivy
littledivy Merge branch 'main' into feat/ffi-register-callback-rewrite
179074da
aapoalas Fix UnsafeCallback types and add extensive type tests
9f5c8df4
aapoalas aapoalas changed the title feat(ext/ffi): Explicit callbacks feat(ext/ffi): Callbacks 4 years ago
aapoalas
aapoalas Merge branch 'main' into feat/ffi-register-callback-rewrite
a84c3f3a
aapoalas Fix format
fc2f2e14
aapoalas Remove unnecessary try-catch from deno_ffi_callback
27accd9f
piscisaureus
piscisaureus
piscisaureus commented on 2022-06-17
piscisaureus
piscisaureus commented on 2022-06-17
piscisaureus Undo unrelated formatting changes
4131bfa8
aapoalas
aapoalas
littledivy
littledivy Merge branch 'main' into feat/ffi-register-callback-rewrite
2eeffd04
nayeemrmn
aapoalas
littledivy Merge branch 'main' of github.com:denoland/deno into feat/ffi-registe…
bd4c1f75
littledivy Add test for error propogation
5184ddd4
littledivy Format
40aac23a
littledivy throwCallback.close()
0780dbcc
littledivy Merge branch 'main' into feat/ffi-register-callback-rewrite
3218386f
littledivy littledivy merged 3d6fa64f into main 4 years ago
aapoalas aapoalas deleted the feat/ffi-register-callback-rewrite branch 4 years ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone