Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# v82jsc — agent playbook (test hill-climb)

`v82jsc` is a **v8 C-ABI compatibility layer** backed by pluggable JS engines.
The crate is literally named `v8` (version `149.4.0`) so it drops into Deno via
The crate is literally named `v8` (version `158.0.0`) so it drops into Deno via
`[patch.crates-io]`. Backends (exactly one active at a time, feature-gated):

| backend id | features | engine | OS |
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# can run unmodified. Downstream crates should depend on this package under an
# explicit alias when both rusty_v8 and v8x are available.
name = "v8x"
version = "149.4.0-rc.4"
version = "158.0.0-rc.1"
edition = "2024"
authors = ["Divy Srivastava <me@littledivy.com>"]
description = "Engine agnostic JavaScript"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Docs: https://littledivy.github.io/v8x · Test dashboard: https://littledivy.git

Supported engines:

- V8 14.9.207.2-rusty
- V8 15.2.124.1-rusty
- JavaScriptCore / WebKit 625.1+ and System-framework path uses the OS's JSC.
- QuickJS-ng 0.15.1

Expand All @@ -31,7 +31,7 @@ on the chosen engine, so the swap is a drop-in — `deno_core` compiles unchange

| engine | deno size | engine size |
| --- | --- | --- |
| Deno V8 14.9 | 78.7 MB | ~40 MB static |
| Deno V8 15.2 | 78.7 MB | ~40 MB static |
| Deno JSC | 80.7 MB | ~48 MB static |
| Deno system JSC | 54.2 MB | 0 |
| Deno quickjs-ng | 56.1 MB | ~1 MB static |
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ fn main() {
// bindings for this target. The C ABI symbols are *defined* by our own
// engine shim (linked below); only the declarations come from here.
//
// The files in gen/ are unmodified upstream rusty_v8 v149.4.0 release
// The files in gen/ are unmodified upstream rusty_v8 v158.0.0 release
// assets. Their content varies only by OS family — the per-arch and
// debug/release/simdutf variants upstream publishes are byte-identical
// within one OS (verified; see gen/README.md) — so one file per OS family
Expand Down
7 changes: 4 additions & 3 deletions gen/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# gen/ — pre-generated rusty_v8 bindings

Unmodified upstream release assets from
https://github.com/denoland/rusty_v8/releases/tag/v149.4.0 (the bindgen output
Unmodified upstream bindgen output for rusty_v8 v158.0.0 (V8 15.8), taken
from the CI artifacts of https://github.com/denoland/rusty_v8/pull/2098 until
the v158.0.0 release is tagged (the bindgen output
rusty_v8's `binding.rs` includes via `RUSTY_V8_SRC_BINDING_PATH`; build.rs
picks one per target). The C ABI symbols these declare are *defined* by our
engine shims — only the declarations come from here.

One file per OS family is enough: upstream publishes per-arch,
debug/release, and simdutf variants, but within one OS family they are all
byte-identical (verified by diffing the v149.4.0 assets). What actually varies
byte-identical (verified by diffing the v158.0.0 assets). What actually varies
across OS families:

- mangled C++ `link_name`s: Itanium with a leading underscore on Apple,
Expand Down
21 changes: 15 additions & 6 deletions gen/src_binding_debug_aarch64-apple-darwin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,13 @@ pub enum v8_Isolate_UseCounterFeature {
kOBSOLETE_WasmResizableBuffers = 183,
kInvalidatedArrayBufferMutableProtector = 184,
kHoleyArrayReadthrough = 185,
kUseCounterFeatureCount = 186,
kWasmGCAllocation = 186,
kModuleNamespaceMissingDefaultWithStarExport = 187,
kRegExpMatcherFlagsMismatch = 188,
kRegExpCustomSpecies = 189,
kWasmWideArithmetic = 190,
kBigInt = 191,
kUseCounterFeatureCount = 192,
}
#[repr(u32)]
#[doc = " Interceptor callbacks use this value to indicate whether the request was\n intercepted or not.\n\n The values for constants and type are chosen this way for better\n performance."]
Expand Down Expand Up @@ -862,6 +868,9 @@ pub const v8__TracedReference_SIZE: usize = 8;
pub const v8__Eternal_SIZE: usize = 8;
pub const v8__String__ValueView_SIZE: usize = 32;
pub const v8__String__kMaxLength: ::std::os::raw::c_int = 536870888;
pub const v8__String__WriteFlags__kNullTerminate: ::std::os::raw::c_int = 1;
pub const v8__String__WriteFlags__kReplaceInvalidUtf8: ::std::os::raw::c_int =
2;
pub const v8__TypedArray__kMaxByteLength: usize = 9007199254740991;
pub const v8__TYPED_ARRAY_MAX_SIZE_IN_HEAP: usize = 0;
pub const v8__Uint8Array__kMaxLength: usize = 9007199254740991;
Expand Down Expand Up @@ -894,11 +903,11 @@ pub use self::v8_GCCallbackFlags as v8__GCCallbackFlags;
pub use self::v8_GCType as v8__GCType;
#[doc = " Interceptor callbacks use this value to indicate whether the request was\n intercepted or not.\n\n The values for constants and type are chosen this way for better\n performance."]
pub use self::v8_Intercepted as v8__Intercepted;
pub const v8__MAJOR_VERSION: u32 = 14;
pub const v8__MINOR_VERSION: u32 = 9;
pub const v8__BUILD_NUMBER: u32 = 207;
pub const v8__PATCH_LEVEL: u32 = 2;
pub const v8__VERSION_STRING: &::std::ffi::CStr = c"14.9.207.2-rusty";
pub const v8__MAJOR_VERSION: u32 = 15;
pub const v8__MINOR_VERSION: u32 = 8;
pub const v8__BUILD_NUMBER: u32 = 62;
pub const v8__PATCH_LEVEL: u32 = 23;
pub const v8__VERSION_STRING: &::std::ffi::CStr = c"15.8.62.23-rusty";
#[repr(C)]
#[derive(Debug)]
pub struct ExternalConstOneByteStringResource {
Expand Down
21 changes: 15 additions & 6 deletions gen/src_binding_debug_x86_64-unknown-linux-gnu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,13 @@ pub enum v8_Isolate_UseCounterFeature {
kOBSOLETE_WasmResizableBuffers = 183,
kInvalidatedArrayBufferMutableProtector = 184,
kHoleyArrayReadthrough = 185,
kUseCounterFeatureCount = 186,
kWasmGCAllocation = 186,
kModuleNamespaceMissingDefaultWithStarExport = 187,
kRegExpMatcherFlagsMismatch = 188,
kRegExpCustomSpecies = 189,
kWasmWideArithmetic = 190,
kBigInt = 191,
kUseCounterFeatureCount = 192,
}
#[repr(u32)]
#[doc = " Interceptor callbacks use this value to indicate whether the request was\n intercepted or not.\n\n The values for constants and type are chosen this way for better\n performance."]
Expand Down Expand Up @@ -862,6 +868,9 @@ pub const v8__TracedReference_SIZE: usize = 8;
pub const v8__Eternal_SIZE: usize = 8;
pub const v8__String__ValueView_SIZE: usize = 32;
pub const v8__String__kMaxLength: ::std::os::raw::c_int = 536870888;
pub const v8__String__WriteFlags__kNullTerminate: ::std::os::raw::c_int = 1;
pub const v8__String__WriteFlags__kReplaceInvalidUtf8: ::std::os::raw::c_int =
2;
pub const v8__TypedArray__kMaxByteLength: usize = 9007199254740991;
pub const v8__TYPED_ARRAY_MAX_SIZE_IN_HEAP: usize = 0;
pub const v8__Uint8Array__kMaxLength: usize = 9007199254740991;
Expand Down Expand Up @@ -894,11 +903,11 @@ pub use self::v8_GCCallbackFlags as v8__GCCallbackFlags;
pub use self::v8_GCType as v8__GCType;
#[doc = " Interceptor callbacks use this value to indicate whether the request was\n intercepted or not.\n\n The values for constants and type are chosen this way for better\n performance."]
pub use self::v8_Intercepted as v8__Intercepted;
pub const v8__MAJOR_VERSION: u32 = 14;
pub const v8__MINOR_VERSION: u32 = 9;
pub const v8__BUILD_NUMBER: u32 = 207;
pub const v8__PATCH_LEVEL: u32 = 2;
pub const v8__VERSION_STRING: &::std::ffi::CStr = c"14.9.207.2-rusty";
pub const v8__MAJOR_VERSION: u32 = 15;
pub const v8__MINOR_VERSION: u32 = 8;
pub const v8__BUILD_NUMBER: u32 = 62;
pub const v8__PATCH_LEVEL: u32 = 23;
pub const v8__VERSION_STRING: &::std::ffi::CStr = c"15.8.62.23-rusty";
#[repr(C)]
#[derive(Debug)]
pub struct ExternalConstOneByteStringResource {
Expand Down
Loading
Loading