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

1054 commits

Author SHA1 Message Date
Luca Casonato
e7f96ac708
Improved ObjectTemplate::set_*_handlers (#1237)
Prior to this commit, `v8::NamedPropertyHandlerConfiguration`
and `v8::IndexedPropertyHandlerConfiguration` did not expose the
`definer` hook, or `flags`.

This commit adds these options. In the process of doing this a couple of
other changes were made:

- Bitflag enum consts are now member consts of the related struct.
  This is done because PropertyHandlerFlags has conflicts with
  PropertyAttribute.
- PropertyDescriptor gets all C++ introspection methods exposed to Rust.
- NamedPropertyHandlerConfiguration callback types get rustdoc comments.
- IndexedPropertyHandlerConfiguration callback types get rustdoc
  comments.
- GenericNamedPropertySetterCallback gets a ReturnValue parameter, to
  signal trap passthrough.

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-05-26 13:14:18 +02:00
Luca Casonato
43b798a39d
Add more Object methods (#1240)
Specifically Object::get_own_property_descriptor
and Object::get_property_attributes
2023-05-25 13:04:50 +00:00
Bartek Iwańczuk
2aa6debd2b
v0.72.0 (#1236) 2023-05-23 17:39:47 +00:00
denobot
69eb802f4b
Rolling to V8 11.5.150.1 (#1235) 2023-05-23 17:56:40 +02:00
Bartek Iwańczuk
5912ecfe62
Track v8 11.5 (#1234) 2023-05-23 14:17:09 +02:00
Bartek Iwańczuk
367be04178
feat: Add v8::CreateParams::has_set_array_buffer_allocator (#1232) 2023-05-22 12:33:17 +00:00
denobot
c68038bc7d
Rolling to V8 11.4.183.11 (#1228)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-05-20 03:04:12 +02:00
Bartek Iwańczuk
eb53f628f3
v0.71.2 (#1230) 2023-05-13 01:47:37 +02:00
Bartek Iwańczuk
dec3aa2d0b
Fix exception not caught in debug build for v8::Function::call (#1229) 2023-05-12 18:47:05 +02:00
denobot
a300f93a94 v0.71.1 2023-05-12 00:49:03 +00:00
Bartek Iwańczuk
6ac0fabb56
test: Add tests showing incorrect exception behavior in debug build (#1227)
Reproduces #1226 and denoland/deno#19021

```
// Fails
$ V8_FROM_SOURCE=1 cargo test exception
// Passes
$ V8_FROM_SOURCE=1 cargo test --release exception
```

We bisected this and this problem first appeared with V8 v11.2 upgrade. After further
bisects we established that v8/v8@1f349da#diff-de75fc3e7b84373d94e18b4531827e8b749f9bbe05b59707e894e4e0ce2a1535
is the first V8 commit that causes this failure. However after more investigation we can't
find any reason why that particular commit might cause this problem.

It is only reproducible in debug build, but not release build. Current working theory
is that it is a Rust compiler bug as changing the optimization level for this code
makes the bug go away. This commit should be considered a band-aid that works
around the problem, but doesn't fix it completely. We are gonna go with it as it
unblocks un on day-to-day work, but ultimately we should track it down (or wait
for another Rust upgrade which might fix it?).

---------

Co-authored-by: Bert Belder <bertbelder@gmail.com>
2023-05-12 02:46:42 +02:00
Leo Kettmeir
bf9f7cbcdc
refactor: use Deno.Command instead of Deno.run (#1225) 2023-05-03 23:05:07 +02:00
denobot
5b1417799e
Rolling to V8 11.4.183.2 (#1219) 2023-05-02 01:44:30 +02:00
Giovanny Gutiérrez
5417e2af7f
feat: Add the option to disable generation from strings (#1222) 2023-04-30 12:29:40 +02:00
Giovanny Gutiérrez
e0c8cb50e8
feat: Expose set_accessor_with_configuration to include data and property attribute (#1220) 2023-04-28 00:39:09 +02:00
Giovanny Gutiérrez
fb20194130
feat: Add bindings for "v8::Set" (#1221) 2023-04-28 00:38:16 +02:00
denobot
1ddc7aad87 v0.71.0 2023-04-26 23:13:01 +00:00
Bartek Iwańczuk
68c0466b1f
Fix build for v11.4 (#1218)
Updated "build/" submodule and adjusted to V8
API changes.
2023-04-27 01:03:54 +02:00
denobot
7459d12923
Rolling to V8 11.4.183.1 (#1217) 2023-04-26 17:00:44 +02:00
denobot
2476ea4a7c v0.70.0 2023-04-25 22:40:43 +00:00
Bartek Iwańczuk
8975023421
chore: Track v8 11.4 (#1216) 2023-04-26 00:19:11 +02:00
Eric Long
10861ab9f5
Support for unconventional builds (#1209)
We may build rusty_v8 on platforms other than the common ones (for
example, linux/riscv64), though they are not officially supported and
prebuilt binaries are not available. This patch adds several
environment variables:

- `DISABLE_CLANG`: use `is_clang=false` and disables Clang-specific
options for building with GCC, etc.
- `EXTRA_GN_ARGS`: allow to pass extra GN arguments, such as custom
toolchain
- `NO_PRINT_GN_ARGS`: Disables printing GN arguments to stdout. GN
currently segfaults on riscv64 when printing arguments. Since it is
trivial, we can have an option to simply disable it.

Also added fallback `arch` and `os` declaration in `platform()` to
remove compile-time error.
2023-04-25 16:22:01 -04:00
Bartek Iwańczuk
07f2e9f3b6
chore: disable V8 pointer compression (#1214) 2023-04-25 22:17:27 +02:00
denobot
64c26f853b v0.69.0 2023-04-21 22:39:00 +00:00
Bartek Iwańczuk
f049ad0229
feat: Add v8::Object::get_constructor_name (#1212) 2023-04-21 23:53:51 +02:00
denobot
2c45f72d20
Rolling to V8 11.2.214.15 (#1207) 2023-04-21 23:53:43 +02:00
Bartek Iwańczuk
48c2ac89db
feat: Add v8::StackTrace::current_script_name_or_source_url (#1211) 2023-04-21 19:09:56 +02:00
Bartek Iwańczuk
9394983d15
refactor: migrate from lazy_static to once_cell (#1210) 2023-04-21 15:01:27 +05:30
Divy Srivastava
5dce1eaeef
Update to Ubuntu-22.04-XL runners (#1208) 2023-03-31 19:39:56 +05:30
denobot
1f5aa8a0c8 v0.68.0 2023-03-31 10:19:42 +00:00
Divy Srivastava
fe7610aa4a
FastApiOneByteString is not always utf-8 (#1206) 2023-03-31 12:02:47 +02:00
denobot
a07c222ae3 v0.67.0 2023-03-27 17:39:35 +00:00
Levente Kurusa
cb8bcb4f1b
ArrayBuffer: add binding for IsResizableByUserJavaScript (#1205) 2023-03-27 19:33:58 +02:00
Divy Srivastava
49c77327a6
New const evaluated FastFunction API (#1201) 2023-03-22 20:37:48 +05:30
denobot
8e6b67a38b v0.66.0 2023-03-21 22:31:33 +00:00
denobot
70ecb6b4a8
Rolling to V8 11.2.214.9 (#1204)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-03-21 22:59:42 +01:00
Bartek Iwańczuk
98853f44f0
chore: Track v8 11.2 (#1203) 2023-03-21 20:10:32 +01:00
Levente Kurusa
af75d6d8a2
build: add PYTHON envvar to specify your python binary (#1202) 2023-03-21 17:11:44 +01:00
denobot
8216c9e435 v0.65.0 2023-03-16 16:10:45 +00:00
Divy Srivastava
1088a9f349
Use dsherret/rust-toolchain-file@v1 for release CI (#1200) 2023-03-16 21:38:21 +05:30
Aapo Alasuutari
57c5d93d29
Add tests for invalid UTF-8 sequences in v8::String::new_from_utf8 (#1190) 2023-03-16 09:25:52 -04:00
Divy Srivastava
54bdfe722e
Inline hint for default FastFunction trait methods (#1199) 2023-03-16 18:33:21 +05:30
Bartek Iwańczuk
b1884eb1f5
Change signature of FunctionTemplate::build_fast (#1197)
Changes signature of "FunctionTemplate::build_fast" to allow
to pass "CFunctionInfo" explicitly. If it's not passed explicitly,
it's still autogenerated.
2023-03-16 08:23:04 +01:00
Giovanny Gutiérrez
c58f4c08d9
feat: Expose the security token API from V8 (#1192) 2023-03-10 08:31:13 -05:00
denobot
c2ec15f046 v0.64.0 2023-03-09 13:04:24 +00:00
Divy Srivastava
a2f0e764a5
Disable snapshot checksum verification (#1195) 2023-03-09 18:30:32 +05:30
Bartek Iwańczuk
831f6e9bf1
test: fix flaky cached_data_version_tag test (#1194) 2023-03-07 07:44:16 +01:00
denobot
6dd892b111
Rolling to V8 11.0.226.19 (#1191) 2023-02-28 17:16:30 -04:00
denobot
cb9b32753c
Rolling to V8 11.0.226.16 (#1189) 2023-02-12 16:50:02 +01:00
Divy Srivastava
6043e7d49e
Explicitly set v8_enable_handle_zapping to false (#1188) 2023-02-11 22:52:04 +05:30