diff options
author | Michaël Zasso <targos@protonmail.com> | 2017-10-23 16:08:40 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2017-10-26 10:12:41 +0200 |
commit | d4033c15475ff854b645751025135f7899890fcd (patch) | |
tree | f491e3527633330669b10eafc29377a954b08114 /deps/v8/tools | |
parent | d653f03c0e9fa097abb9959931a78d02a3eb8814 (diff) | |
download | android-node-v8-d4033c15475ff854b645751025135f7899890fcd.tar.gz android-node-v8-d4033c15475ff854b645751025135f7899890fcd.tar.bz2 android-node-v8-d4033c15475ff854b645751025135f7899890fcd.zip |
deps: update V8 to 6.2.414.33
Refs: https://github.com/v8/v8/compare/6.2.414.32...6.2.414.33
PR-URL: https://github.com/nodejs/node/pull/16412
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Diffstat (limited to 'deps/v8/tools')
-rwxr-xr-x | deps/v8/tools/foozzie/v8_foozzie.py | 2 | ||||
-rw-r--r-- | deps/v8/tools/testrunner/testrunner.isolate | 8 | ||||
-rw-r--r-- | deps/v8/tools/testrunner/utils/dump_build_config.py | 4 | ||||
-rw-r--r-- | deps/v8/tools/testrunner/utils/dump_build_config_gyp.py | 47 |
4 files changed, 51 insertions, 10 deletions
diff --git a/deps/v8/tools/foozzie/v8_foozzie.py b/deps/v8/tools/foozzie/v8_foozzie.py index 0c6d65d1e8..2178178652 100755 --- a/deps/v8/tools/foozzie/v8_foozzie.py +++ b/deps/v8/tools/foozzie/v8_foozzie.py @@ -127,7 +127,7 @@ def infer_arch(d8): executable. """ with open(os.path.join(os.path.dirname(d8), 'v8_build_config.json')) as f: - arch = json.load(f)['v8_current_cpu'] + arch = json.load(f)['v8_target_cpu'] return 'ia32' if arch == 'x86' else arch diff --git a/deps/v8/tools/testrunner/testrunner.isolate b/deps/v8/tools/testrunner/testrunner.isolate index e29f1df98d..56667c2021 100644 --- a/deps/v8/tools/testrunner/testrunner.isolate +++ b/deps/v8/tools/testrunner/testrunner.isolate @@ -7,6 +7,7 @@ '../run-tests.py', ], 'files': [ + '<(PRODUCT_DIR)/v8_build_config.json', '../run-tests.py', './' ], @@ -20,12 +21,5 @@ ], }, }], - ['is_gn==1', { - 'variables': { - 'files': [ - '<(PRODUCT_DIR)/v8_build_config.json', - ], - }, - }], ], } diff --git a/deps/v8/tools/testrunner/utils/dump_build_config.py b/deps/v8/tools/testrunner/utils/dump_build_config.py index bd57b5f34e..b691bb3dc8 100644 --- a/deps/v8/tools/testrunner/utils/dump_build_config.py +++ b/deps/v8/tools/testrunner/utils/dump_build_config.py @@ -15,7 +15,7 @@ import json import os import sys -assert len(sys.argv) > 1 +assert len(sys.argv) > 2 def as_json(kv): assert '=' in kv @@ -23,4 +23,4 @@ def as_json(kv): return k, json.loads(v) with open(sys.argv[1], 'w') as f: - json.dump(dict(as_json(kv) for kv in sys.argv[2:]), f) + json.dump(dict(map(as_json, sys.argv[2:])), f) diff --git a/deps/v8/tools/testrunner/utils/dump_build_config_gyp.py b/deps/v8/tools/testrunner/utils/dump_build_config_gyp.py new file mode 100644 index 0000000000..920459d929 --- /dev/null +++ b/deps/v8/tools/testrunner/utils/dump_build_config_gyp.py @@ -0,0 +1,47 @@ +# Copyright 2017 the V8 project authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +"""The same as dump_build_config.py but for gyp legacy. + +Expected to be called like: +dump_build_config.py path/to/file.json [key1=value1 ...] + +Raw gyp values are supported - they will be tranformed into valid json. +""" +# TODO(machenbach): Remove this when gyp is deprecated. + +import json +import os +import sys + +assert len(sys.argv) > 2 + + +GYP_GN_CONVERSION = { + 'is_component_build': { + '"shared_library"': 'true', + '"static_library"': 'false', + }, + 'is_debug': { + '"Debug"': 'true', + '"Release"': 'false', + }, +} + +DEFAULT_CONVERSION ={ + '0': 'false', + '1': 'true', + '"ia32"': '"x86"', +} + +def gyp_to_gn(key, value): + return GYP_GN_CONVERSION.get(key, DEFAULT_CONVERSION).get(value, value) + +def as_json(kv): + assert '=' in kv + k, v = kv.split('=', 1) + return k, json.loads(gyp_to_gn(k, v)) + +with open(sys.argv[1], 'w') as f: + json.dump(dict(map(as_json, sys.argv[2:])), f) |