0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-11-24 15:19:31 -05:00
Commit graph

814 commits

Author SHA1 Message Date
github-actions[bot]
df789e451d
Rolling to V8 9.8.177.3 (#858) 2021-12-20 11:49:58 +01:00
Bert Belder
fd7f3abf44
v0.37.0 2021-12-14 21:26:29 -08:00
Bert Belder
65e78fd960
chore: upgrade Rust to 1.57.0 (#856) 2021-12-14 21:25:10 -08:00
Rafael Ávila de Espíndola
9a80684b03
Fix the build with python 3.10 (#855)
This updates jinja2 to ee69aa00ee8536f61db6a451f3858745cf587de6, which
is the version in v8's DEPS. This version is compatible with python
3.10.
2021-12-14 14:35:38 -05:00
Andreu Botella
06648dd1bd
fix: segfault when dropping BackingStore constructed from empty slice (#851)
This fixes in a segmentation fault when dropping a `BackingStore`
constructed through `ArrayBuffer::new_backing_store_from_boxed_slice()`
from an empty slice, since zero length boxed slices are invalid
(dangling) pointers, while Rust expects a `Box<c_void>` to always be a
valid pointer.

Fixes: #849
2021-12-13 15:37:59 -08:00
Bert Belder
251f1e9ac9
fix: url param to v8::WasmStreaming::SetUrl() must be null terminated (#854) 2021-12-12 21:25:11 -08:00
Bert Belder
b6a16916ce
test: don't use --harmony-top-level-await flag (#854)
Top level await is now enabled by default and the flag no longer exists.
2021-12-12 21:25:01 -08:00
denobot
cd5b2fa148
Rolling to V8 9.8.177.2 (#854) 2021-12-12 20:01:45 -08:00
Bert Belder
b5555e804b
Track V8 9.8 (#853) 2021-12-12 18:35:29 -08:00
github-actions[bot]
ed1bf3a48d
Rolling to V8 9.7.106.17 (#850) 2021-12-11 07:23:43 -05:00
Andreu Botella
8bea9b1f40
Add support for generating a clangd compilation database (#823)
This will help with IDE integration of the C++ part of the code.

Ref: https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/clangd.md
2021-12-11 11:16:43 +01:00
github-actions[bot]
b09f6400b7
Rolling to V8 9.7.106.16 (#847)
Co-authored-by: denobot <33910674+denobot@users.noreply.github.com>
2021-12-06 11:35:27 +01:00
Luca Casonato
034bee69e1
0.36.0 2021-12-03 14:21:45 +01:00
github-actions[bot]
0fb1ad288e
Rolling to V8 9.7.106.15 (#845) 2021-12-03 14:00:42 +01:00
github-actions[bot]
a0972be7af
Rolling to V8 9.7.106.14 (#844) 2021-12-02 12:54:01 +01:00
Sujay Jayakar
62d33c4d7e
Add Function::GetScript{Line,Column}Number bindings (#843) 2021-11-30 21:55:41 +01:00
github-actions[bot]
ae223c78b4
Rolling to V8 9.7.106.13 (#842) 2021-11-30 11:50:20 +01:00
github-actions[bot]
885d20eb18
Rolling to V8 9.7.106.9 (#841) 2021-11-25 12:35:06 +01:00
github-actions[bot]
b98254c65f
Rolling to V8 9.7.106.8 (#838) 2021-11-22 11:29:32 +01:00
github-actions[bot]
3a728b4192
Rolling to V8 9.7.106.7 (#837) 2021-11-20 13:27:26 +01:00
Bert Belder
2122a69c08
v0.35.0 2021-11-17 11:43:19 -08:00
Bert Belder
e68117c097
chore: upgrade Rust to 1.56.1 (#835) 2021-11-17 11:42:39 -08:00
Bert Belder
c4c48f30b1
v8: fix segfault during concurrent isolate creation/disposal on Windows (#829)
This patch includes a test for this issue.

The V8 patch is intentionally left simple to avoid merge conflicts in
the future. To be landed upstream, the `unwindinfo_use_count_` would
probably have to be made non-atomic and we'd have to add a cctest.

Upstream bug: https://bugs.chromium.org/p/v8/issues/detail?id=12393

Fixes: #714
2021-11-17 09:52:27 -08:00
github-actions[bot]
1d4be506be
Rolling to V8 9.7.106.5 (#834) 2021-11-17 12:14:43 +01:00
Andreu Botella
aac37a6d4f
refactor: Have BackingStore::data return Option<NonNull<c_void>> (#817)
The pointer returned by `BackingStore::data` might be null if the
backing store has zero length, but the return type `*mut c_void` does
not force the user to consider this case. This change makes the return
type `Option<NonNull<c_void>>`, which is semantically equivalent, but
which forces users of the API to handle the `None` case.

This is a breaking API change.
2021-11-17 12:14:03 +01:00
github-actions[bot]
845aced92c
Rolling to V8 9.7.106.4 (#832) 2021-11-14 12:38:39 +01:00
Rafael Ávila de Espíndola
833d558038
chore: Specify the rust toolchain version (#821)
Tests in tests/compile_fail/ depend on a specific toolchain version. For
example, they currently fail with 1.58.0-nightly because of extra
warnings.
2021-11-12 12:59:49 -08:00
github-actions[bot]
87498de644
Rolling to V8 9.7.106.3 (#831) 2021-11-10 13:19:45 -05:00
Rafael Ávila de Espíndola
a043407ae8
Make lifetime in FunctionCallback signature more restrictive (#822)
This makes the callbacks themselves less restrictive. A test is added
the would fail to compile before.
2021-11-08 12:51:53 -08:00
Luca Casonato
6094410c8d
v0.34.0 2021-11-08 11:18:57 +01:00
Luca Casonato
3c07f08fe6
Track V8 9.7 (#826) 2021-11-08 01:24:14 +01:00
github-actions[bot]
7cc28c5e47
Rolling to V8 9.7.106.2 (#827)
Co-authored-by: Luca Casonato <hello@lcas.dev>
2021-11-08 01:24:05 +01:00
github-actions[bot]
314fe76bf2
Rolling to V8 9.6.180.10 (#824) 2021-11-07 00:48:55 +01:00
Rafael Ávila de Espíndola
f399732ba0
Ignore environment variables set by cargo (#825)
This avoids constant rebuilds when alternating between running

$ cargo build
$ cargo run <something that runs cargo build>

Since the second command will see these environment variables set
during the logic deciding if build.rs should be rerun or not.

Since these are cargo specific variables, hopefully cargo already does
the right thing without our help.
2021-11-04 14:16:05 -04:00
Ryan Dahl
8297216a1c
Narrow dead_code allowance (#818) 2021-10-28 16:29:04 -04:00
Luca Casonato
57a00141d7
0.33.0 2021-10-27 16:54:09 +02:00
github-actions[bot]
c2fdf632c9
Rolling to V8 9.6.180.9 (#815) 2021-10-27 14:32:31 +02:00
Luca Casonato
5ee0a375f2
chore: rename rusty_v8 to v8 (#803) 2021-10-27 14:32:12 +02:00
github-actions[bot]
188105bec7
Rolling to V8 9.6.180.8 (#813) 2021-10-27 11:34:30 +02:00
Rafael Ávila de Espíndola
26d60b7dfe
Add missing cargo:rerun-if-env-changed (#807)
In addition to the problem described in issue #378, we noticed link
error when updating rusty_v8 without doing a clean build. As far as I
can tell, there were two potential bugs:

* Cargo not being informed that it should run build.rs when
  CARGO_PKG_VERSION changed.

* Even if build.rs was rerun, it would not download a new package. It
  seems that build.rs should either verify that the right package was
  downloaded or should just trust cargo to not rerun it when not
  needed.

Fixes: #378
2021-10-25 19:40:09 -04:00
Andreu Botella
2a21f5abf9
fix: Make derefing a zero-size BackingStore no longer UB (#809)
For zero-size `BackingStore`s, it seems like `BackingStore::data` always
returns a null pointer. The `Deref` impl for `BackingStore` called
`std::slice::from_raw_parts` on that pointer, even though it is UB to
call that function on a null pointer even for empty slices. This change
fixes that by obtaining a valid pointer from `NonNull::dangling()` if
the original is null.

Reported in
https://github.com/denoland/rusty_v8/issues/711#issuecomment-950637136.
2021-10-25 22:40:14 +02:00
Rafael Ávila de Espíndola
05b41b8b84
Add support for a RUSTY_V8_ARCHIVE environment variable (#812) 2021-10-25 16:35:19 -04:00
github-actions[bot]
7bf8f01974
Rolling to V8 9.6.180.7 (#811) 2021-10-25 18:19:01 +02:00
Luca Casonato
02426712f6
Track V8 v9.6 (#810) 2021-10-25 18:18:42 +02:00
github-actions[bot]
103a90fe6f
Rolling to V8 9.5.172.22 (#808) 2021-10-22 12:21:17 +02:00
github-actions[bot]
f03cff17e4
Rolling to V8 9.5.172.21 (#805) 2021-10-15 13:10:25 +02: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
Luca Casonato
a0a0b37dfc
0.32.0 2021-10-11 17:37:51 +02:00
github-actions[bot]
c8e3031cf3
Rolling to V8 9.5.172.19 (#801) 2021-10-07 12:35:27 +02:00