Commit Graph

1204 Commits

Author SHA1 Message Date
Bartek Iwańczuk
fc9bc214c2
v0.99.0 2024-07-24 21:43:02 +02: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
Bartek Iwańczuk
0911b83bcd
v0.93.0 (#1494) 2024-06-06 01:07:29 +00:00
Bartek Iwańczuk
74ae0b4712
chore: update dependencies (#1493) 2024-06-06 02:22:42 +02:00
snek
2a8b117c93
feat: add DataView constructor (#1491) 2024-06-03 13:47:57 -07:00
Ryan Dahl
756f47dcb9
v0.92.1 2024-05-29 10:36:40 -04:00
liushuyu
3b4ecfdc6f
fix: fix size checking on 32-bit platforms (#1489)
fix size checking on 32-bit platforms on 32-bit platforms like armv7 or
ppc32, the size of `v8::ScriptCompiler::CompilationDetails` and
`v8::ScriptCompiler::Source` will be different than currently expected.
This is due to how those 32-bit platforms layout the 64-bit elements in
a structure.
2024-05-29 10:32:50 -04:00
denobot
6dc819bba1
Rolling to V8 12.6.228.9 (#1487) 2024-05-25 13:40:26 +00:00
denobot
5ba0f3098c
Rolling to V8 12.6.228.5 (#1484) 2024-05-17 12:40:07 -04:00
Bartek Iwańczuk
cf3f19c512
chore: Update use of deprecated APIs (#1481)
This commit updates APIs related to named and indexed property
handlers to not use deprecated V8 APIs. Main change is the change
of return value in callbacks that now requires to return v8::Intercepted enum.

Towards #1478
2024-05-15 23:21:56 +00:00
Matt Mastracci
f9043140a3
v0.92.0 (#1479) 2024-05-15 20:40:07 +00:00
Matt Mastracci
2686f237f8
fix: Re-enable pointer compression (#1473)
* fix: Re-enable pointer compression

* macos-13

* Add a tight loop test

* Better test

* Update tests/test_api.rs
2024-05-15 15:33:59 +00:00
denobot
d340cd7daf
Rolling to V8 12.6.228.3 (#1466)
* Rolling to V8 12.6.228.3

* [ci]

* -Wdeprecated-declarations

---------

Co-authored-by: Matt Mastracci <matthew@mastracci.com>
2024-05-14 16:23:46 -06:00
Matt Mastracci
de0d9bc9a4
chore: track v8 12.6 (#1477) 2024-05-14 20:10:51 +00:00