0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-11-21 15:04:33 -05:00
Commit graph

1216 commits

Author SHA1 Message Date
snek
0a478a0b2a
chore: binding cleanup (#1551) 2024-07-26 13:37:39 -07:00
snek
d22c1f9a3c
feat: upgrade ScriptOrigin (#1550) 2024-07-25 22:32:11 +00:00
snek
97291d7290
Roll V8 to include new patches (#1549) 2024-07-25 20:34:26 +00:00
snek
83573e5cff
add embedder suffix to v8 version (#1548) 2024-07-25 11:25:31 -07:00
denobot
7de48e7aa6
Rolling to V8 12.8.374.3 (#1547) 2024-07-25 08:33:55 -07:00
snek
fc864eaa64
v0.100.0 (#1546) 2024-07-24 21:22:09 +00:00
snek
d5da421046
feat: access with receiver (#1542) 2024-07-24 19:08:16 +00:00
snek
c9383c2184
fix: QueryCallback should use Integer (#1545) 2024-07-24 11:39:30 -07:00
denobot
634b1b99d9
Rolling to V8 12.8.374.2 (#1544) 2024-07-24 09:59:31 -07:00
snek
39631b31d6
feat: add String::ValueView (#1543) 2024-07-24 07:59:18 -07:00
snek
1e4b691905
feat: V8 12.8 (#1539) 2024-07-23 19:43:32 +00:00
Ryan Dahl
979f3d87d1
set v8_enable_private_mapping_fork_optimization = true (#1535) 2024-07-23 10:07:07 -04:00
snek
18c633d567
Update V8 to 12.8 (#1538) 2024-07-22 19:59:26 +00:00
Bartek Iwańczuk
f78694aefd
v0.98.2 (#1536) 2024-07-22 05:18:41 +02:00
Aapo Alasuutari
7b6451aed4
fix: ExternalOneByteStringResource is not guaranteed to be valid UTF-8 (#1532)
A subtle unsoundness / undefined behaviour made its way into the fairly recently added ExternalOneByteStringResource object: The as_str API is not sound as the data inside may be be Latin-1, not ASCII.

As the API was not used anywhere in deno or deno_core, I opted to simply remove it and replace it with an as_bytes API. I also modified the test to showcase the Latin-1 string case and added copious notes and explanations around the code to make sure this doesn't accidentally happen again. The likely reason why the API originally slipped in is because the OneByteConst has this API where it is safe because the OneByteConst creation checks the data for ASCII-ness.

I also tried to add an API to extract an Option<&'static OneByteConst> from an &ExternalOneByteStringResource but run into rust-lang/rust#119618 ie. OneByteConst is actually duplicating the vtables... which is not great.
2024-07-21 01:09:30 +02:00
Nathan Whitaker
6385bd6f32
chore: Add a couple convenience casting functions to v8::Local (#1533)
* Rename cast -> cast_unchecked

* Add cast helpers

* Change a couple tests to use it

* Add some small docs

* Fmt

* Add inline hint

* Address comments
2024-07-20 01:34:32 +00:00
David Sherret
b590c12fe9
chore(build): try remove_file on windows (#1529) 2024-07-15 17:30:58 +00:00
snek
7107d4869e
rust 1.79.0 (#1527) 2024-07-12 09:30:31 -07:00
snek
8cdd3de9f4
v0.98.0 (#1526) 2024-07-11 11:15:59 -07:00
David Sherret
b23a399ff3
chore: output more information in build (#1521) 2024-07-11 18:05:15 +00:00
snek
815125e0b0
fix: put fslock around entire build process (#1525) 2024-07-11 10:00:13 -07:00
denobot
736ae93ee1
Rolling to V8 12.7.224.13 (#1524) 2024-07-11 09:59:53 -07:00
snek
57fb97a43b
feat: cppgc::Ptr (#1523) 2024-07-10 22:03:49 -07:00
snek
2c5db866a2
fix publish ci (#1522) 2024-07-10 14:13:25 -07:00
Bartek Iwańczuk
5666d81c7b
v0.97.1 (#1520) 2024-07-10 00:28:14 +02:00
Bartek Iwańczuk
6178f6a8e8
v0.97.0 (#1519) 2024-07-08 23:58:16 +00:00
denobot
47a5210826
Rolling to V8 12.7.224.12 (#1513) 2024-07-08 15:08:40 -07:00
snek
db047c1e47
feat: enable maglev (#1517) 2024-07-08 07:48:50 -07:00
Divy Srivastava
8820e5b4ee
Use &mut Isolate in Object::wrap and Object::unwrap (#1518) 2024-07-06 19:22:45 -07:00
Bartek Iwańczuk
0c7be7285c
build: remove symlink on Windows before creating it (#1516) 2024-07-05 23:23:09 +00:00
Bartek Iwańczuk
06c7eb0e81
v0.96.0 (#1515) 2024-07-04 16:18:11 -07:00
Bartek Iwańczuk
49b92c1e76
feat: Add Source Maps APIs (#1514)
This commit adds bindings for:

- v8::UnboundScript::get_source_mapping_url
- v8::UnboundScript::get_source_url
- v8::UnboundModuleScript::get_source_mapping_url
- v8::UnboundModuleScript::get_source_url
2024-07-04 22:13:11 +00:00
denobot
8df8a1a7cb
Rolling to V8 12.7.224.10 (#1509) 2024-07-02 21:37:11 +00:00
Nathan Whitaker
6bac39b579
Add non-static external onebyte string (#1511)
* Rename existing method

* Enable getting external onebyte resource + fix encoding

* Enable creating an external onebyte string that's freed by v8

* Add basic test

* Boxed str, fix as_str, doc comments

* Cleanup binding + fix adjust memory

* Use bindgen + raw api

* Rm unnecessary cast

* Rm unnecessary lines

* Revert "Use bindgen + raw api"

This reverts commit 8ea00476b6.

* Add raw api, cleanup

* Fix unnecessary conversion

* Address comments

* Trying to retrigger CI
2024-06-28 15:39:23 -07:00
snek
04dd49291a
v0.95.0 (#1510) 2024-06-27 10:49:55 -07:00
snek
e747f405a4
fix: remove use of deprecated apis (#1488) 2024-06-27 08:29:46 -07:00
snek
0b440db772
feat: rust bindgen and publish flow (#1507) 2024-06-27 02:49:06 +00:00
denobot
b8d49899d3
Rolling to V8 12.7.224.9 (#1508) 2024-06-25 13:46:01 +02:00
denobot
5ca1067013
Rolling to V8 12.7.224.8 (#1506) 2024-06-24 13:50:03 +00:00
Divy Srivastava
a0dc5c1893
Add cppgc::InnerMember::get_mut (#1505) 2024-06-22 08:28:31 -07:00
denobot
425862adbc
Rolling to V8 12.7.224.6 (#1503) 2024-06-19 17:15:30 +02:00
Bartek Iwańczuk
3ec0ad6ea1
v0.94.0 (#1504) 2024-06-14 03:34:43 +02:00
denobot
4f03751d4a
Rolling to V8 12.7.224.1 (#1502)
* Rolling to V8 12.7.224.1

* fix eb0bb2596a

* idk

---------

Co-authored-by: snek <snek@deno.com>
2024-06-12 15:27:05 -07:00
snek
37023e66cc
Update v8 to 12.7 (#1501) 2024-06-12 17:33:26 +00:00
denobot
70f7881d99
Rolling to V8 12.6.228.16 (#1492) 2024-06-11 14:56:34 -04:00
Ryan Dahl
c3687bd565
chore: error on bad c++ formatting in ci (#1499) 2024-06-11 20:40:17 +05:30
Divy Srivastava
def3fd06ec
v0.93.1 (#1498) 2024-06-11 07:36:31 +05:30
Kedas
2bbc9053b5
Add v8::Template::set_intrinsic_data_property (#1496)
* feat: add `v8::Template::set_intrinsic_data_property`

* fix: use assert_eq instead of assert

* fix: cargo fmt
2024-06-10 10:40:14 -07:00
Divy Srivastava
ff92021910
Fix uninitialized context annex slot (#1497) 2024-06-10 20:55:09 +05:30
Bartek Iwańczuk
101be535c8
build: fix publishing step (#1495)
After adding the Android support the CI fails on tags because cargo publish was being run
on linux GNU and linux Android.
2024-06-06 23:02:18 +02:00