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

Upgrade V8 to 8.7.25 (#443)

This commit is contained in:
Ryan Dahl 2020-08-26 17:50:28 -04:00 committed by Bert Belder
parent 12334ffef1
commit f53f10d41f
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461
10 changed files with 17 additions and 14 deletions

View file

@ -1,6 +1,6 @@
# Rusty V8 Binding
V8 Version: 8.6.334
V8 Version: 8.7.25
[![ci](https://github.com/denoland/rusty_v8/workflows/ci/badge.svg?branch=master)](https://github.com/denoland/rusty_v8/actions)
[![crates](https://img.shields.io/crates/v/rusty_v8.svg)](https://crates.io/crates/rusty_v8)

2
build

@ -1 +1 @@
Subproject commit f9d174a05aa7588a89616aed121e5f8ca12687ae
Subproject commit 7152dcc2b71e9f697f5f28563eefb570b0c9c1ae

@ -1 +1 @@
Subproject commit deee1e0703b6f42c3cd2ba848a988dc54ac02212
Subproject commit c3628b70bf849930a678ef1fd4429c4543461188

View file

@ -3350,6 +3350,8 @@ extern "C" fn heap_limit_callback(
current_heap_limit * 2 // Avoid V8 OOM.
}
// This test might fail due to a bug in V8. The upstream bug report is at
// https://bugs.chromium.org/p/v8/issues/detail?id=10843.
#[test]
fn heap_limits() {
let _setup_guard = setup();
@ -3366,14 +3368,14 @@ fn heap_limits() {
let scope = &mut v8::ContextScope::new(scope, context);
// Allocate JavaScript arrays until V8 calls the near-heap-limit callback.
// It takes about 100-200k iterations of this loop to get to that point.
// It takes about 50-200k iterations of this loop to get to that point.
for _ in 0..1_000_000 {
eval(
scope,
r#"
"hello 🦕 world"
.repeat(5)
.split("🦕", 2)
.repeat(10)
.split("🦕")
.map((s) => s.split(""))
.shift()
"#,
@ -3400,7 +3402,8 @@ fn heap_statistics() {
assert!(s.total_global_handles_size() >= s.used_global_handles_size());
assert!(s.used_heap_size() > 0);
assert!(s.heap_size_limit() >= s.used_heap_size());
assert!(s.peak_malloced_memory() >= s.malloced_memory());
assert!(s.peak_malloced_memory() > 0);
assert!(s.malloced_memory() > 0);
assert_eq!(s.number_of_native_contexts(), 0);
let scope = &mut v8::HandleScope::new(isolate);

2
third_party/jinja2 vendored

@ -1 +1 @@
Subproject commit 3f90fa05c85718505e28c9c3426c1ba52843b9b7
Subproject commit 61cfe2ac6c9108534c43b4039a95a0980251f266

@ -1 +1 @@
Subproject commit 8f45f5cfa0009d2a70589bcda0349b8cb2b72783
Subproject commit f2fb0f21ef1e1d4ffd43be8c63fc3d4928dea7ab

2
third_party/zlib vendored

@ -1 +1 @@
Subproject commit 7492de9a52f656b070f41968e39a6efa603590d5
Subproject commit d53accfbd0382a98ad7378045631866449b5f92e

@ -1 +1 @@
Subproject commit 8a232eb21c25d1901794b418b8aeaae772e3cd0f
Subproject commit 708cbfda8bd0686e0f302f54f1b85896cd5881a9

View file

@ -1,8 +1,8 @@
# WARNING: This is not an automated tool! This is just some commands to copy and
# paste manually to upgrade V8.
export BRANCH=20200806_rusty_v8
export COMMITDATE=2020-08-05T17:03:41.000Z
export BRANCH=20200827_rusty_v8
export COMMITDATE=2020-08-26T18:48:51.000Z
git submodule update -f
git submodule foreach 'git remote rm upstream; true' &&

2
v8

@ -1 +1 @@
Subproject commit ce4c3060f6fbfd5ed410de314f7e83a66fd792d9
Subproject commit 1f2195b49c6d7611165ebd149b2825f27693930c