Skip to content

Commit d4033c1

Browse files
committed
deps: update V8 to 6.2.414.33
Refs: v8/v8@6.2.414.32...6.2.414.33 PR-URL: #16412 Reviewed-By: Ali Ijaz Sheikh <[email protected]>
1 parent d653f03 commit d4033c1

File tree

10 files changed

+98
-17
lines changed

10 files changed

+98
-17
lines changed

deps/v8/BUILD.gn

-2
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,6 @@ action("v8_dump_build_config") {
827827
is_gcov_coverage = v8_code_coverage && !is_clang
828828
args = [
829829
rebase_path("$root_out_dir/v8_build_config.json", root_build_dir),
830-
"current_cpu=\"$current_cpu\"",
831830
"dcheck_always_on=$dcheck_always_on",
832831
"is_asan=$is_asan",
833832
"is_cfi=$is_cfi",
@@ -838,7 +837,6 @@ action("v8_dump_build_config") {
838837
"is_tsan=$is_tsan",
839838
"is_ubsan_vptr=$is_ubsan_vptr",
840839
"target_cpu=\"$target_cpu\"",
841-
"v8_current_cpu=\"$v8_current_cpu\"",
842840
"v8_enable_i18n_support=$v8_enable_i18n_support",
843841
"v8_target_cpu=\"$v8_target_cpu\"",
844842
"v8_use_snapshot=$v8_use_snapshot",

deps/v8/gni/isolate.gni

-2
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,6 @@ template("v8_isolate_run") {
156156
"--config-variable",
157157
"icu_use_data_file_flag=$icu_use_data_file_flag",
158158
"--config-variable",
159-
"is_gn=1",
160-
"--config-variable",
161159
"msan=$msan",
162160
"--config-variable",
163161
"tsan=$tsan",

deps/v8/gypfiles/isolate.gypi

-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
'--config-variable', 'gcmole=<(gcmole)',
7575
'--config-variable', 'has_valgrind=<(has_valgrind)',
7676
'--config-variable', 'icu_use_data_file_flag=<(icu_use_data_file_flag)',
77-
'--config-variable', 'is_gn=0',
7877
'--config-variable', 'msan=<(msan)',
7978
'--config-variable', 'tsan=<(tsan)',
8079
'--config-variable', 'coverage=<(coverage)',

deps/v8/gypfiles/toolchain.gypi

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
'msvs_use_common_release': 0,
3333
'clang%': 0,
3434
'asan%': 0,
35+
'cfi_vptr%': 0,
3536
'lsan%': 0,
3637
'msan%': 0,
3738
'tsan%': 0,

deps/v8/include/v8-version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#define V8_MAJOR_VERSION 6
1212
#define V8_MINOR_VERSION 2
1313
#define V8_BUILD_NUMBER 414
14-
#define V8_PATCH_LEVEL 32
14+
#define V8_PATCH_LEVEL 33
1515

1616
// Use 1 for candidates and 0 otherwise.
1717
// (Boolean macro values are not supported by all preprocessors.)

deps/v8/src/v8.gyp

+45-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
{
4343
'target_name': 'v8',
4444
'dependencies_traverse': 1,
45-
'dependencies': ['v8_maybe_snapshot'],
45+
'dependencies': ['v8_maybe_snapshot', 'v8_dump_build_config'],
4646
'conditions': [
4747
['want_separate_host_toolset==1', {
4848
'toolsets': ['host', 'target'],
@@ -2499,5 +2499,49 @@
24992499
}],
25002500
],
25012501
},
2502+
{
2503+
'target_name': 'v8_dump_build_config',
2504+
'type': 'none',
2505+
'variables': {
2506+
},
2507+
'conditions': [
2508+
[ 'want_separate_host_toolset==1', {
2509+
'toolsets': ['host'],
2510+
}, {
2511+
'toolsets': ['target'],
2512+
}]
2513+
],
2514+
'actions': [
2515+
{
2516+
'action_name': 'v8_dump_build_config',
2517+
'inputs': [
2518+
'../tools/testrunner/utils/dump_build_config_gyp.py',
2519+
],
2520+
'outputs': [
2521+
'<(PRODUCT_DIR)/v8_build_config.json',
2522+
],
2523+
'action': [
2524+
'python',
2525+
'../tools/testrunner/utils/dump_build_config_gyp.py',
2526+
'<(PRODUCT_DIR)/v8_build_config.json',
2527+
'dcheck_always_on=<(dcheck_always_on)',
2528+
'is_asan=<(asan)',
2529+
'is_cfi=<(cfi_vptr)',
2530+
'is_component_build="<(component)"',
2531+
'is_debug="<(CONFIGURATION_NAME)"',
2532+
# Not available in gyp.
2533+
'is_gcov_coverage=0',
2534+
'is_msan=<(msan)',
2535+
'is_tsan=<(tsan)',
2536+
# Not available in gyp.
2537+
'is_ubsan_vptr=0',
2538+
'target_cpu="<(target_arch)"',
2539+
'v8_enable_i18n_support=<(v8_enable_i18n_support)',
2540+
'v8_target_cpu="<(v8_target_arch)"',
2541+
'v8_use_snapshot=<(v8_use_snapshot)',
2542+
],
2543+
},
2544+
],
2545+
},
25022546
],
25032547
}

deps/v8/tools/foozzie/v8_foozzie.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def infer_arch(d8):
127127
executable.
128128
"""
129129
with open(os.path.join(os.path.dirname(d8), 'v8_build_config.json')) as f:
130-
arch = json.load(f)['v8_current_cpu']
130+
arch = json.load(f)['v8_target_cpu']
131131
return 'ia32' if arch == 'x86' else arch
132132

133133

deps/v8/tools/testrunner/testrunner.isolate

+1-7
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
'../run-tests.py',
88
],
99
'files': [
10+
'<(PRODUCT_DIR)/v8_build_config.json',
1011
'../run-tests.py',
1112
'./'
1213
],
@@ -20,12 +21,5 @@
2021
],
2122
},
2223
}],
23-
['is_gn==1', {
24-
'variables': {
25-
'files': [
26-
'<(PRODUCT_DIR)/v8_build_config.json',
27-
],
28-
},
29-
}],
3024
],
3125
}

deps/v8/tools/testrunner/utils/dump_build_config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
import os
1616
import sys
1717

18-
assert len(sys.argv) > 1
18+
assert len(sys.argv) > 2
1919

2020
def as_json(kv):
2121
assert '=' in kv
2222
k, v = kv.split('=', 1)
2323
return k, json.loads(v)
2424

2525
with open(sys.argv[1], 'w') as f:
26-
json.dump(dict(as_json(kv) for kv in sys.argv[2:]), f)
26+
json.dump(dict(map(as_json, sys.argv[2:])), f)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Copyright 2017 the V8 project authors. All rights reserved.
2+
# Use of this source code is governed by a BSD-style license that can be
3+
# found in the LICENSE file.
4+
5+
"""The same as dump_build_config.py but for gyp legacy.
6+
7+
Expected to be called like:
8+
dump_build_config.py path/to/file.json [key1=value1 ...]
9+
10+
Raw gyp values are supported - they will be tranformed into valid json.
11+
"""
12+
# TODO(machenbach): Remove this when gyp is deprecated.
13+
14+
import json
15+
import os
16+
import sys
17+
18+
assert len(sys.argv) > 2
19+
20+
21+
GYP_GN_CONVERSION = {
22+
'is_component_build': {
23+
'"shared_library"': 'true',
24+
'"static_library"': 'false',
25+
},
26+
'is_debug': {
27+
'"Debug"': 'true',
28+
'"Release"': 'false',
29+
},
30+
}
31+
32+
DEFAULT_CONVERSION ={
33+
'0': 'false',
34+
'1': 'true',
35+
'"ia32"': '"x86"',
36+
}
37+
38+
def gyp_to_gn(key, value):
39+
return GYP_GN_CONVERSION.get(key, DEFAULT_CONVERSION).get(value, value)
40+
41+
def as_json(kv):
42+
assert '=' in kv
43+
k, v = kv.split('=', 1)
44+
return k, json.loads(gyp_to_gn(k, v))
45+
46+
with open(sys.argv[1], 'w') as f:
47+
json.dump(dict(map(as_json, sys.argv[2:])), f)

0 commit comments

Comments
 (0)