Skip to content

Commit 4d9f927

Browse files
devsnekdenobot
andauthored
Rolling to V8 14.4 (#1889)
Co-authored-by: denobot <33910674+denobot@users.noreply.github.com>
1 parent 31e543f commit 4d9f927

File tree

28 files changed

+94
-274
lines changed

28 files changed

+94
-274
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,6 @@
5555
[submodule "third_party/rust"]
5656
path = third_party/rust
5757
url = https://chromium.googlesource.com/chromium/src/third_party/rust
58+
[submodule "tools/win"]
59+
path = tools/win
60+
url = https://chromium.googlesource.com/chromium/src/tools/win

Cargo.lock

Lines changed: 48 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ exclude = [
7171
"third_party/fp16/src/test",
7272
"third_party/fast_float/src/tests",
7373
"tools/clang",
74+
"tools/win",
7475
"v8/ChangeLog",
7576
"v8/benchmarks/",
7677
"v8/docs/",
@@ -81,6 +82,7 @@ exclude = [
8182
"!.gn",
8283
"!BUILD.gn",
8384
"!tools/clang/scripts/update.py",
85+
"!tools/win/DebugVisualizers",
8486
"!v8/test/torque/test-torque.tq",
8587
"!v8/tools/gen-postmortem-metadata.py",
8688
"!v8/tools/gen-v8-gn.py",
@@ -107,7 +109,7 @@ v8_enable_v8_checks = []
107109
[dependencies]
108110
bitflags = "2.5"
109111
paste = "1.0"
110-
temporal_capi = { version = "0.1.0", features = ["zoneinfo64"] }
112+
temporal_capi = { version = "0.1.2", features = ["zoneinfo64"] }
111113

112114
[build-dependencies]
113115
miniz_oxide = "0.8.8"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Rusty V8 Binding
22

3-
V8 Version: 14.2.231.17
3+
V8 Version: 14.4.258.6
44

55
[![ci](https://github.com/denoland/rusty_v8/workflows/ci/badge.svg?branch=main)](https://github.com/denoland/rusty_v8/actions)
66
[![crates](https://img.shields.io/crates/v/v8.svg)](https://crates.io/crates/v8)

build

Submodule build updated 195 files

buildtools

Submodule buildtools updated from fe8567e to 1267724

src/binding.cc

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,35 +1127,18 @@ int v8__String__Utf8Length(const v8::String& self, v8::Isolate* isolate) {
11271127
return self.Utf8LengthV2(isolate);
11281128
}
11291129

1130-
int v8__String__Write(const v8::String& self, v8::Isolate* isolate,
1131-
uint16_t* buffer, int start, int length, int options) {
1132-
return self.Write(isolate, buffer, start, length, options);
1133-
}
1134-
11351130
void v8__String__Write_v2(const v8::String& self, v8::Isolate* isolate,
11361131
uint32_t offset, uint32_t length, uint16_t* buffer,
11371132
int flags) {
11381133
return self.WriteV2(isolate, offset, length, buffer, flags);
11391134
}
11401135

1141-
int v8__String__WriteOneByte(const v8::String& self, v8::Isolate* isolate,
1142-
uint8_t* buffer, int start, int length,
1143-
int options) {
1144-
return self.WriteOneByte(isolate, buffer, start, length, options);
1145-
}
1146-
11471136
void v8__String__WriteOneByte_v2(const v8::String& self, v8::Isolate* isolate,
11481137
uint32_t offset, uint32_t length,
11491138
uint8_t* buffer, int flags) {
11501139
return self.WriteOneByteV2(isolate, offset, length, buffer, flags);
11511140
}
11521141

1153-
int v8__String__WriteUtf8(const v8::String& self, v8::Isolate* isolate,
1154-
char* buffer, int length, int* nchars_ref,
1155-
int options) {
1156-
return self.WriteUtf8(isolate, buffer, length, nchars_ref, options);
1157-
}
1158-
11591142
size_t v8__String__WriteUtf8_v2(const v8::String& self, v8::Isolate* isolate,
11601143
char* buffer, size_t capacity, int flags,
11611144
size_t* processed_characters_return) {
@@ -3806,8 +3789,8 @@ void v8__CompiledWasmModule__DELETE(v8::CompiledWasmModule* self) {
38063789
extern "C" {
38073790

38083791
size_t icu_get_default_locale(char* output, size_t output_len) {
3809-
const icu_74::Locale& default_locale = icu::Locale::getDefault();
3810-
icu_74::CheckedArrayByteSink sink(output, static_cast<uint32_t>(output_len));
3792+
const icu_77::Locale& default_locale = icu::Locale::getDefault();
3793+
icu_77::CheckedArrayByteSink sink(output, static_cast<uint32_t>(output_len));
38113794
UErrorCode status = U_ZERO_ERROR;
38123795
default_locale.toLanguageTag(sink, status);
38133796
assert(status == U_ZERO_ERROR);

src/icu.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::ffi::CString;
55
unsafe extern "C" {
66
fn icu_get_default_locale(output: *mut char, output_len: usize) -> usize;
77
fn icu_set_default_locale(locale: *const char);
8-
fn udata_setCommonData_74(this: *const u8, error_code: *mut i32);
8+
fn udata_setCommonData_77(this: *const u8, error_code: *mut i32);
99
}
1010

1111
/// This function bypasses the normal ICU data loading process and allows you to force ICU's system
@@ -42,10 +42,10 @@ unsafe extern "C" {
4242
/// functionality for application data.
4343
// TODO(ry) Map error code to something useful.
4444
#[inline(always)]
45-
pub fn set_common_data_74(data: &'static [u8]) -> Result<(), i32> {
45+
pub fn set_common_data_77(data: &'static [u8]) -> Result<(), i32> {
4646
let mut error_code = 0i32;
4747
unsafe {
48-
udata_setCommonData_74(data.as_ptr(), &mut error_code);
48+
udata_setCommonData_77(data.as_ptr(), &mut error_code);
4949
}
5050
if error_code == 0 {
5151
Ok(())

src/isolate_create_params.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use crate::support::Opaque;
88
use crate::support::SharedPtr;
99
use crate::support::UniqueRef;
1010
use crate::support::char;
11-
use crate::support::int;
1211
use crate::support::intptr_t;
1312

1413
use std::any::Any;
@@ -114,19 +113,6 @@ impl CreateParams {
114113
self
115114
}
116115

117-
/// The following parameters describe the offsets for addressing type info
118-
/// for wrapped API objects and are used by the fast C API
119-
/// (for details see v8-fast-api-calls.h).
120-
pub fn embedder_wrapper_type_info_offsets(
121-
mut self,
122-
embedder_wrapper_type_index: int,
123-
embedder_wrapper_object_index: int,
124-
) -> Self {
125-
self.raw.embedder_wrapper_type_index = embedder_wrapper_type_index;
126-
self.raw.embedder_wrapper_object_index = embedder_wrapper_object_index;
127-
self
128-
}
129-
130116
/// Configures the constraints with reasonable default values based on the
131117
/// provided lower and upper bounds.
132118
///
@@ -217,8 +203,6 @@ struct CreateParamAllocations {
217203
#[test]
218204
fn create_param_defaults() {
219205
let params = CreateParams::default();
220-
assert_eq!(params.raw.embedder_wrapper_type_index, -1);
221-
assert_eq!(params.raw.embedder_wrapper_object_index, -1);
222206
assert!(params.raw.allow_atomics_wait);
223207
}
224208

@@ -238,8 +222,6 @@ pub(crate) mod raw {
238222
pub array_buffer_allocator_shared: SharedPtr<ArrayBufferAllocator>,
239223
pub external_references: *const intptr_t,
240224
pub allow_atomics_wait: bool,
241-
pub embedder_wrapper_type_index: int,
242-
pub embedder_wrapper_object_index: int,
243225
_fatal_error_handler: *const Opaque, // FatalErrorCallback
244226
_oom_error_handler: *const Opaque, // OOMErrorCallback
245227
pub cpp_heap: *const Heap,

0 commit comments

Comments
 (0)