mirror of
https://github.com/denoland/rusty_v8.git
synced 2025-03-09 13:38:51 -04:00
Rolling to V8 13.5.212.1 (#1722)
* Rolling to V8 13.5.212.0 --------- Co-authored-by: snek <snek@deno.com>
This commit is contained in:
parent
58a7a86564
commit
f984aea002
18 changed files with 32 additions and 33 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -46,3 +46,6 @@
|
||||||
[submodule "third_party/highway/src"]
|
[submodule "third_party/highway/src"]
|
||||||
path = third_party/highway/src
|
path = third_party/highway/src
|
||||||
url = https://chromium.googlesource.com/external/github.com/google/highway.git
|
url = https://chromium.googlesource.com/external/github.com/google/highway.git
|
||||||
|
[submodule "third_party/partition_alloc"]
|
||||||
|
path = third_party/partition_alloc
|
||||||
|
url = https://chromium.googlesource.com/chromium/src/base/allocator/partition_allocator.git
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Rusty V8 Binding
|
# Rusty V8 Binding
|
||||||
|
|
||||||
V8 Version: 13.4.114.17
|
V8 Version: 13.5.212.0
|
||||||
|
|
||||||
[](https://github.com/denoland/rusty_v8/actions)
|
[](https://github.com/denoland/rusty_v8/actions)
|
||||||
[](https://crates.io/crates/v8)
|
[](https://crates.io/crates/v8)
|
||||||
|
|
2
build
2
build
|
@ -1 +1 @@
|
||||||
Subproject commit 430d9c2604fd5d1d53ee2c0a4a10fdf72b036521
|
Subproject commit d62828b93ca8ff189bcc58615ff2176b6232c143
|
|
@ -1 +1 @@
|
||||||
Subproject commit 6b4eaa1ed0f3a604f354b4098e4f676f7815f1da
|
Subproject commit b248db940ef3dd7e5f4694ebf4d8a3f67aa0086d
|
|
@ -121,7 +121,12 @@ impl ArrayBufferView {
|
||||||
{
|
{
|
||||||
unsafe {
|
unsafe {
|
||||||
let (data, size) = self.get_contents_raw_parts(storage);
|
let (data, size) = self.get_contents_raw_parts(storage);
|
||||||
std::slice::from_raw_parts(data, size)
|
if data.is_null() {
|
||||||
|
debug_assert_eq!(size, 0);
|
||||||
|
std::slice::from_raw_parts(std::ptr::dangling(), size)
|
||||||
|
} else {
|
||||||
|
std::slice::from_raw_parts(data, size)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
|
#include "cppgc/allocation.h"
|
||||||
#include "cppgc/platform.h"
|
#include "cppgc/platform.h"
|
||||||
#include "support.h"
|
#include "support.h"
|
||||||
#include "unicode/locid.h"
|
#include "unicode/locid.h"
|
||||||
|
|
|
@ -243,7 +243,7 @@ pub struct FunctionCallbackInfo {
|
||||||
impl FunctionCallbackInfo {
|
impl FunctionCallbackInfo {
|
||||||
const kHolderIndex: i32 = 0;
|
const kHolderIndex: i32 = 0;
|
||||||
const kIsolateIndex: i32 = 1;
|
const kIsolateIndex: i32 = 1;
|
||||||
const kUnusedIndex: i32 = 2;
|
const kContextIndex: i32 = 2;
|
||||||
const kReturnValueIndex: i32 = 3;
|
const kReturnValueIndex: i32 = 3;
|
||||||
const kTargetIndex: i32 = 4;
|
const kTargetIndex: i32 = 4;
|
||||||
const kNewTargetIndex: i32 = 5;
|
const kNewTargetIndex: i32 = 5;
|
||||||
|
@ -263,11 +263,6 @@ impl FunctionCallbackInfo {
|
||||||
self.get_implicit_arg_non_null::<Value>(Self::kReturnValueIndex)
|
self.get_implicit_arg_non_null::<Value>(Self::kReturnValueIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline(always)]
|
|
||||||
pub(crate) fn holder(&self) -> Local<Object> {
|
|
||||||
unsafe { self.get_implicit_arg_local(Self::kHolderIndex) }
|
|
||||||
}
|
|
||||||
|
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub(crate) fn new_target(&self) -> Local<Value> {
|
pub(crate) fn new_target(&self) -> Local<Value> {
|
||||||
unsafe { self.get_implicit_arg_local(Self::kNewTargetIndex) }
|
unsafe { self.get_implicit_arg_local(Self::kNewTargetIndex) }
|
||||||
|
@ -374,19 +369,6 @@ impl<'s> FunctionCallbackArguments<'s> {
|
||||||
unsafe { &mut *self.0.get_isolate_ptr() }
|
unsafe { &mut *self.0.get_isolate_ptr() }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// If the callback was created without a Signature, this is the same value as
|
|
||||||
/// `this()`. If there is a signature, and the signature didn't match `this()`
|
|
||||||
/// but one of its hidden prototypes, this will be the respective hidden
|
|
||||||
/// prototype.
|
|
||||||
///
|
|
||||||
/// Note that this is not the prototype of `this()` on which the accessor
|
|
||||||
/// referencing this callback was found (which in V8 internally is often
|
|
||||||
/// referred to as holder [sic]).
|
|
||||||
#[inline(always)]
|
|
||||||
pub fn holder(&self) -> Local<'s, Object> {
|
|
||||||
self.0.holder()
|
|
||||||
}
|
|
||||||
|
|
||||||
/// For construct calls, this returns the "new.target" value.
|
/// For construct calls, this returns the "new.target" value.
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn new_target(&self) -> Local<'s, Value> {
|
pub fn new_target(&self) -> Local<'s, Value> {
|
||||||
|
|
|
@ -286,6 +286,11 @@ unsafe extern "C" fn one_byte_const_estimate_memory_usage(
|
||||||
) -> int {
|
) -> int {
|
||||||
-1
|
-1
|
||||||
}
|
}
|
||||||
|
unsafe extern "C" fn one_byte_const_estimate_shared_memory_usage(
|
||||||
|
_this: *const OneByteConst,
|
||||||
|
_recorder: *mut (),
|
||||||
|
) {
|
||||||
|
}
|
||||||
|
|
||||||
type OneByteConstNoOp = unsafe extern "C" fn(*const OneByteConst);
|
type OneByteConstNoOp = unsafe extern "C" fn(*const OneByteConst);
|
||||||
type OneByteConstIsCacheable =
|
type OneByteConstIsCacheable =
|
||||||
|
@ -297,6 +302,8 @@ type OneByteConstUnaccount =
|
||||||
unsafe extern "C" fn(*const OneByteConst, *mut Isolate);
|
unsafe extern "C" fn(*const OneByteConst, *mut Isolate);
|
||||||
type OneByteConstEstimateMemoryUsage =
|
type OneByteConstEstimateMemoryUsage =
|
||||||
unsafe extern "C" fn(*const OneByteConst) -> int;
|
unsafe extern "C" fn(*const OneByteConst) -> int;
|
||||||
|
type OneByteConstEstimateSharedMemoryUsage =
|
||||||
|
unsafe extern "C" fn(*const OneByteConst, *mut ());
|
||||||
|
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
struct OneByteConstVtable {
|
struct OneByteConstVtable {
|
||||||
|
@ -327,6 +334,7 @@ struct OneByteConstVtable {
|
||||||
is_cacheable: OneByteConstIsCacheable,
|
is_cacheable: OneByteConstIsCacheable,
|
||||||
unaccount: OneByteConstUnaccount,
|
unaccount: OneByteConstUnaccount,
|
||||||
estimate_memory_usage: OneByteConstEstimateMemoryUsage,
|
estimate_memory_usage: OneByteConstEstimateMemoryUsage,
|
||||||
|
estimate_shared_memory_usage: OneByteConstEstimateSharedMemoryUsage,
|
||||||
dispose: OneByteConstNoOp,
|
dispose: OneByteConstNoOp,
|
||||||
lock: OneByteConstNoOp,
|
lock: OneByteConstNoOp,
|
||||||
unlock: OneByteConstNoOp,
|
unlock: OneByteConstNoOp,
|
||||||
|
@ -344,6 +352,7 @@ const ONE_BYTE_CONST_VTABLE: OneByteConstVtable = OneByteConstVtable {
|
||||||
is_cacheable: one_byte_const_is_cacheable,
|
is_cacheable: one_byte_const_is_cacheable,
|
||||||
unaccount: one_byte_const_unaccount,
|
unaccount: one_byte_const_unaccount,
|
||||||
estimate_memory_usage: one_byte_const_estimate_memory_usage,
|
estimate_memory_usage: one_byte_const_estimate_memory_usage,
|
||||||
|
estimate_shared_memory_usage: one_byte_const_estimate_shared_memory_usage,
|
||||||
dispose: one_byte_const_no_op,
|
dispose: one_byte_const_no_op,
|
||||||
lock: one_byte_const_no_op,
|
lock: one_byte_const_no_op,
|
||||||
unlock: one_byte_const_no_op,
|
unlock: one_byte_const_no_op,
|
||||||
|
|
|
@ -1938,7 +1938,6 @@ fn instance_template_with_internal_field() {
|
||||||
) {
|
) {
|
||||||
let this = args.this();
|
let this = args.this();
|
||||||
|
|
||||||
assert_eq!(args.holder(), this);
|
|
||||||
assert!(args.data().is_undefined());
|
assert!(args.data().is_undefined());
|
||||||
|
|
||||||
assert!(this.set_internal_field(0, v8::Integer::new(scope, 42).into()));
|
assert!(this.set_internal_field(0, v8::Integer::new(scope, 42).into()));
|
||||||
|
@ -2135,7 +2134,6 @@ fn object_template_set_accessor() {
|
||||||
) {
|
) {
|
||||||
let this = args.this();
|
let this = args.this();
|
||||||
|
|
||||||
assert_eq!(args.holder(), this);
|
|
||||||
assert!(args.data().is_undefined());
|
assert!(args.data().is_undefined());
|
||||||
|
|
||||||
let ret = v8::Integer::new(scope, 69);
|
let ret = v8::Integer::new(scope, 69);
|
||||||
|
|
2
third_party/abseil-cpp
vendored
2
third_party/abseil-cpp
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit aaed376e01b9f98ff29f70fd47468b7e806e1639
|
Subproject commit 2705c6655c0008cc3fb152dae27890d44bc335f1
|
2
third_party/icu
vendored
2
third_party/icu
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit bbccc2f6efc1b825de5f2c903c48be685cd0cf22
|
Subproject commit d30b7b0bb3829f2e220df403ed461a1ede78b774
|
2
third_party/libc++/src
vendored
2
third_party/libc++/src
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 2e25154d49c29fa9aa42c30ad4a027bd30123434
|
Subproject commit 7f8b68f91ca8b192375f5e71cd81fb3ed9650ef3
|
2
third_party/libc++abi/src
vendored
2
third_party/libc++abi/src
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 634228a732a1d9ae1a6d459556e8fc58707cf961
|
Subproject commit 94c5d7a8edc09f0680aee57548c0b5d400c2840d
|
2
third_party/libunwind/src
vendored
2
third_party/libunwind/src
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit e55d8cf51c6db1fdd4bb56c158945ec59772c8ee
|
Subproject commit 62e217a12ee1133833d9890b2f7adde900e4efbd
|
2
third_party/llvm-libc/src
vendored
2
third_party/llvm-libc/src
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 6b4e376d4537ac5c0601bc1459e315a86f0dafd8
|
Subproject commit 2f5bf11b5c1ee22291223990c912f2cecdcdb0ce
|
1
third_party/partition_alloc
vendored
Submodule
1
third_party/partition_alloc
vendored
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 46d880ff62f340854a5a70142b0abf604c7af221
|
|
@ -1 +1 @@
|
||||||
Subproject commit a037c8c5ad9a5591d9699730ed8c30f3e0a9a5ac
|
Subproject commit ab2d3eca76026ac7b13ba8913597218457d7e800
|
2
v8
2
v8
|
@ -1 +1 @@
|
||||||
Subproject commit c2a4cc213a89c4c881119b15e7da8c3cc81cb291
|
Subproject commit 6f22e2f6df50928298327a70879d1f0a842ac91e
|
Loading…
Add table
Reference in a new issue