0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-30 11:16:46 -05:00
Commit graph

1269 commits

Author SHA1 Message Date
Ben Noordhuis
213305b3de
Strengthen fast call API test (#1093)
Check that it actually performs the expected operation (adding two
numbers) because it didn't - the callback's function prototype was
wrong. V8 always passes the receiver object as the first parameter.
2022-10-09 15:26:06 +02:00
Bert Belder
b2a09e2f14
perf: optimize scope construction and Isolate::get_slot/set_slot() (#1090) 2022-10-08 18:08:37 +05:30
Bert Belder
fc26f634e4
Don't use embedder slot in HostImportModuleDynamicallyCallback ABI adapter (#1089) 2022-10-08 00:30:01 +00:00
PerfectLaugh
403d6c525d
Enable running on 32 bits and several minor fixes (#976) 2022-10-07 15:02:51 +02:00
Bartek Iwańczuk
5635a82d40
v0.52.0 2022-10-07 00:25:02 +02:00
Divy Srivastava
5dd41e9dba
use Isolate for creating primitives (#1082) 2022-10-06 20:44:16 +02:00
Nugine
8f8636b4f7
feat: add String::write_utf8_uninit (#1019) 2022-10-06 19:26:38 +02:00
Aaron O'Mullan
de7a1acbde
feat(isolate): expose get/set_data (#911)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-10-06 19:19:38 +02:00
Andreu Botella
cfdb8b0ccd
feat: Guaranteed finalizers (#1076)
Currently, when a finalizer callback is registered, it is not
guaranteed to be called if there is a global reference to the
corresponding object that survives the isolate. This is because the
finalizer callback takes a `&mut Isolate`, and so it must be called
before the isolate is fully destroyed, but all existing globals
(including possibly the one being currently finalized) are still
usable while there still exists a mutable reference to the isolate.

However, there are still use cases for having finalizers that are
guaranteed to run regardless of any remaining globals, but that don't
require any interaction with the isolate. This change adds them.

This change also changes the context annex to use a guaranteed
finalizer, fixing a bug with context slots not being freed if there
were any globals to the context at the time the isolate is dropped.
2022-10-06 17:25:45 +02:00
Giovanny Gutiérrez
cd51ea1bf2
feat: Add ObjectTemplate NamedProperty and IndexedProperty handlers (#1064) 2022-10-06 00:23:01 +02:00
Luca Matei Pintilie
760c48a089
feat: Add v8::icu::get_language_tag() (#953)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Bert Belder <bertbelder@gmail.com>
2022-10-05 23:19:42 +02:00
Divy Srivastava
40cb4f8ec9
Skip running benchmarks in CI (#1085) 2022-10-05 16:23:27 +00:00
denobot
128be61039
Rolling to V8 10.7.193.13 (#1081) 2022-09-30 15:45:33 +00:00
Ryan Dahl
4e08bd7917
v0.51.0 2022-09-21 03:29:34 +00:00
Divy Srivastava
9f78b0abe7
Inline API functions (#1078) 2022-09-21 08:15:33 +05:30
Divy Srivastava
6444cb9d61
Add benchmarks for V8 native function calls (#1079) 2022-09-20 18:54:44 +05:30
Divy Srivastava
c549b19df3
fastcall: Fix get_storage_if_aligned for non-uint8arrays (#1077) 2022-09-20 17:55:15 +05:30
Aapo Alasuutari
2ba52ed276
fix(fastcall): Fix options.data representation (#1074) 2022-09-20 09:57:23 +05:30
Ryan Dahl
0d1ada4387
chore: small clean ups (#1073) 2022-09-19 09:33:58 +02:00
Ben Noordhuis
5cc0a8556a
Build with v8_typed_array_max_size_in_heap=0 (#1070)
Ensure allocation of typed arrays and arraybuffers always goes through
the embedder's ArrayBufferAllocator, otherwise small buffers get moved
around by the garbage collector but embedders normally want them to have
fixed addresses.
2022-09-19 00:35:30 +02:00
Ryan Dahl
d41dc37a40
Track 10.7-lkgr (#1071) 2022-09-18 23:50:11 +02:00
denobot
93b31cc254
Rolling to V8 10.7.193.3 (#1072) 2022-09-18 23:49:57 +02:00
Divy Srivastava
fd135e4289
v0.50.0 2022-09-16 13:52:43 +00:00
Divy Srivastava
31291f64a6
Add v8::ArrayBuffer::Data (#1068) 2022-09-16 11:30:05 +02:00
Darshan Sen
780eb7946b
fix: property_attribute operator (#1067)
property_attribute previously had an addition operator overload which
doesn't make much sense in comparison to the corresponding V8
enumeration. This changes that to a bitor overload.

Signed-off-by: Darshan Sen <raisinten@gmail.com>
2022-09-13 08:48:53 -04:00
Darshan Sen
dbf19c8545
Improve Object::get_property_names() and Object::get_own_property_names() (#1049)
This change allows the customization of the behavior of
v8::Object::GetOwnPropertyNames() and v8::Object::GetPropertyNames() by
accepting all the options that the raw V8 API supports.

Signed-off-by: Darshan Sen <raisinten@gmail.com>
2022-09-03 18:11:40 +02:00
Ryan Dahl
1f3e0e1d54
fix: auto_update_v8 README regex (#1061) 2022-08-27 09:44:12 -07:00
Will Glozer
746f7a3a56
Fix creation of invalid librusty_v8.a (#1059) 2022-08-26 10:16:20 -04:00
Ryan Dahl
169d5d6ea0
Remove zlib dependency (#1058)
Deno does its own snapshot compression using lz4 and zstd, so no need to
build zlib into V8. See https://github.com/denoland/deno/pull/13320
2022-08-23 13:52:59 -04:00
Ryan Dahl
88f7055e59
Fix version in readme (#1056) 2022-08-23 06:43:10 -04:00
Bartek Iwańczuk
c395d0eada
v0.49.0 2022-08-22 23:41:35 +02:00
Bartek Iwańczuk
05c3e5584e
Track v8 10.6 (#1054) 2022-08-22 22:07:44 +02:00
denobot
e5d33ba970
Rolling to V8 10.6.194.5 (#1042) 2022-08-22 22:07:29 +02:00
Will Glozer
fa01b39f32
Fix compilation for 32-bit targets (#1050) 2022-08-21 10:16:43 +05:30
Bartek Iwańczuk
a9595da180
v0.48.1 2022-08-14 16:25:21 +02:00
Bartek Iwańczuk
4b3b081c03
Add support for Fast calls with Uint8Array (#1047) 2022-08-13 19:56:29 +02:00
Bartek Iwańczuk
33e426bfe4
Export WasmAsyncSuccess enum, change signature of WasmAsyncResolvePro… (#1046)
Export WasmAsyncSuccess enum, change signature of WasmAsyncResolvePromiseCallback
2022-08-13 17:55:56 +02:00
Divy Srivastava
606fee5ec7
support V8 FastApiCallbackOptions (#1044) 2022-08-03 16:07:18 +05:30
Ryan Dahl
3fbf87aa4b
refactor: remove unnecessary complexity from build.rs (#963)
- remove friendly build script output in favor of brevity
- Revert "Add support for generating a `clangd` compilation database (#823)"
- simplify subprocess invocations
2022-07-26 13:21:23 -04:00
Bartek Iwańczuk
9f8abf5350
v0.48.0 (#1037) 2022-07-25 23:26:23 +02:00
Bartek Iwańczuk
c0e336dabb
Track v8 10.5 (#1034) 2022-07-25 20:14:31 +02:00
denobot
21a8d4a580
Rolling to V8 10.5.218.1 (#1036)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-07-25 19:22:32 +02:00
Bartek Iwańczuk
b178f1faa0
v0.47.0 2022-07-19 19:26:42 +02:00
denobot
7e513711a0
Rolling to V8 10.4.132.20 (#1033) 2022-07-18 14:33:05 +02:00
Divy Srivastava
3be46ecc52
Support Fast API Overloads (#1031) 2022-07-16 19:57:58 +05:30
Ryan Dahl
5c42d601cf
v0.46.0 2022-07-13 14:51:18 -04:00
Divy Srivastava
08e1a1c361
Add v8::Object [Get/Set]AlignedPointer[From/In]InternalField (#1026) 2022-07-13 12:35:31 +05:30
Bartek Iwańczuk
2193d827b9
feat: WasmAsyncResolvePromiseCallback (#1029) 2022-07-13 07:51:10 +02:00
Aapo Alasuutari
d8480fc7ef
Add Uint32 / Int32 Value method bindings (#1030) 2022-07-13 09:33:55 +05:30
denobot
d2db387448
Rolling to V8 10.4.132.16 (#1012) 2022-07-12 22:27:57 +00:00