Bert Belder
d85f78527f
perf: optimize FunctionCallbackInfo and PropertyCallbackInfo methods ( #1104 )
2022-10-19 21:41:22 +02:00
Bert Belder
b2a09e2f14
perf: optimize scope construction and Isolate::get_slot/set_slot()
( #1090 )
2022-10-08 18:08:37 +05:30
Divy Srivastava
9f78b0abe7
Inline API functions ( #1078 )
2022-09-21 08:15:33 +05:30
Timo
242e4cf97f
Fix misuse of MaybeUninit
and avoid refs to uninit memory ( #954 )
2022-05-11 02:22:10 +02:00
Bert Belder
65e78fd960
chore: upgrade Rust to 1.57.0 ( #856 )
2021-12-14 21:25:10 -08:00
Bert Belder
d478c450dd
Rename Handle::get() to Handle::open() instead ( #806 )
...
This also adds a deprecated `Global::get()` method to avoid unnecessarily
breaking a lot of users code.
Ref: #799
2021-10-13 21:45:10 +02:00
Rafael Ávila de Espíndola
8285b3da34
Rename Handle::get() to Handle::inner() ( #799 )
2021-10-13 16:47:34 +02:00
Tim Ramlot
14bcf04bef
Add support for Platform::pump_message_loop and Platform::run_idle_tasks ( #706 )
...
Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl>
2021-07-01 16:05:07 +02:00
Ryan Dahl
50a15085f7
update copyrights to 2021 ( #620 )
2021-02-13 07:31:18 -05:00
Daniel Bevenius
eb0222ce08
docs: Fix typo in scope module comment ( #538 )
2020-11-19 19:20:31 +01:00
Moritz Gunz
efe0e76a75
#[derive(Debug)] all the things ( #468 )
...
This commit implements Debug trait for most public structs.
2020-11-18 15:17:25 +01:00
devsnek
405a5a5158
Add APIs to store/retrieve embedder data in a Context or Isolate snapshot ( #449 )
...
Co-authored-by: Bert Belder <bertbelder@gmail.com>
2020-09-10 02:39:49 +02:00
Bert Belder
d90742277d
Format source code and fix clippy warning ( #443 )
2020-08-27 20:46:25 +02:00
Bert Belder
da0c5f76e4
Add 'CallbackScope<()>' that doesn't assume an entered Context ( #425 )
...
Certain callbacks (e.g. `WasmLoadSourceMapCallback`) expect the
embedder to return a local handle (a `Local<String>` in this case), but
do not provide a `Local<Context>` as an argument, nor does it provide
any other argument that we might obtain a context from. This is not
unexpected - WASM execution as such is not tied to a context, and a
`Local<String>` can be created without a context too because it's a
primitive value that has no JavaScript prototype.
2020-07-19 11:02:23 +02:00
Bert Belder
acf6bfe0e4
Add the 'HandleScope::with_context()' scope constructor ( #410 )
2020-07-01 10:44:23 +02:00
Bert Belder
de2cca4c7f
Integrate 'TryCatch' in the scope system ( #406 )
2020-06-26 01:50:32 +02:00
Bert Belder
3b6ed67f5e
Rewrite the scope system from scratch ( #406 )
2020-06-26 01:42:00 +02:00
Bert Belder
3d0a90c1c8
Clippy ( #354 )
2020-04-16 15:35:27 +02:00
Ryan Dahl
32abe84dc6
Remove v8::Locker ( #272 )
...
This patch clarifies that v8::Isolate is a single threaded creature,
which can only be accessed from other threads in special circumstances.
To ensure optimal operation in Deno, we remove v8::Locker, which ought
to be unnecessary when a thread is dedicated to each Isolate and the
Isolates never move between threads.
There are valid use-cases for v8::Locker, and we hope to address them in
future versions of rusty_v8.
Co-authored-by: Bert Belder <bertbelder@gmail.com>
2020-02-11 17:01:27 -05:00
Bert Belder
b3d93dad78
Some clean-ups after making Locker a Scope ( #231 )
2020-01-21 03:16:55 +01:00
Bert Belder
44d58f8f48
Make Locker also a Scope ( #229 )
2020-01-21 02:03:45 +01:00
Bert Belder
36a12142f2
Make EscapableHandleScope::escape() inheritable, tighten lifetimes ( #227 )
2020-01-20 23:34:28 +01:00
Bert Belder
6c1d65252a
Add ContextScope and lay foundations for scope inheritance ( #223 )
2020-01-18 13:41:28 +01:00
Bert Belder
a230735902
Refactor scopes and callbacks so users don't need to transmute ( #183 )
2020-01-16 22:48:27 +01:00
Bert Belder
934dd16e89
Clean up and remove AsRef/AsMut implementations ( #130 )
2019-12-25 12:40:14 +01:00
Bert Belder
ae4b48eb22
Get rid of HandleScope closure, add CallbackScope ( #119 )
2019-12-25 00:31:36 +01:00