Skip to content

Commit d54c25f

Browse files
committed
V8 version update
1 parent 7a73041 commit d54c25f

5 files changed

Lines changed: 26 additions & 3 deletions

File tree

build/args_debug.gn

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ is_component_build = false
66

77
v8_enable_slow_dchecks = false
88
v8_optimized_debug = true
9-
enable_iterator_debugging = true
9+
enable_iterator_debugging = false
1010

1111
v8_use_external_startup_data = false
1212
v8_enable_v8_checks = false
1313
v8_enable_sandbox = false
1414
v8_monolithic = true
1515
v8_enable_i18n_support = true
16+
v8_enable_temporal_support = false
1617
v8_enable_webassembly = true
1718
is_clang = true
1819
icu_use_data_file = false

build/args_release.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ v8_enable_v8_checks = false
99
v8_enable_sandbox = false
1010
v8_monolithic = true
1111
v8_enable_i18n_support = true
12+
v8_enable_temporal_support = false
1213
v8_enable_webassembly = true
1314
is_clang = true
1415
icu_use_data_file = false

build/build.ps1

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ $replaceWhat = 'MapHandlesSpan(possible_transition_targets.begin(),'
6767
$replaceWith = 'possible_transition_targets.empty() ? MapHandlesSpan() : MapHandlesSpan(possible_transition_targets.begin(),'
6868
(Get-Content $filePath).Replace($replaceWhat, $replaceWith) | Set-Content $filePath
6969

70+
# Fix std::function -> base::FunctionRef incompatibility in backing-store.cc on newer V8/Clang builds
71+
$filePath = "${MOUNT_TARGET_DRIVE}:\v8\src\objects\backing-store.cc"
72+
$replaceWhat = 'auto gc_retry = [&](const std::function<bool()>& fn) {'
73+
$replaceWith = 'auto gc_retry = [&](base::FunctionRef<bool()> fn) {'
74+
(Get-Content $filePath).Replace($replaceWhat, $replaceWith) | Set-Content $filePath
75+
7076
####################################
7177
# #
7278
# Tricks and hacks zone end #
@@ -83,5 +89,20 @@ New-Item -ItemType Directory -Force -Path "${MOUNT_TARGET_DRIVE}:\build_results"
8389
Copy-Item -Path "${MOUNT_TARGET_DRIVE}:\v8\out.gn\x64.debug\obj\v8_monolith.lib" -Destination "${MOUNT_TARGET_DRIVE}:\build_results\v8_monolithd.lib"
8490
Copy-Item -Path "${MOUNT_TARGET_DRIVE}:\v8\out.gn\x64.release\obj\v8_monolith.lib" -Destination "${MOUNT_TARGET_DRIVE}:\build_results\v8_monolith.lib"
8591

92+
$PACKAGE_ROOT = "${MOUNT_TARGET_DRIVE}:\build_results\v8-package"
93+
$PACKAGE_LIBS_DIR = "$PACKAGE_ROOT\libs"
94+
$PACKAGE_INCLUDE_DIR = "$PACKAGE_ROOT\include\v8"
95+
$PACKAGE_ARCHIVE = "${MOUNT_TARGET_DRIVE}:\build_results\v8.tar.xz"
96+
97+
Remove-Item -Path $PACKAGE_ROOT -Recurse -Force -ErrorAction SilentlyContinue
98+
Remove-Item -Path $PACKAGE_ARCHIVE -Force -ErrorAction SilentlyContinue
99+
New-Item -ItemType Directory -Force -Path $PACKAGE_LIBS_DIR
100+
New-Item -ItemType Directory -Force -Path $PACKAGE_INCLUDE_DIR
101+
Copy-Item -Path "${MOUNT_TARGET_DRIVE}:\build_results\v8_monolithd.lib" -Destination $PACKAGE_LIBS_DIR
102+
Copy-Item -Path "${MOUNT_TARGET_DRIVE}:\build_results\v8_monolith.lib" -Destination $PACKAGE_LIBS_DIR
103+
Copy-Item -Path "${MOUNT_TARGET_DRIVE}:\v8\include\*" -Destination $PACKAGE_INCLUDE_DIR -Recurse -Force
104+
tar.exe -cJf $PACKAGE_ARCHIVE -C $PACKAGE_ROOT .
105+
Remove-Item -Path $PACKAGE_ROOT -Recurse -Force
106+
86107
# Attempt to clean up and remove X: mapping at the end; ignore errors
87108
Invoke-Expression "subst ${MOUNT_TARGET_DRIVE}: /D" -ErrorAction SilentlyContinue

build/target.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
309640da62fae0485c7e4f64829627c92d53b35d
1+
e04c3a1a2543bdbee7beac8846c9cbe8f657636f

depot_tools

Submodule depot_tools updated from 4d0491c to 533321c

0 commit comments

Comments
 (0)