0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-27 01:29:19 -05:00
Commit graph

471 commits

Author SHA1 Message Date
Ben Noordhuis
836557e84f
Add Module::script_id() (#497) 2020-10-15 11:05:38 +02:00
Ben Noordhuis
57390ec4ee
Add Isolate::set_promise_hook() (#496) 2020-10-12 22:33:46 +02:00
Ben Noordhuis
ea0c7c9383
Fix PromiseRejectMessage::get_value() (#493)
Change its return type to `Option<Local<Value>>`. The C++ API
returns `Local<Value>` but that can be an empty handle.

Fixes #491
2020-10-09 12:58:57 +02:00
Bartek Iwańczuk
667583fe7f
upgrade: Rust 1.47.0 (#492) 2020-10-09 11:38:18 +02:00
Ben Noordhuis
536ad46d02
v0.11.0 (#489) 2020-10-07 11:55:30 +02:00
Ben Noordhuis
1149ee3ada
Make RUSTY_V8_MIRROR understand file paths (#488)
Fixes #470
2020-10-07 08:39:02 +02:00
Ben Noordhuis
6993fd3a30
Upgrade V8 to 8.7.220.3 (#487) 2020-10-06 20:31:03 +02:00
devsnek
4f924a686a
add all TypedArray constructors (#482) 2020-10-06 14:16:22 -04:00
Inteon
dbc0509f2a
add basic serializer bindings (#442) 2020-10-06 18:39:38 +02:00
Ryan Dahl
18a3eab7c6
Fix docs.rs detection (#485)
Previously docs.rs supplied RUSTDOCFLAGS env var to builds, which we
used to skip building/downloading rusty_v8. docs.rs does not allow
network access.

Reference for DOCS_RS: https://docs.rs/about/builds
Failed build: https://docs.rs/crate/deno_core/0.61.0/builds/299870
2020-10-06 09:34:33 -04:00
devsnek
e5f56e218c
add Symbol, Private, BigInt (#466) 2020-09-29 20:20:07 -04:00
Ben Noordhuis
6b90cbe499
add Object + ObjectTemplate internal field support (#477)
The rusty_v8 API deviates slightly from the V8 C++ API because the
latter is definitely unsound when you pass in out-of-range indexes.
2020-09-29 19:04:59 -04:00
Bert Belder
9bedd96d24
v0.10.0 (#467) 2020-09-11 17:04:14 +02: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
888e5deea1
ci: switch to Github Actions XL (#464) 2020-09-09 16:54:24 +02:00
Bert Belder
b3f9cb1f01
Work around a bug in the V8 headers (#463) 2020-09-09 12:07:11 +02:00
Gus Caplan
3b27748a17
Implement TryFrom<Data> for subclasses of Data (#453) 2020-09-09 02:21:58 +02:00
Bert Belder
6409d8b112
Upgrade V8 to 8.7.75 (#462) 2020-09-08 03:02:57 +02:00
Bert Belder
c564ca286b
Upgrade gn to 6f13aaac & make BUILD.gn compatible with it (#462) 2020-09-08 03:02:56 +02:00
Bert Belder
003169e10e
Upgrade Rust crates (#462) 2020-09-08 03:02:56 +02:00
Bert Belder
81f7a653b2
ci: add workaround for MacOS + Cargo + Github Actions cache bug (#462) 2020-09-08 03:02:56 +02:00
Bert Belder
f15a250221
ci: simplify workflow config by merging Rust installation steps (#462) 2020-09-08 03:02:56 +02:00
Ben Noordhuis
d60e367a9b
Add V8::set_entropy_source() (#460) 2020-09-08 03:01:36 +02:00
Bert Belder
b31dbc89dc
Simplify 'Isolate::get/set_slot()' and use optimized hasher (#461) 2020-09-07 19:50:36 +02:00
Moritz Gunz
8513c8fa69
Add bindings to 'v8::Isolate::LowMemoryNotification()' (#459) 2020-09-07 13:00:35 +02:00
Ben Noordhuis
de58267948
Add V8::set_flags_from_string() (#457) 2020-09-06 15:40:07 -04:00
Max Drosdo.www
5b0de38fe4
simplify ci config (#458) 2020-09-06 14:04:25 -04:00
devsnek
cf59bf1e4d
Add support for ccache (#455) 2020-09-03 19:22:07 +02:00
Bert Belder
21f6ecf483
Fix flaky tests caused by relaxed load in C++ 'shared_ptr::use_count()' (#450)
Fixes: #284
2020-09-02 17:38:39 +02:00
Bert Belder
d91970dcf6
Fix minor SharedPtr/SharedRef issues, and add unit tests (#450)
* The `Default` trait did not actually get derived for `SharedPtr<T>`.
  This is solved by implementing `Default` manually.
* Trait function `Shared::get()` used to return a mutable raw pointer
  (`*mut Self`), but it would be inconceivable to ever mutate the
  referenced value. It was changed to return a const pointer instead.
* Added some basic unit tests for types `SharedPtr` and `SharedRef`.
2020-09-02 17:25:21 +02:00
Ben Noordhuis
b88f9f5bbc
Add Date::new() and Date::value_of() (#452) 2020-09-01 22:28:08 -04:00
Bert Belder
1009103419
v0.9.1 (#447) 2020-08-28 17:52:05 +02:00
Bert Belder
e88ea4ad01
Downgrade to V8 8.6.334 again (#447)
After the upgrade some Deno tests started crashing somewhere deep inside
V8, and the cause of these crashes is unclear.

This reverts the following commits:
* 12334ffe Upgrade gn to 6f13aaac; make BUILD.gn compatible with it (#443)
* f53f10d4 Upgrade V8 to 8.7.25 (#443)
2020-08-28 17:52:05 +02:00
Bert Belder
7b62f73ab3
Extend tools/upgrade_v8.sh (#447) 2020-08-28 17:24:44 +02:00
picoHz
fa8f636397
Specify custom URL for binary downloads with 'RUSTY_V8_MIRROR' env var (#446) 2020-08-28 12:03:34 +02:00
Bert Belder
1ccabcc650
v0.9.0 (#444) 2020-08-28 00:30:59 +02:00
Ryan Dahl
f53f10d41f
Upgrade V8 to 8.7.25 (#443) 2020-08-27 23:38:54 +02:00
Bert Belder
12334ffef1
Upgrade gn to 6f13aaac; make BUILD.gn compatible with it (#443) 2020-08-27 23:38:54 +02:00
Bert Belder
492d6b3440
Upgrade Rust crates (#443) 2020-08-27 23:38:54 +02:00
Bert Belder
c1804c2e50
ci: always save Github Actions cache after V8 upgrade (#443) 2020-08-27 23:38:54 +02:00
Bert Belder
ac9bb44e33
ci: don't store $CARGO_HOME in Github Actions cache (#443)
There currently is a problem related to Github Actions in general or the
'actions-rs/cargo' action in particular, which causes cargo to be unable
to find the 'serde_derive' crate when the cargo home dir has been
restored from cache.

This issue is also being reported by others, e.g. at
https://github.com/actions-rs/cargo/issues/111.
2020-08-27 23:38:54 +02:00
Bert Belder
fdc03238c4
ci: upgrade to Rust 1.46.0 (#443) 2020-08-27 23:38:53 +02:00
Bert Belder
a4eb164639
ci: upgrade Linux environment to Ubuntu 18.04 (#443) 2020-08-27 22:37:02 +02:00
Bert Belder
d90742277d
Format source code and fix clippy warning (#443) 2020-08-27 20:46:25 +02:00
devsnek
6d5686cd7c
Add synthetic module support (#441) 2020-08-25 17:39:18 -04:00
Ben Noordhuis
6b2c7a56a7
Add Isolate::[gs]et_microtasks_policy() (#439)
Isolate::run_microtasks() already exists but the microtasks queue
is also flushed on script entry and exit. Some embedders want strict
control over when microtasks run, which is set by the policy.

And deprecate Isolate::run_microtasks(). The corresponding V8 API is
tagged with V8_DEPRECATE_SOON.
2020-08-23 10:25:16 -04:00
Ben Noordhuis
fd5458c959
Add Isolate::get_heap_statistics() (#440) 2020-08-23 10:16:45 -04:00
Bert Belder
d6528c7300
v0.8.1 (#434) 2020-08-08 17:46:29 +02:00
Ryan Dahl
6d35b6cd8d
Downgrade V8 to 8.6.334 (#434) 2020-08-08 17:46:17 +02:00
Bert Belder
53d0c65747
v0.8.0 2020-08-07 19:01:52 +02:00