2014-05-05 11:06:26 +00:00
|
|
|
# Copyright 2014 The Chromium Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
2015-03-12 15:39:41 +00:00
|
|
|
import("//build/config/android/config.gni")
|
|
|
|
import("//build/config/arm.gni")
|
2016-06-07 13:44:01 +00:00
|
|
|
import("//build/config/dcheck_always_on.gni")
|
2017-05-12 01:35:09 +00:00
|
|
|
import("//build/config/host_byteorder.gni")
|
2017-08-09 08:11:21 +00:00
|
|
|
import("//build/config/jumbo.gni")
|
2015-03-12 15:39:41 +00:00
|
|
|
import("//build/config/mips.gni")
|
2015-09-07 15:22:42 +00:00
|
|
|
import("//build/config/sanitizers/sanitizers.gni")
|
2018-03-20 10:16:14 +00:00
|
|
|
import("//build_overrides/build.gni")
|
2015-03-12 15:39:41 +00:00
|
|
|
|
2015-11-05 17:28:57 +00:00
|
|
|
if (is_android) {
|
|
|
|
import("//build/config/android/rules.gni")
|
|
|
|
}
|
|
|
|
|
2016-05-24 08:54:42 +00:00
|
|
|
import("gni/v8.gni")
|
2015-09-22 02:28:32 +00:00
|
|
|
import("snapshot_toolchain.gni")
|
|
|
|
|
2015-11-11 01:09:06 +00:00
|
|
|
declare_args() {
|
2016-08-02 15:35:24 +00:00
|
|
|
# Print to stdout on Android.
|
|
|
|
v8_android_log_stdout = false
|
|
|
|
|
2018-06-11 11:49:00 +00:00
|
|
|
# Dynamically set an additional dependency from v8/custom_deps.
|
|
|
|
v8_custom_deps = ""
|
|
|
|
|
2018-04-06 10:24:41 +00:00
|
|
|
# Turns on all V8 debug features. Enables running V8 in a pseudo debug mode
|
|
|
|
# within a release Chrome.
|
|
|
|
v8_enable_debugging_features = is_debug
|
|
|
|
|
2017-03-01 12:36:40 +00:00
|
|
|
# Sets -DV8_ENABLE_FUTURE.
|
|
|
|
v8_enable_future = false
|
|
|
|
|
2016-04-08 14:16:47 +00:00
|
|
|
# Sets -DVERIFY_HEAP.
|
2017-01-13 17:28:51 +00:00
|
|
|
v8_enable_verify_heap = ""
|
2016-04-08 14:16:47 +00:00
|
|
|
|
2017-01-05 15:01:30 +00:00
|
|
|
# Sets -DVERIFY_PREDICTABLE
|
|
|
|
v8_enable_verify_predictable = false
|
|
|
|
|
2016-04-08 14:16:47 +00:00
|
|
|
# Enable compiler warnings when using V8_DEPRECATED apis.
|
2018-07-26 09:10:09 +00:00
|
|
|
v8_deprecation_warnings = true
|
2016-04-08 14:16:47 +00:00
|
|
|
|
|
|
|
# Enable compiler warnings when using V8_DEPRECATE_SOON apis.
|
2018-07-25 04:49:16 +00:00
|
|
|
v8_imminent_deprecation_warnings = true
|
2016-04-08 14:16:47 +00:00
|
|
|
|
2016-06-30 11:24:37 +00:00
|
|
|
# Embeds the given script into the snapshot.
|
|
|
|
v8_embed_script = ""
|
|
|
|
|
2017-09-28 14:05:22 +00:00
|
|
|
# Allows the embedder to add a custom suffix to the version string.
|
|
|
|
v8_embedder_string = ""
|
|
|
|
|
2016-04-08 14:16:47 +00:00
|
|
|
# Sets -dENABLE_DISASSEMBLER.
|
2016-07-26 12:00:17 +00:00
|
|
|
v8_enable_disassembler = ""
|
2016-04-08 14:16:47 +00:00
|
|
|
|
2017-05-23 17:54:12 +00:00
|
|
|
# Sets the number of internal fields on promise objects.
|
|
|
|
v8_promise_internal_field_count = 0
|
|
|
|
|
2016-04-08 14:16:47 +00:00
|
|
|
# Sets -dENABLE_GDB_JIT_INTERFACE.
|
2016-07-15 14:40:51 +00:00
|
|
|
v8_enable_gdbjit = ""
|
2016-04-08 14:16:47 +00:00
|
|
|
|
2017-02-13 02:54:05 +00:00
|
|
|
# Sets -dENABLE_VTUNE_JIT_INTERFACE.
|
|
|
|
v8_enable_vtunejit = false
|
|
|
|
|
2016-04-08 14:16:47 +00:00
|
|
|
# Sets -dENABLE_HANDLE_ZAPPING.
|
|
|
|
v8_enable_handle_zapping = true
|
|
|
|
|
2016-06-07 13:44:01 +00:00
|
|
|
# Enable slow dchecks.
|
|
|
|
v8_enable_slow_dchecks = false
|
|
|
|
|
2017-08-24 13:14:44 +00:00
|
|
|
# Enable fast mksnapshot runs.
|
|
|
|
v8_enable_fast_mksnapshot = false
|
|
|
|
|
2018-02-16 13:14:43 +00:00
|
|
|
# Enable embedded builtins.
|
2018-03-26 07:44:12 +00:00
|
|
|
# TODO(jgruber,v8:6666): Support ia32 and maybe MSVC.
|
2018-09-11 13:22:30 +00:00
|
|
|
v8_enable_embedded_builtins = v8_use_snapshot && v8_current_cpu != "x86" &&
|
2018-08-14 09:22:45 +00:00
|
|
|
!is_aix && (!is_win || is_clang)
|
2018-02-16 13:14:43 +00:00
|
|
|
|
2017-01-27 11:32:27 +00:00
|
|
|
# Enable code-generation-time checking of types in the CodeStubAssembler.
|
|
|
|
v8_enable_verify_csa = false
|
|
|
|
|
2018-06-05 10:45:41 +00:00
|
|
|
# Enable pointer compression (sets -dV8_COMPRESS_POINTERS).
|
|
|
|
v8_enable_pointer_compression = false
|
|
|
|
|
2016-04-08 14:16:47 +00:00
|
|
|
# Interpreted regexp engine exists as platform-independent alternative
|
|
|
|
# based where the regular expression is compiled to a bytecode.
|
|
|
|
v8_interpreted_regexp = false
|
|
|
|
|
|
|
|
# Sets -dOBJECT_PRINT.
|
2017-01-13 17:28:51 +00:00
|
|
|
v8_enable_object_print = ""
|
|
|
|
|
2017-05-16 15:52:10 +00:00
|
|
|
# Sets -dV8_TRACE_MAPS.
|
2017-01-13 17:28:51 +00:00
|
|
|
v8_enable_trace_maps = ""
|
|
|
|
|
|
|
|
# Sets -dV8_ENABLE_CHECKS.
|
|
|
|
v8_enable_v8_checks = ""
|
2016-04-08 14:16:47 +00:00
|
|
|
|
2017-05-16 15:52:10 +00:00
|
|
|
# Sets -dV8_TRACE_IGNITION.
|
|
|
|
v8_enable_trace_ignition = false
|
2017-04-11 15:32:32 +00:00
|
|
|
|
2017-10-23 11:23:45 +00:00
|
|
|
# Sets -dV8_TRACE_FEEDBACK_UPDATES.
|
|
|
|
v8_enable_trace_feedback_updates = false
|
|
|
|
|
2017-05-17 15:22:38 +00:00
|
|
|
# Sets -dV8_CONCURRENT_MARKING
|
2017-11-07 12:12:45 +00:00
|
|
|
v8_enable_concurrent_marking = true
|
2017-05-17 15:22:38 +00:00
|
|
|
|
2018-01-17 13:30:12 +00:00
|
|
|
# Enables various testing features.
|
|
|
|
v8_enable_test_features = ""
|
2017-11-30 09:20:19 +00:00
|
|
|
|
2017-05-23 09:47:29 +00:00
|
|
|
# Build the snapshot with unwinding information for perf.
|
|
|
|
# Sets -dV8_USE_SNAPSHOT_WITH_UNWINDING_INFO.
|
|
|
|
v8_perf_prof_unwinding_info = false
|
|
|
|
|
2016-04-08 14:16:47 +00:00
|
|
|
# With post mortem support enabled, metadata is embedded into libv8 that
|
|
|
|
# describes various parameters of the VM for use by debuggers. See
|
|
|
|
# tools/gen-postmortem-metadata.py for details.
|
|
|
|
v8_postmortem_support = false
|
2016-05-02 08:10:32 +00:00
|
|
|
|
2016-09-14 11:18:20 +00:00
|
|
|
# Switches off inlining in V8.
|
|
|
|
v8_no_inline = false
|
|
|
|
|
2016-11-15 14:39:59 +00:00
|
|
|
# Override OS page size when generating snapshot
|
|
|
|
v8_os_page_size = "0"
|
|
|
|
|
2016-05-02 08:10:32 +00:00
|
|
|
# Similar to vfp but on MIPS.
|
|
|
|
v8_can_use_fpu_instructions = true
|
|
|
|
|
|
|
|
# Similar to the ARM hard float ABI but on MIPS.
|
|
|
|
v8_use_mips_abi_hardfloat = true
|
2015-11-11 01:09:06 +00:00
|
|
|
|
2017-09-14 12:09:54 +00:00
|
|
|
# Controls the threshold for on-heap/off-heap Typed Arrays.
|
|
|
|
v8_typed_array_max_size_in_heap = 64
|
|
|
|
|
2017-01-25 00:20:56 +00:00
|
|
|
# List of extra files to snapshot. They will be snapshotted in order so
|
|
|
|
# if files export symbols used by later files, they should go first.
|
|
|
|
#
|
|
|
|
# This default is used by cctests. Projects using V8 will want to override.
|
2017-01-26 20:18:58 +00:00
|
|
|
v8_extra_library_files = [ "//test/cctest/test-extra.js" ]
|
2017-01-25 00:20:56 +00:00
|
|
|
|
|
|
|
# Like v8_extra_library_files but for experimental features.
|
|
|
|
#
|
|
|
|
# This default is used by cctests. Projects using V8 will want to override.
|
2017-01-26 20:18:58 +00:00
|
|
|
v8_experimental_extra_library_files =
|
|
|
|
[ "//test/cctest/test-experimental-extra.js" ]
|
|
|
|
|
2017-07-18 15:55:06 +00:00
|
|
|
v8_enable_gdbjit =
|
|
|
|
((v8_current_cpu == "x86" || v8_current_cpu == "x64") &&
|
|
|
|
(is_linux || is_mac)) || (v8_current_cpu == "ppc64" && is_linux)
|
2017-06-02 11:52:40 +00:00
|
|
|
|
|
|
|
# Temporary flag to allow embedders to update their microtasks scopes
|
|
|
|
# while rolling in a new version of V8.
|
|
|
|
v8_check_microtasks_scopes_consistency = ""
|
2017-11-27 09:36:01 +00:00
|
|
|
|
2018-01-05 10:05:05 +00:00
|
|
|
# Enable mitigations for executing untrusted code.
|
|
|
|
v8_untrusted_code_mitigations = true
|
2018-04-09 15:40:52 +00:00
|
|
|
|
|
|
|
# Enable minor mark compact.
|
|
|
|
v8_enable_minor_mc = true
|
2018-07-20 13:13:31 +00:00
|
|
|
|
|
|
|
# Check that each header can be included in isolation (requires also
|
|
|
|
# setting the "check_v8_header_includes" gclient variable to run a
|
|
|
|
# specific hook).
|
|
|
|
v8_check_header_includes = false
|
2018-09-12 11:55:04 +00:00
|
|
|
|
|
|
|
# We reuse the snapshot toolchain for building torque and other generators to
|
|
|
|
# avoid building v8_libbase on the host more than once. On mips with big
|
|
|
|
# endian, the snapshot toolchain is the target toolchain and, hence, can't be
|
|
|
|
# used.
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_generator_toolchain = v8_snapshot_toolchain
|
|
|
|
if (host_cpu == "x64" &&
|
|
|
|
(v8_current_cpu == "mips" || v8_current_cpu == "mips64")) {
|
|
|
|
v8_generator_toolchain = "//build/toolchain/linux:clang_x64"
|
2016-07-15 14:40:51 +00:00
|
|
|
}
|
|
|
|
|
2016-07-26 12:00:17 +00:00
|
|
|
# Derived defaults.
|
2017-01-13 17:28:51 +00:00
|
|
|
if (v8_enable_verify_heap == "") {
|
2018-04-06 10:24:41 +00:00
|
|
|
v8_enable_verify_heap = v8_enable_debugging_features
|
2017-01-13 17:28:51 +00:00
|
|
|
}
|
|
|
|
if (v8_enable_object_print == "") {
|
2018-04-06 10:24:41 +00:00
|
|
|
v8_enable_object_print = v8_enable_debugging_features
|
2016-07-26 12:00:17 +00:00
|
|
|
}
|
|
|
|
if (v8_enable_disassembler == "") {
|
2018-04-06 10:24:41 +00:00
|
|
|
v8_enable_disassembler = v8_enable_debugging_features
|
2017-01-13 17:28:51 +00:00
|
|
|
}
|
|
|
|
if (v8_enable_trace_maps == "") {
|
2018-04-06 10:24:41 +00:00
|
|
|
v8_enable_trace_maps = v8_enable_debugging_features
|
2017-01-13 17:28:51 +00:00
|
|
|
}
|
2018-01-17 13:30:12 +00:00
|
|
|
if (v8_enable_test_features == "") {
|
2018-04-06 10:24:41 +00:00
|
|
|
v8_enable_test_features = v8_enable_debugging_features || dcheck_always_on
|
2017-11-30 09:20:19 +00:00
|
|
|
}
|
2017-01-13 17:28:51 +00:00
|
|
|
if (v8_enable_v8_checks == "") {
|
2018-04-06 10:24:41 +00:00
|
|
|
v8_enable_v8_checks = v8_enable_debugging_features
|
2016-07-26 12:00:17 +00:00
|
|
|
}
|
2017-06-02 11:52:40 +00:00
|
|
|
if (v8_check_microtasks_scopes_consistency == "") {
|
2018-04-06 10:24:41 +00:00
|
|
|
v8_check_microtasks_scopes_consistency =
|
|
|
|
v8_enable_debugging_features || dcheck_always_on
|
2017-06-02 11:52:40 +00:00
|
|
|
}
|
2016-07-26 12:00:17 +00:00
|
|
|
|
2018-06-13 12:07:37 +00:00
|
|
|
assert(!v8_enable_embedded_builtins || v8_use_snapshot,
|
|
|
|
"Embedded builtins only work with snapshots")
|
2018-08-20 12:01:04 +00:00
|
|
|
assert(
|
|
|
|
v8_current_cpu != "x86" || !v8_enable_embedded_builtins ||
|
|
|
|
!v8_untrusted_code_mitigations,
|
|
|
|
"Embedded builtins on ia32 and untrusted code mitigations are incompatible")
|
2018-06-13 12:07:37 +00:00
|
|
|
|
2016-09-13 07:32:40 +00:00
|
|
|
# Specifies if the target build is a simulator build. Comparing target cpu
|
|
|
|
# with v8 target cpu to not affect simulator builds for making cross-compile
|
|
|
|
# snapshots.
|
|
|
|
is_target_simulator = target_cpu != v8_target_cpu
|
|
|
|
|
2014-06-03 06:50:46 +00:00
|
|
|
v8_random_seed = "314159265"
|
2016-05-06 07:30:52 +00:00
|
|
|
v8_toolset_for_shell = "host"
|
2014-05-05 11:06:26 +00:00
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
# Configurations
|
|
|
|
#
|
|
|
|
config("internal_config") {
|
2014-09-09 08:57:29 +00:00
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
2014-05-05 11:06:26 +00:00
|
|
|
|
2018-04-16 09:24:22 +00:00
|
|
|
include_dirs = [
|
|
|
|
".",
|
|
|
|
"$target_gen_dir",
|
|
|
|
]
|
2014-05-05 11:06:26 +00:00
|
|
|
|
2018-06-01 14:06:32 +00:00
|
|
|
defines = []
|
|
|
|
|
2015-06-09 08:36:09 +00:00
|
|
|
if (is_component_build) {
|
2018-06-01 14:06:32 +00:00
|
|
|
defines += [ "BUILDING_V8_SHARED" ]
|
2014-06-05 08:45:24 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-07-03 08:50:52 +00:00
|
|
|
config("internal_config_base") {
|
2014-09-09 08:57:29 +00:00
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
2014-07-03 08:50:52 +00:00
|
|
|
|
2018-04-16 09:24:22 +00:00
|
|
|
include_dirs = [
|
|
|
|
".",
|
|
|
|
"$target_gen_dir",
|
|
|
|
]
|
2014-07-03 08:50:52 +00:00
|
|
|
}
|
|
|
|
|
2016-02-29 11:02:52 +00:00
|
|
|
# This config should be applied to code using the libplatform.
|
|
|
|
config("libplatform_config") {
|
|
|
|
include_dirs = [ "include" ]
|
2016-10-10 08:51:48 +00:00
|
|
|
if (is_component_build) {
|
|
|
|
defines = [ "USING_V8_PLATFORM_SHARED" ]
|
|
|
|
}
|
2016-02-29 11:02:52 +00:00
|
|
|
}
|
|
|
|
|
2016-10-07 07:56:43 +00:00
|
|
|
# This config should be applied to code using the libbase.
|
|
|
|
config("libbase_config") {
|
|
|
|
if (is_component_build) {
|
|
|
|
defines = [ "USING_V8_BASE_SHARED" ]
|
|
|
|
}
|
|
|
|
libs = []
|
|
|
|
if (is_android && current_toolchain != host_toolchain) {
|
|
|
|
libs += [ "log" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-05-26 02:13:58 +00:00
|
|
|
# This config should be applied to code using the libsampler.
|
|
|
|
config("libsampler_config") {
|
|
|
|
include_dirs = [ "include" ]
|
|
|
|
}
|
|
|
|
|
2014-06-05 08:45:24 +00:00
|
|
|
# This config should only be applied to code using V8 and not any V8 code
|
|
|
|
# itself.
|
|
|
|
config("external_config") {
|
2017-09-08 10:24:58 +00:00
|
|
|
defines = []
|
2014-06-05 08:45:24 +00:00
|
|
|
if (is_component_build) {
|
2017-09-08 10:24:58 +00:00
|
|
|
defines += [ "USING_V8_SHARED" ]
|
|
|
|
}
|
|
|
|
if (v8_enable_v8_checks) {
|
|
|
|
defines += [ "V8_ENABLE_CHECKS" ] # Used in "include/v8.h".
|
2014-05-05 11:06:26 +00:00
|
|
|
}
|
2018-07-26 09:10:09 +00:00
|
|
|
if (v8_deprecation_warnings) {
|
|
|
|
defines += [ "V8_DEPRECATION_WARNINGS" ]
|
|
|
|
}
|
|
|
|
if (v8_imminent_deprecation_warnings) {
|
|
|
|
defines += [ "V8_IMMINENT_DEPRECATION_WARNINGS" ]
|
|
|
|
}
|
2017-03-31 08:24:34 +00:00
|
|
|
include_dirs = [
|
|
|
|
"include",
|
|
|
|
"$target_gen_dir/include",
|
|
|
|
]
|
2014-05-05 11:06:26 +00:00
|
|
|
}
|
|
|
|
|
2015-10-21 00:37:28 +00:00
|
|
|
# This config should only be applied to code that needs to be explicitly
|
|
|
|
# aware of whether we are using startup data or not.
|
|
|
|
config("external_startup_data") {
|
|
|
|
if (v8_use_external_startup_data) {
|
|
|
|
defines = [ "V8_USE_EXTERNAL_STARTUP_DATA" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-06 15:01:24 +00:00
|
|
|
config("features") {
|
2014-09-09 08:57:29 +00:00
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
2014-05-06 15:01:24 +00:00
|
|
|
|
|
|
|
defines = []
|
|
|
|
|
2017-09-28 14:05:22 +00:00
|
|
|
if (v8_embedder_string != "") {
|
|
|
|
defines += [ "V8_EMBEDDER_STRING=\"$v8_embedder_string\"" ]
|
|
|
|
}
|
2016-04-08 14:16:47 +00:00
|
|
|
if (v8_enable_disassembler) {
|
2015-01-08 13:21:52 +00:00
|
|
|
defines += [ "ENABLE_DISASSEMBLER" ]
|
2014-05-06 15:01:24 +00:00
|
|
|
}
|
2017-05-23 17:54:12 +00:00
|
|
|
if (v8_promise_internal_field_count != 0) {
|
|
|
|
defines +=
|
|
|
|
[ "V8_PROMISE_INTERNAL_FIELD_COUNT=${v8_promise_internal_field_count}" ]
|
|
|
|
}
|
2017-09-14 12:09:54 +00:00
|
|
|
defines +=
|
|
|
|
[ "V8_TYPED_ARRAY_MAX_SIZE_IN_HEAP=${v8_typed_array_max_size_in_heap}" ]
|
2017-03-01 12:36:40 +00:00
|
|
|
if (v8_enable_future) {
|
|
|
|
defines += [ "V8_ENABLE_FUTURE" ]
|
|
|
|
}
|
2016-04-08 14:16:47 +00:00
|
|
|
if (v8_enable_gdbjit) {
|
2015-01-08 13:21:52 +00:00
|
|
|
defines += [ "ENABLE_GDB_JIT_INTERFACE" ]
|
2014-05-06 15:01:24 +00:00
|
|
|
}
|
2017-02-13 02:54:05 +00:00
|
|
|
if (v8_enable_vtunejit) {
|
|
|
|
defines += [ "ENABLE_VTUNE_JIT_INTERFACE" ]
|
|
|
|
}
|
2018-04-09 15:40:52 +00:00
|
|
|
if (v8_enable_minor_mc) {
|
|
|
|
defines += [ "ENABLE_MINOR_MC" ]
|
|
|
|
}
|
2018-06-05 10:45:41 +00:00
|
|
|
if (v8_enable_pointer_compression) {
|
|
|
|
defines += [ "V8_COMPRESS_POINTERS" ]
|
|
|
|
}
|
2017-01-13 17:28:51 +00:00
|
|
|
if (v8_enable_object_print) {
|
2015-01-08 13:21:52 +00:00
|
|
|
defines += [ "OBJECT_PRINT" ]
|
2014-05-06 15:01:24 +00:00
|
|
|
}
|
2016-04-08 14:16:47 +00:00
|
|
|
if (v8_enable_verify_heap) {
|
2015-01-08 13:21:52 +00:00
|
|
|
defines += [ "VERIFY_HEAP" ]
|
2014-05-06 15:01:24 +00:00
|
|
|
}
|
2017-01-05 15:01:30 +00:00
|
|
|
if (v8_enable_verify_predictable) {
|
|
|
|
defines += [ "VERIFY_PREDICTABLE" ]
|
|
|
|
}
|
2017-01-13 17:28:51 +00:00
|
|
|
if (v8_enable_trace_maps) {
|
2017-05-16 15:52:10 +00:00
|
|
|
defines += [ "V8_TRACE_MAPS" ]
|
|
|
|
}
|
|
|
|
if (v8_enable_trace_ignition) {
|
|
|
|
defines += [ "V8_TRACE_IGNITION" ]
|
2017-01-13 17:28:51 +00:00
|
|
|
}
|
2017-10-23 11:23:45 +00:00
|
|
|
if (v8_enable_trace_feedback_updates) {
|
|
|
|
defines += [ "V8_TRACE_FEEDBACK_UPDATES" ]
|
|
|
|
}
|
2018-01-17 13:30:12 +00:00
|
|
|
if (v8_enable_test_features) {
|
|
|
|
defines += [ "V8_ENABLE_ALLOCATION_TIMEOUT" ]
|
2017-11-30 18:00:08 +00:00
|
|
|
defines += [ "V8_ENABLE_FORCE_SLOW_PATH" ]
|
2017-11-30 09:20:19 +00:00
|
|
|
}
|
2017-01-13 17:28:51 +00:00
|
|
|
if (v8_enable_v8_checks) {
|
|
|
|
defines += [ "V8_ENABLE_CHECKS" ]
|
|
|
|
}
|
2016-04-08 14:16:47 +00:00
|
|
|
if (v8_interpreted_regexp) {
|
2015-01-08 13:21:52 +00:00
|
|
|
defines += [ "V8_INTERPRETED_REGEXP" ]
|
2014-05-06 15:01:24 +00:00
|
|
|
}
|
2016-04-08 14:16:47 +00:00
|
|
|
if (v8_deprecation_warnings) {
|
2015-01-08 13:21:52 +00:00
|
|
|
defines += [ "V8_DEPRECATION_WARNINGS" ]
|
2014-05-06 15:01:24 +00:00
|
|
|
}
|
2016-04-08 14:16:47 +00:00
|
|
|
if (v8_imminent_deprecation_warnings) {
|
|
|
|
defines += [ "V8_IMMINENT_DEPRECATION_WARNINGS" ]
|
|
|
|
}
|
|
|
|
if (v8_enable_i18n_support) {
|
2017-04-21 08:35:12 +00:00
|
|
|
defines += [ "V8_INTL_SUPPORT" ]
|
2014-05-06 15:01:24 +00:00
|
|
|
}
|
2016-04-08 14:16:47 +00:00
|
|
|
if (v8_enable_handle_zapping) {
|
2015-01-08 13:21:52 +00:00
|
|
|
defines += [ "ENABLE_HANDLE_ZAPPING" ]
|
2014-05-06 15:01:24 +00:00
|
|
|
}
|
2017-03-14 12:31:03 +00:00
|
|
|
if (v8_use_snapshot) {
|
|
|
|
defines += [ "V8_USE_SNAPSHOT" ]
|
2017-05-23 09:47:29 +00:00
|
|
|
if (v8_perf_prof_unwinding_info) {
|
|
|
|
defines += [ "V8_USE_SNAPSHOT_WITH_UNWINDING_INFO" ]
|
|
|
|
}
|
2017-03-14 12:31:03 +00:00
|
|
|
}
|
2016-04-08 14:16:47 +00:00
|
|
|
if (v8_use_external_startup_data) {
|
2015-01-08 13:21:52 +00:00
|
|
|
defines += [ "V8_USE_EXTERNAL_STARTUP_DATA" ]
|
2014-06-23 13:52:17 +00:00
|
|
|
}
|
2017-05-17 15:22:38 +00:00
|
|
|
if (v8_enable_concurrent_marking) {
|
|
|
|
defines += [ "V8_CONCURRENT_MARKING" ]
|
|
|
|
}
|
2017-06-02 11:52:40 +00:00
|
|
|
if (v8_check_microtasks_scopes_consistency) {
|
|
|
|
defines += [ "V8_CHECK_MICROTASKS_SCOPES_CONSISTENCY" ]
|
|
|
|
}
|
2018-06-13 12:07:37 +00:00
|
|
|
if (v8_enable_embedded_builtins) {
|
2018-08-31 15:54:28 +00:00
|
|
|
defines += [
|
|
|
|
"V8_EMBEDDED_BUILTINS",
|
|
|
|
"V8_EMBEDDED_BYTECODE_HANDLERS",
|
|
|
|
]
|
2018-08-20 18:58:38 +00:00
|
|
|
}
|
2018-03-20 10:16:14 +00:00
|
|
|
if (v8_use_multi_snapshots) {
|
|
|
|
defines += [ "V8_MULTI_SNAPSHOTS" ]
|
|
|
|
}
|
2014-05-06 15:01:24 +00:00
|
|
|
}
|
|
|
|
|
2014-05-26 07:29:39 +00:00
|
|
|
config("toolchain") {
|
2014-09-09 08:57:29 +00:00
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
2014-05-26 07:29:39 +00:00
|
|
|
|
|
|
|
defines = []
|
|
|
|
cflags = []
|
2016-06-20 18:22:21 +00:00
|
|
|
ldflags = []
|
2014-05-26 07:29:39 +00:00
|
|
|
|
2016-07-15 22:32:55 +00:00
|
|
|
if (v8_current_cpu == "arm") {
|
2015-01-20 14:33:58 +00:00
|
|
|
defines += [ "V8_TARGET_ARCH_ARM" ]
|
2016-09-01 13:31:32 +00:00
|
|
|
if (arm_version >= 7) {
|
2016-05-02 08:10:32 +00:00
|
|
|
defines += [ "CAN_USE_ARMV7_INSTRUCTIONS" ]
|
|
|
|
}
|
|
|
|
if (arm_fpu == "vfpv3-d16") {
|
|
|
|
defines += [ "CAN_USE_VFP3_INSTRUCTIONS" ]
|
|
|
|
} else if (arm_fpu == "vfpv3") {
|
2015-01-20 14:33:58 +00:00
|
|
|
defines += [
|
|
|
|
"CAN_USE_VFP3_INSTRUCTIONS",
|
|
|
|
"CAN_USE_VFP32DREGS",
|
2016-05-02 08:10:32 +00:00
|
|
|
]
|
|
|
|
} else if (arm_fpu == "neon") {
|
|
|
|
defines += [
|
|
|
|
"CAN_USE_VFP3_INSTRUCTIONS",
|
|
|
|
"CAN_USE_VFP32DREGS",
|
|
|
|
"CAN_USE_NEON",
|
2015-01-20 14:33:58 +00:00
|
|
|
]
|
|
|
|
}
|
2016-05-10 10:11:06 +00:00
|
|
|
|
2015-01-20 14:33:58 +00:00
|
|
|
# TODO(jochen): Add support for arm_test_noprobe.
|
2016-05-02 08:10:32 +00:00
|
|
|
|
|
|
|
if (current_cpu != "arm") {
|
|
|
|
# These defines ares used for the ARM simulator.
|
|
|
|
if (arm_float_abi == "hard") {
|
|
|
|
defines += [ "USE_EABI_HARDFLOAT=1" ]
|
|
|
|
} else if (arm_float_abi == "softfp") {
|
|
|
|
defines += [ "USE_EABI_HARDFLOAT=0" ]
|
|
|
|
}
|
|
|
|
}
|
2015-01-20 14:33:58 +00:00
|
|
|
}
|
2016-07-15 22:32:55 +00:00
|
|
|
if (v8_current_cpu == "arm64") {
|
2015-01-08 13:21:52 +00:00
|
|
|
defines += [ "V8_TARGET_ARCH_ARM64" ]
|
2014-05-26 07:29:39 +00:00
|
|
|
}
|
2016-05-10 10:11:06 +00:00
|
|
|
|
2016-09-13 07:32:40 +00:00
|
|
|
# Mips64el/mipsel simulators.
|
|
|
|
if (is_target_simulator &&
|
|
|
|
(v8_current_cpu == "mipsel" || v8_current_cpu == "mips64el")) {
|
|
|
|
defines += [ "_MIPS_TARGET_SIMULATOR" ]
|
|
|
|
}
|
|
|
|
|
2017-06-02 15:02:18 +00:00
|
|
|
if (v8_current_cpu == "mipsel" || v8_current_cpu == "mips") {
|
2015-03-17 23:13:00 +00:00
|
|
|
defines += [ "V8_TARGET_ARCH_MIPS" ]
|
2016-05-02 08:10:32 +00:00
|
|
|
if (v8_can_use_fpu_instructions) {
|
|
|
|
defines += [ "CAN_USE_FPU_INSTRUCTIONS" ]
|
|
|
|
}
|
|
|
|
if (v8_use_mips_abi_hardfloat) {
|
|
|
|
defines += [
|
|
|
|
"__mips_hard_float=1",
|
|
|
|
"CAN_USE_FPU_INSTRUCTIONS",
|
|
|
|
]
|
|
|
|
} else {
|
|
|
|
defines += [ "__mips_soft_float=1" ]
|
|
|
|
}
|
|
|
|
if (mips_arch_variant == "r6") {
|
|
|
|
defines += [
|
|
|
|
"_MIPS_ARCH_MIPS32R6",
|
|
|
|
"FPU_MODE_FP64",
|
|
|
|
]
|
2018-01-29 10:24:31 +00:00
|
|
|
if (mips_use_msa) {
|
|
|
|
defines += [ "_MIPS_MSA" ]
|
|
|
|
}
|
2016-05-02 08:10:32 +00:00
|
|
|
} else if (mips_arch_variant == "r2") {
|
|
|
|
defines += [ "_MIPS_ARCH_MIPS32R2" ]
|
|
|
|
if (mips_fpu_mode == "fp64") {
|
|
|
|
defines += [ "FPU_MODE_FP64" ]
|
|
|
|
} else if (mips_fpu_mode == "fpxx") {
|
|
|
|
defines += [ "FPU_MODE_FPXX" ]
|
|
|
|
} else if (mips_fpu_mode == "fp32") {
|
|
|
|
defines += [ "FPU_MODE_FP32" ]
|
|
|
|
}
|
|
|
|
} else if (mips_arch_variant == "r1") {
|
|
|
|
defines += [ "FPU_MODE_FP32" ]
|
|
|
|
}
|
2016-05-10 10:11:06 +00:00
|
|
|
|
2016-05-02 08:10:32 +00:00
|
|
|
# TODO(jochen): Add support for mips_arch_variant rx and loongson.
|
2015-03-17 23:13:00 +00:00
|
|
|
}
|
2016-05-10 10:11:06 +00:00
|
|
|
|
2017-06-02 15:02:18 +00:00
|
|
|
if (v8_current_cpu == "mips64el" || v8_current_cpu == "mips64") {
|
2015-03-17 23:13:00 +00:00
|
|
|
defines += [ "V8_TARGET_ARCH_MIPS64" ]
|
2016-05-02 08:10:32 +00:00
|
|
|
if (v8_can_use_fpu_instructions) {
|
|
|
|
defines += [ "CAN_USE_FPU_INSTRUCTIONS" ]
|
|
|
|
}
|
2016-05-10 10:11:06 +00:00
|
|
|
|
2017-06-02 15:02:18 +00:00
|
|
|
if (host_byteorder == "little") {
|
|
|
|
defines += [ "V8_TARGET_ARCH_MIPS64_LE" ]
|
|
|
|
} else if (host_byteorder == "big") {
|
|
|
|
defines += [ "V8_TARGET_ARCH_MIPS64_BE" ]
|
|
|
|
}
|
2016-05-02 08:10:32 +00:00
|
|
|
if (v8_use_mips_abi_hardfloat) {
|
|
|
|
defines += [
|
|
|
|
"__mips_hard_float=1",
|
|
|
|
"CAN_USE_FPU_INSTRUCTIONS",
|
|
|
|
]
|
|
|
|
} else {
|
|
|
|
defines += [ "__mips_soft_float=1" ]
|
|
|
|
}
|
|
|
|
if (mips_arch_variant == "r6") {
|
|
|
|
defines += [ "_MIPS_ARCH_MIPS64R6" ]
|
2018-01-29 10:24:31 +00:00
|
|
|
if (mips_use_msa) {
|
|
|
|
defines += [ "_MIPS_MSA" ]
|
|
|
|
}
|
2016-05-02 08:10:32 +00:00
|
|
|
} else if (mips_arch_variant == "r2") {
|
|
|
|
defines += [ "_MIPS_ARCH_MIPS64R2" ]
|
|
|
|
}
|
2015-03-17 23:13:00 +00:00
|
|
|
}
|
2016-07-15 22:32:55 +00:00
|
|
|
if (v8_current_cpu == "s390" || v8_current_cpu == "s390x") {
|
2016-01-14 17:16:10 +00:00
|
|
|
defines += [ "V8_TARGET_ARCH_S390" ]
|
2016-07-15 22:32:55 +00:00
|
|
|
if (v8_current_cpu == "s390x") {
|
2016-06-09 14:19:36 +00:00
|
|
|
defines += [ "V8_TARGET_ARCH_S390X" ]
|
|
|
|
}
|
2017-05-12 01:35:09 +00:00
|
|
|
if (host_byteorder == "little") {
|
2016-06-09 14:19:36 +00:00
|
|
|
defines += [ "V8_TARGET_ARCH_S390_LE_SIM" ]
|
2017-03-13 15:05:51 +00:00
|
|
|
} else {
|
|
|
|
cflags += [ "-march=z196" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (v8_current_cpu == "ppc" || v8_current_cpu == "ppc64") {
|
|
|
|
defines += [ "V8_TARGET_ARCH_PPC" ]
|
|
|
|
if (v8_current_cpu == "ppc64") {
|
|
|
|
defines += [ "V8_TARGET_ARCH_PPC64" ]
|
|
|
|
}
|
2017-05-12 01:35:09 +00:00
|
|
|
if (host_byteorder == "little") {
|
2017-03-13 15:05:51 +00:00
|
|
|
defines += [ "V8_TARGET_ARCH_PPC_LE" ]
|
2017-05-12 01:35:09 +00:00
|
|
|
} else if (host_byteorder == "big") {
|
2017-03-13 15:05:51 +00:00
|
|
|
defines += [ "V8_TARGET_ARCH_PPC_BE" ]
|
|
|
|
if (current_os == "aix") {
|
|
|
|
cflags += [
|
|
|
|
# Work around AIX ceil, trunc and round oddities.
|
|
|
|
"-mcpu=power5+",
|
|
|
|
"-mfprnd",
|
|
|
|
|
|
|
|
# Work around AIX assembler popcntb bug.
|
|
|
|
"-mno-popcntb",
|
|
|
|
]
|
|
|
|
}
|
2016-06-09 14:19:36 +00:00
|
|
|
}
|
2016-01-14 17:16:10 +00:00
|
|
|
}
|
2017-05-12 01:35:09 +00:00
|
|
|
|
2016-07-15 22:32:55 +00:00
|
|
|
if (v8_current_cpu == "x86") {
|
2015-01-08 13:21:52 +00:00
|
|
|
defines += [ "V8_TARGET_ARCH_IA32" ]
|
2016-06-20 18:22:21 +00:00
|
|
|
if (is_win) {
|
|
|
|
# Ensure no surprising artifacts from 80bit double math with x86.
|
|
|
|
cflags += [ "/arch:SSE2" ]
|
|
|
|
}
|
2014-05-26 07:29:39 +00:00
|
|
|
}
|
2016-07-15 22:32:55 +00:00
|
|
|
if (v8_current_cpu == "x64") {
|
2015-01-08 13:21:52 +00:00
|
|
|
defines += [ "V8_TARGET_ARCH_X64" ]
|
2016-06-20 18:22:21 +00:00
|
|
|
if (is_win) {
|
|
|
|
# Increase the initial stack size. The default is 1MB, this is 2MB. This
|
|
|
|
# applies only to executables and shared libraries produced by V8 since
|
|
|
|
# ldflags are not pushed to dependants.
|
|
|
|
ldflags += [ "/STACK:2097152" ]
|
|
|
|
}
|
2014-05-26 07:29:39 +00:00
|
|
|
}
|
2016-08-02 15:35:24 +00:00
|
|
|
if (is_android && v8_android_log_stdout) {
|
|
|
|
defines += [ "V8_ANDROID_LOG_STDOUT" ]
|
|
|
|
}
|
2016-04-29 12:24:58 +00:00
|
|
|
|
2016-06-20 18:22:21 +00:00
|
|
|
# TODO(jochen): Support v8_enable_prof on Windows.
|
2014-05-26 07:29:39 +00:00
|
|
|
# TODO(jochen): Add support for compiling with simulators.
|
|
|
|
|
2018-04-06 10:24:41 +00:00
|
|
|
if (v8_enable_debugging_features) {
|
2016-07-04 07:52:08 +00:00
|
|
|
if (is_linux && v8_enable_backtrace) {
|
|
|
|
ldflags += [ "-rdynamic" ]
|
|
|
|
}
|
|
|
|
|
2017-01-13 17:28:51 +00:00
|
|
|
defines += [ "DEBUG" ]
|
2016-06-07 13:44:01 +00:00
|
|
|
if (v8_enable_slow_dchecks) {
|
2016-04-12 13:47:44 +00:00
|
|
|
defines += [ "ENABLE_SLOW_DCHECKS" ]
|
|
|
|
}
|
2016-06-07 13:44:01 +00:00
|
|
|
} else if (dcheck_always_on) {
|
|
|
|
defines += [ "DEBUG" ]
|
2014-05-26 07:29:39 +00:00
|
|
|
}
|
2016-09-14 11:18:20 +00:00
|
|
|
|
2017-01-27 11:32:27 +00:00
|
|
|
if (v8_enable_verify_csa) {
|
|
|
|
defines += [ "ENABLE_VERIFY_CSA" ]
|
|
|
|
}
|
|
|
|
|
2018-01-05 10:05:05 +00:00
|
|
|
if (!v8_untrusted_code_mitigations) {
|
|
|
|
defines += [ "DISABLE_UNTRUSTED_CODE_MITIGATIONS" ]
|
|
|
|
}
|
|
|
|
|
2016-09-14 11:18:20 +00:00
|
|
|
if (v8_no_inline) {
|
|
|
|
cflags += [
|
|
|
|
"-fno-inline-functions",
|
|
|
|
"-fno-inline",
|
|
|
|
]
|
|
|
|
}
|
2016-10-12 17:49:44 +00:00
|
|
|
|
|
|
|
if (is_clang) {
|
|
|
|
cflags += [
|
2018-03-13 13:55:24 +00:00
|
|
|
"-Wmissing-field-initializers",
|
|
|
|
|
2016-10-12 17:49:44 +00:00
|
|
|
# TODO(hans): Remove once http://crbug.com/428099 is resolved.
|
|
|
|
"-Winconsistent-missing-override",
|
|
|
|
]
|
2017-12-01 11:00:00 +00:00
|
|
|
|
|
|
|
if (v8_current_cpu != "mips" && v8_current_cpu != "mipsel") {
|
|
|
|
# We exclude MIPS because the IsMipsArchVariant macro causes trouble.
|
|
|
|
cflags += [ "-Wunreachable-code" ]
|
|
|
|
}
|
|
|
|
|
2017-04-11 09:05:09 +00:00
|
|
|
if (v8_current_cpu == "x64" || v8_current_cpu == "arm64" ||
|
|
|
|
v8_current_cpu == "mips64el") {
|
|
|
|
cflags += [ "-Wshorten-64-to-32" ]
|
|
|
|
}
|
2016-10-12 17:49:44 +00:00
|
|
|
}
|
2017-03-17 15:18:18 +00:00
|
|
|
|
|
|
|
if (is_win) {
|
|
|
|
cflags += [
|
|
|
|
"/wd4245", # Conversion with signed/unsigned mismatch.
|
|
|
|
"/wd4267", # Conversion with possible loss of data.
|
|
|
|
"/wd4324", # Padding structure due to alignment.
|
|
|
|
"/wd4701", # Potentially uninitialized local variable.
|
|
|
|
"/wd4702", # Unreachable code.
|
|
|
|
"/wd4703", # Potentially uninitialized local pointer variable.
|
|
|
|
"/wd4709", # Comma operator within array index expr (bugged).
|
2017-03-20 21:48:26 +00:00
|
|
|
"/wd4714", # Function marked forceinline not inlined.
|
2018-04-20 13:08:41 +00:00
|
|
|
|
|
|
|
# MSVC assumes that control can get past an exhaustive switch and then
|
|
|
|
# warns if there's no return there (see https://crbug.com/v8/7658)
|
|
|
|
"/wd4715", # Not all control paths return a value.
|
|
|
|
|
2017-03-17 15:18:18 +00:00
|
|
|
"/wd4718", # Recursive call has no side-effect.
|
2018-05-18 10:03:21 +00:00
|
|
|
"/wd4723", # https://crbug.com/v8/7771
|
|
|
|
"/wd4724", # https://crbug.com/v8/7771
|
2017-03-17 15:18:18 +00:00
|
|
|
"/wd4800", # Forcing value to bool.
|
|
|
|
]
|
|
|
|
}
|
2017-05-04 12:59:38 +00:00
|
|
|
|
|
|
|
if (!is_clang && !is_win) {
|
|
|
|
cflags += [
|
|
|
|
# Disable gcc warnings for optimizations based on the assumption that
|
|
|
|
# signed overflow does not occur. Generates false positives (see
|
|
|
|
# http://crbug.com/v8/6341).
|
|
|
|
"-Wno-strict-overflow",
|
2018-04-20 13:08:41 +00:00
|
|
|
|
|
|
|
# GCC assumes that control can get past an exhaustive switch and then
|
|
|
|
# warns if there's no return there (see https://crbug.com/v8/7658).
|
|
|
|
"-Wno-return-type",
|
2017-05-04 12:59:38 +00:00
|
|
|
]
|
|
|
|
}
|
2014-05-26 07:29:39 +00:00
|
|
|
}
|
|
|
|
|
2017-06-26 11:06:03 +00:00
|
|
|
# Configs for code coverage with gcov. Separate configs for cflags and ldflags
|
|
|
|
# to selectively influde cflags in non-test targets only.
|
2017-06-27 11:49:13 +00:00
|
|
|
config("v8_gcov_coverage_cflags") {
|
|
|
|
cflags = [
|
|
|
|
"-fprofile-arcs",
|
|
|
|
"-ftest-coverage",
|
|
|
|
]
|
2017-06-26 11:06:03 +00:00
|
|
|
}
|
|
|
|
|
2017-06-27 11:49:13 +00:00
|
|
|
config("v8_gcov_coverage_ldflags") {
|
|
|
|
ldflags = [ "-fprofile-arcs" ]
|
2017-06-26 11:06:03 +00:00
|
|
|
}
|
|
|
|
|
2014-05-05 11:06:26 +00:00
|
|
|
###############################################################################
|
|
|
|
# Actions
|
|
|
|
#
|
|
|
|
|
|
|
|
action("js2c") {
|
2014-09-09 08:57:29 +00:00
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
2014-05-06 15:01:24 +00:00
|
|
|
|
2014-05-05 11:06:26 +00:00
|
|
|
script = "tools/js2c.py"
|
|
|
|
|
|
|
|
# The script depends on this other script, this rule causes a rebuild if it
|
|
|
|
# changes.
|
2016-03-31 07:30:16 +00:00
|
|
|
inputs = [
|
|
|
|
"tools/jsmin.py",
|
|
|
|
]
|
2014-05-05 11:06:26 +00:00
|
|
|
|
2016-03-31 07:30:16 +00:00
|
|
|
# NOSORT
|
2014-05-05 11:06:26 +00:00
|
|
|
sources = [
|
2015-10-13 09:38:08 +00:00
|
|
|
"src/js/macros.py",
|
2015-05-15 15:09:46 +00:00
|
|
|
"src/messages.h",
|
2015-10-13 09:38:08 +00:00
|
|
|
"src/js/prologue.js",
|
|
|
|
"src/js/array.js",
|
|
|
|
"src/js/typedarray.js",
|
2014-05-05 11:06:26 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
outputs = [
|
2015-01-08 13:21:52 +00:00
|
|
|
"$target_gen_dir/libraries.cc",
|
2014-05-05 11:06:26 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if (v8_enable_i18n_support) {
|
2017-04-21 08:35:12 +00:00
|
|
|
sources += [ "src/js/intl.js" ]
|
2014-05-05 11:06:26 +00:00
|
|
|
}
|
|
|
|
|
2014-06-23 13:52:17 +00:00
|
|
|
args = [
|
2015-01-08 13:21:52 +00:00
|
|
|
rebase_path("$target_gen_dir/libraries.cc", root_build_dir),
|
|
|
|
"CORE",
|
|
|
|
] + rebase_path(sources, root_build_dir)
|
2014-06-23 13:52:17 +00:00
|
|
|
|
|
|
|
if (v8_use_external_startup_data) {
|
|
|
|
outputs += [ "$target_gen_dir/libraries.bin" ]
|
|
|
|
args += [
|
|
|
|
"--startup_blob",
|
2015-01-08 13:21:52 +00:00
|
|
|
rebase_path("$target_gen_dir/libraries.bin", root_build_dir),
|
2014-06-23 13:52:17 +00:00
|
|
|
]
|
|
|
|
}
|
2014-05-05 11:06:26 +00:00
|
|
|
}
|
|
|
|
|
2015-05-08 08:44:47 +00:00
|
|
|
action("js2c_extras") {
|
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
|
|
|
|
|
|
|
script = "tools/js2c.py"
|
|
|
|
|
|
|
|
# The script depends on this other script, this rule causes a rebuild if it
|
|
|
|
# changes.
|
2016-03-31 07:30:16 +00:00
|
|
|
inputs = [
|
|
|
|
"tools/jsmin.py",
|
|
|
|
]
|
2015-05-08 08:44:47 +00:00
|
|
|
|
|
|
|
sources = v8_extra_library_files
|
|
|
|
|
|
|
|
outputs = [
|
|
|
|
"$target_gen_dir/extras-libraries.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
args = [
|
2016-03-31 07:30:16 +00:00
|
|
|
rebase_path("$target_gen_dir/extras-libraries.cc", root_build_dir),
|
2015-05-08 08:44:47 +00:00
|
|
|
"EXTRAS",
|
|
|
|
] + rebase_path(sources, root_build_dir)
|
|
|
|
|
|
|
|
if (v8_use_external_startup_data) {
|
|
|
|
outputs += [ "$target_gen_dir/libraries_extras.bin" ]
|
|
|
|
args += [
|
|
|
|
"--startup_blob",
|
|
|
|
rebase_path("$target_gen_dir/libraries_extras.bin", root_build_dir),
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-20 00:01:07 +00:00
|
|
|
action("js2c_experimental_extras") {
|
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
|
|
|
|
|
|
|
script = "tools/js2c.py"
|
|
|
|
|
|
|
|
# The script depends on this other script, this rule causes a rebuild if it
|
|
|
|
# changes.
|
2016-03-31 07:30:16 +00:00
|
|
|
inputs = [
|
|
|
|
"tools/jsmin.py",
|
|
|
|
]
|
2015-08-20 00:01:07 +00:00
|
|
|
|
|
|
|
sources = v8_experimental_extra_library_files
|
|
|
|
|
|
|
|
outputs = [
|
|
|
|
"$target_gen_dir/experimental-extras-libraries.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
args = [
|
|
|
|
rebase_path("$target_gen_dir/experimental-extras-libraries.cc",
|
|
|
|
root_build_dir),
|
|
|
|
"EXPERIMENTAL_EXTRAS",
|
|
|
|
] + rebase_path(sources, root_build_dir)
|
|
|
|
|
|
|
|
if (v8_use_external_startup_data) {
|
|
|
|
outputs += [ "$target_gen_dir/libraries_experimental_extras.bin" ]
|
|
|
|
args += [
|
|
|
|
"--startup_blob",
|
2016-03-31 07:30:16 +00:00
|
|
|
rebase_path("$target_gen_dir/libraries_experimental_extras.bin",
|
|
|
|
root_build_dir),
|
2015-08-20 00:01:07 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-01-20 11:31:44 +00:00
|
|
|
action("d8_js2c") {
|
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
|
|
|
|
|
|
|
script = "tools/js2c.py"
|
|
|
|
|
2016-03-31 07:30:16 +00:00
|
|
|
# NOSORT
|
2015-01-20 11:31:44 +00:00
|
|
|
inputs = [
|
|
|
|
"src/d8.js",
|
2015-10-13 09:38:08 +00:00
|
|
|
"src/js/macros.py",
|
2015-01-20 11:31:44 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
outputs = [
|
|
|
|
"$target_gen_dir/d8-js.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
args = rebase_path(outputs, root_build_dir) + [ "D8" ] +
|
|
|
|
rebase_path(inputs, root_build_dir)
|
|
|
|
}
|
|
|
|
|
2016-07-07 16:12:35 +00:00
|
|
|
if (is_android && enable_java_templates) {
|
2015-11-05 17:28:57 +00:00
|
|
|
android_assets("v8_external_startup_data_assets") {
|
|
|
|
if (v8_use_external_startup_data) {
|
2018-03-20 10:16:14 +00:00
|
|
|
# We don't support side-by-side snapshots on Android within Chromium.
|
|
|
|
assert(!v8_use_multi_snapshots)
|
2015-11-05 17:28:57 +00:00
|
|
|
deps = [
|
|
|
|
"//v8",
|
|
|
|
]
|
2016-06-22 18:39:13 +00:00
|
|
|
sources = [
|
|
|
|
"$root_out_dir/natives_blob.bin",
|
|
|
|
]
|
|
|
|
renaming_sources = [ "$root_out_dir/snapshot_blob.bin" ]
|
|
|
|
if (current_cpu == "arm" || current_cpu == "x86" ||
|
|
|
|
current_cpu == "mipsel") {
|
|
|
|
renaming_destinations = [ "snapshot_blob_32.bin" ]
|
|
|
|
} else {
|
|
|
|
renaming_destinations = [ "snapshot_blob_64.bin" ]
|
|
|
|
}
|
2015-11-05 17:28:57 +00:00
|
|
|
disable_compression = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-06-23 13:52:17 +00:00
|
|
|
if (v8_use_external_startup_data) {
|
|
|
|
action("natives_blob") {
|
2014-09-09 08:57:29 +00:00
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
2014-06-23 13:52:17 +00:00
|
|
|
|
|
|
|
deps = [
|
|
|
|
":js2c",
|
2015-08-20 00:01:07 +00:00
|
|
|
":js2c_experimental_extras",
|
2016-03-31 07:30:16 +00:00
|
|
|
":js2c_extras",
|
2014-06-23 13:52:17 +00:00
|
|
|
]
|
|
|
|
|
2016-03-31 13:57:24 +00:00
|
|
|
# NOSORT
|
2014-06-23 13:52:17 +00:00
|
|
|
sources = [
|
|
|
|
"$target_gen_dir/libraries.bin",
|
2016-03-31 07:30:16 +00:00
|
|
|
"$target_gen_dir/libraries_extras.bin",
|
2016-03-31 13:57:24 +00:00
|
|
|
"$target_gen_dir/libraries_experimental_extras.bin",
|
2014-06-23 13:52:17 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
outputs = [
|
2015-01-08 13:21:52 +00:00
|
|
|
"$root_out_dir/natives_blob.bin",
|
2014-06-23 13:52:17 +00:00
|
|
|
]
|
|
|
|
|
2018-03-26 07:34:41 +00:00
|
|
|
data = [
|
|
|
|
"$root_out_dir/natives_blob.bin",
|
|
|
|
]
|
|
|
|
|
2014-06-23 13:52:17 +00:00
|
|
|
script = "tools/concatenate-files.py"
|
|
|
|
|
|
|
|
args = rebase_path(sources + outputs, root_build_dir)
|
|
|
|
}
|
2014-05-05 11:06:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
action("postmortem-metadata") {
|
2015-05-05 21:16:12 +00:00
|
|
|
# Only targets in this file and the top-level visibility target can
|
|
|
|
# depend on this.
|
|
|
|
visibility = [
|
|
|
|
":*",
|
|
|
|
"//:gn_visibility",
|
|
|
|
]
|
2014-05-06 15:01:24 +00:00
|
|
|
|
2014-05-05 11:06:26 +00:00
|
|
|
script = "tools/gen-postmortem-metadata.py"
|
|
|
|
|
2016-03-31 11:12:10 +00:00
|
|
|
# NOSORT
|
2014-05-05 11:06:26 +00:00
|
|
|
sources = [
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/objects.h",
|
2016-03-31 11:12:10 +00:00
|
|
|
"src/objects-inl.h",
|
2018-09-12 10:35:23 +00:00
|
|
|
"src/objects/allocation-site-inl.h",
|
|
|
|
"src/objects/allocation-site.h",
|
2017-11-06 18:01:59 +00:00
|
|
|
"src/objects/code-inl.h",
|
|
|
|
"src/objects/code.h",
|
2017-12-06 16:52:26 +00:00
|
|
|
"src/objects/data-handler.h",
|
|
|
|
"src/objects/data-handler-inl.h",
|
2017-12-01 11:33:03 +00:00
|
|
|
"src/objects/fixed-array-inl.h",
|
|
|
|
"src/objects/fixed-array.h",
|
2017-10-13 15:06:23 +00:00
|
|
|
"src/objects/js-array-inl.h",
|
|
|
|
"src/objects/js-array.h",
|
2018-08-16 16:01:36 +00:00
|
|
|
"src/objects/js-array-buffer-inl.h",
|
|
|
|
"src/objects/js-array-buffer.h",
|
2018-09-21 12:02:47 +00:00
|
|
|
"src/objects/js-objects-inl.h",
|
|
|
|
"src/objects/js-objects.h",
|
2017-10-13 15:06:23 +00:00
|
|
|
"src/objects/js-regexp-inl.h",
|
|
|
|
"src/objects/js-regexp.h",
|
2018-04-05 14:41:26 +00:00
|
|
|
"src/objects/js-regexp-string-iterator-inl.h",
|
|
|
|
"src/objects/js-regexp-string-iterator.h",
|
2017-05-17 11:31:18 +00:00
|
|
|
"src/objects/map.h",
|
|
|
|
"src/objects/map-inl.h",
|
2018-09-04 18:51:38 +00:00
|
|
|
"src/objects/name.h",
|
|
|
|
"src/objects/name-inl.h",
|
2018-07-28 03:09:39 +00:00
|
|
|
"src/objects/scope-info.h",
|
2017-05-30 12:04:34 +00:00
|
|
|
"src/objects/script.h",
|
|
|
|
"src/objects/script-inl.h",
|
2017-05-29 13:24:32 +00:00
|
|
|
"src/objects/shared-function-info.h",
|
|
|
|
"src/objects/shared-function-info-inl.h",
|
2017-06-12 11:08:30 +00:00
|
|
|
"src/objects/string.h",
|
|
|
|
"src/objects/string-inl.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
outputs = [
|
2015-01-08 13:21:52 +00:00
|
|
|
"$target_gen_dir/debug-support.cc",
|
2014-05-05 11:06:26 +00:00
|
|
|
]
|
|
|
|
|
2015-01-08 13:21:52 +00:00
|
|
|
args = rebase_path(outputs, root_build_dir) +
|
|
|
|
rebase_path(sources, root_build_dir)
|
2014-05-05 11:06:26 +00:00
|
|
|
}
|
|
|
|
|
2018-05-04 13:18:37 +00:00
|
|
|
torque_files = [
|
|
|
|
"src/builtins/base.tq",
|
|
|
|
"src/builtins/array.tq",
|
2018-08-08 05:52:45 +00:00
|
|
|
"src/builtins/array-copywithin.tq",
|
2018-06-12 19:53:44 +00:00
|
|
|
"src/builtins/array-foreach.tq",
|
2018-08-28 09:14:58 +00:00
|
|
|
"src/builtins/array-lastindexof.tq",
|
2018-08-23 12:41:58 +00:00
|
|
|
"src/builtins/array-reverse.tq",
|
2018-09-04 12:30:33 +00:00
|
|
|
"src/builtins/array-splice.tq",
|
2018-09-06 05:47:23 +00:00
|
|
|
"src/builtins/array-unshift.tq",
|
2018-05-04 13:18:37 +00:00
|
|
|
"src/builtins/typed-array.tq",
|
2018-05-23 14:13:07 +00:00
|
|
|
"src/builtins/data-view.tq",
|
2018-05-13 10:10:44 +00:00
|
|
|
"test/torque/test-torque.tq",
|
2018-08-22 13:17:38 +00:00
|
|
|
"third_party/v8/builtins/array-sort.tq",
|
2018-05-04 13:18:37 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
torque_modules = [
|
|
|
|
"base",
|
|
|
|
"array",
|
|
|
|
"typed-array",
|
2018-05-23 14:13:07 +00:00
|
|
|
"data-view",
|
2018-05-13 10:10:44 +00:00
|
|
|
"test",
|
2018-05-04 13:18:37 +00:00
|
|
|
]
|
|
|
|
|
2018-04-16 09:24:22 +00:00
|
|
|
action("run_torque") {
|
|
|
|
visibility = [
|
|
|
|
":*",
|
|
|
|
"tools/gcmole/:*",
|
2018-05-13 10:10:44 +00:00
|
|
|
"test/cctest/:*",
|
2018-04-16 09:24:22 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
2018-09-12 11:55:04 +00:00
|
|
|
":torque($v8_generator_toolchain)",
|
2018-04-16 09:24:22 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
script = "tools/run.py"
|
|
|
|
|
2018-05-04 13:18:37 +00:00
|
|
|
sources = torque_files
|
2018-04-16 09:24:22 +00:00
|
|
|
|
|
|
|
outputs = [
|
2018-05-04 13:18:37 +00:00
|
|
|
"$target_gen_dir/torque-generated/builtin-definitions-from-dsl.h",
|
2018-04-16 09:24:22 +00:00
|
|
|
]
|
2018-05-04 13:18:37 +00:00
|
|
|
foreach(module, torque_modules) {
|
|
|
|
outputs += [
|
|
|
|
"$target_gen_dir/torque-generated/builtins-$module-from-dsl-gen.cc",
|
|
|
|
"$target_gen_dir/torque-generated/builtins-$module-from-dsl-gen.h",
|
|
|
|
]
|
|
|
|
}
|
2018-04-16 09:24:22 +00:00
|
|
|
|
|
|
|
args = [
|
2018-09-12 11:55:04 +00:00
|
|
|
"./" + rebase_path(get_label_info(":torque($v8_generator_toolchain)",
|
2018-04-16 09:24:22 +00:00
|
|
|
"root_out_dir") + "/torque",
|
|
|
|
root_build_dir),
|
|
|
|
"-o",
|
2018-05-04 13:18:37 +00:00
|
|
|
rebase_path("$target_gen_dir/torque-generated", root_build_dir),
|
2018-04-16 09:24:22 +00:00
|
|
|
]
|
2018-05-04 13:18:37 +00:00
|
|
|
|
|
|
|
foreach(file, torque_files) {
|
|
|
|
args += [ rebase_path(file, root_build_dir) ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-23 13:29:57 +00:00
|
|
|
v8_header_set("torque_generated_core") {
|
2018-05-04 13:18:37 +00:00
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":run_torque",
|
|
|
|
]
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
"$target_gen_dir/torque-generated/builtin-definitions-from-dsl.h",
|
|
|
|
]
|
|
|
|
|
|
|
|
configs = [ ":internal_config" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_source_set("torque_generated_initializers") {
|
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
|
|
|
|
|
|
|
deps = [
|
2018-09-10 12:55:45 +00:00
|
|
|
":generate_bytecode_builtins_list",
|
2018-05-04 13:18:37 +00:00
|
|
|
":run_torque",
|
|
|
|
]
|
|
|
|
|
2018-07-09 17:04:28 +00:00
|
|
|
if (v8_enable_i18n_support) {
|
|
|
|
public_deps = [
|
|
|
|
"//third_party/icu",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2018-05-04 13:18:37 +00:00
|
|
|
sources = []
|
|
|
|
foreach(module, torque_modules) {
|
|
|
|
sources += [
|
|
|
|
"$target_gen_dir/torque-generated/builtins-$module-from-dsl-gen.cc",
|
|
|
|
"$target_gen_dir/torque-generated/builtins-$module-from-dsl-gen.h",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
configs = [ ":internal_config" ]
|
2018-04-16 09:24:22 +00:00
|
|
|
}
|
|
|
|
|
2018-09-10 12:55:45 +00:00
|
|
|
action("generate_bytecode_builtins_list") {
|
|
|
|
script = "tools/run.py"
|
|
|
|
outputs = [
|
|
|
|
"$target_gen_dir/builtins-generated/bytecodes-builtins-list.h",
|
|
|
|
]
|
|
|
|
deps = [
|
2018-09-12 11:55:04 +00:00
|
|
|
":bytecode_builtins_list_generator($v8_generator_toolchain)",
|
2018-09-10 12:55:45 +00:00
|
|
|
]
|
|
|
|
args = [
|
|
|
|
"./" + rebase_path(
|
2018-09-11 13:22:30 +00:00
|
|
|
get_label_info(
|
2018-09-12 11:55:04 +00:00
|
|
|
":bytecode_builtins_list_generator($v8_generator_toolchain)",
|
2018-09-11 13:22:30 +00:00
|
|
|
"root_out_dir") + "/bytecode_builtins_list_generator",
|
2018-09-10 12:55:45 +00:00
|
|
|
root_build_dir),
|
|
|
|
rebase_path("$target_gen_dir/builtins-generated/bytecodes-builtins-list.h"),
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2018-03-20 10:16:14 +00:00
|
|
|
# Template to generate different V8 snapshots based on different runtime flags.
|
|
|
|
# Can be invoked with run_mksnapshot(<name>). The target will resolve to
|
|
|
|
# run_mksnapshot_<name>. If <name> is "default", no file suffixes will be used.
|
|
|
|
# Otherwise files are suffixed, e.g. embedded_<name>.cc and
|
|
|
|
# snapshot_blob_<name>.bin.
|
|
|
|
#
|
|
|
|
# The template exposes the variables:
|
|
|
|
# args: additional flags for mksnapshots
|
|
|
|
# embedded_suffix: a camel case suffix for method names in the embedded
|
|
|
|
# snapshot.
|
|
|
|
template("run_mksnapshot") {
|
|
|
|
name = target_name
|
|
|
|
if (name == "default") {
|
|
|
|
suffix = ""
|
|
|
|
} else {
|
|
|
|
suffix = "_$name"
|
|
|
|
}
|
|
|
|
action("run_mksnapshot_" + name) {
|
2017-11-20 08:12:49 +00:00
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
2014-06-03 06:50:46 +00:00
|
|
|
|
2017-11-20 08:12:49 +00:00
|
|
|
deps = [
|
|
|
|
":mksnapshot($v8_snapshot_toolchain)",
|
|
|
|
]
|
2014-06-03 06:50:46 +00:00
|
|
|
|
2017-11-20 08:12:49 +00:00
|
|
|
script = "tools/run.py"
|
2016-06-30 11:24:37 +00:00
|
|
|
|
2017-11-20 08:12:49 +00:00
|
|
|
sources = []
|
2014-06-03 06:50:46 +00:00
|
|
|
|
2018-03-13 14:04:27 +00:00
|
|
|
outputs = []
|
2018-03-09 09:29:10 +00:00
|
|
|
|
2018-03-26 07:34:41 +00:00
|
|
|
data = []
|
|
|
|
|
2017-11-20 08:12:49 +00:00
|
|
|
args = [
|
|
|
|
"./" + rebase_path(get_label_info(":mksnapshot($v8_snapshot_toolchain)",
|
|
|
|
"root_out_dir") + "/mksnapshot",
|
|
|
|
root_build_dir),
|
|
|
|
"--turbo_instruction_scheduling",
|
2016-11-15 14:39:59 +00:00
|
|
|
]
|
|
|
|
|
2018-03-20 10:16:14 +00:00
|
|
|
args += invoker.args
|
|
|
|
|
2018-03-09 09:29:10 +00:00
|
|
|
if (v8_enable_embedded_builtins) {
|
2018-03-20 10:16:14 +00:00
|
|
|
outputs += [ "$target_gen_dir/embedded${suffix}.cc" ]
|
2018-03-09 09:29:10 +00:00
|
|
|
args += [
|
|
|
|
"--embedded_src",
|
2018-03-20 10:16:14 +00:00
|
|
|
rebase_path("$target_gen_dir/embedded${suffix}.cc", root_build_dir),
|
2018-03-09 09:29:10 +00:00
|
|
|
]
|
2018-03-20 10:16:14 +00:00
|
|
|
if (invoker.embedded_variant != "") {
|
|
|
|
args += [
|
|
|
|
"--embedded_variant",
|
|
|
|
invoker.embedded_variant,
|
|
|
|
]
|
|
|
|
}
|
2018-03-09 09:29:10 +00:00
|
|
|
}
|
|
|
|
|
2017-11-20 08:12:49 +00:00
|
|
|
if (v8_random_seed != "0") {
|
|
|
|
args += [
|
|
|
|
"--random-seed",
|
|
|
|
v8_random_seed,
|
|
|
|
]
|
|
|
|
}
|
2017-05-23 09:47:29 +00:00
|
|
|
|
2017-11-20 08:12:49 +00:00
|
|
|
if (v8_os_page_size != "0") {
|
|
|
|
args += [
|
|
|
|
"--v8_os_page_size",
|
|
|
|
v8_os_page_size,
|
|
|
|
]
|
|
|
|
}
|
2016-06-30 11:24:37 +00:00
|
|
|
|
2017-11-20 08:12:49 +00:00
|
|
|
if (v8_perf_prof_unwinding_info) {
|
|
|
|
args += [ "--perf-prof-unwinding-info" ]
|
|
|
|
}
|
2017-08-24 13:14:44 +00:00
|
|
|
|
2017-11-20 08:12:49 +00:00
|
|
|
if (v8_use_external_startup_data) {
|
2018-03-20 10:16:14 +00:00
|
|
|
outputs += [ "$root_out_dir/snapshot_blob${suffix}.bin" ]
|
2018-03-26 07:34:41 +00:00
|
|
|
data += [ "$root_out_dir/snapshot_blob${suffix}.bin" ]
|
2017-11-20 08:12:49 +00:00
|
|
|
args += [
|
|
|
|
"--startup_blob",
|
2018-03-20 10:16:14 +00:00
|
|
|
rebase_path("$root_out_dir/snapshot_blob${suffix}.bin", root_build_dir),
|
2017-11-20 08:12:49 +00:00
|
|
|
]
|
2018-03-13 14:04:27 +00:00
|
|
|
} else {
|
2018-03-20 10:16:14 +00:00
|
|
|
outputs += [ "$target_gen_dir/snapshot${suffix}.cc" ]
|
2018-03-13 14:04:27 +00:00
|
|
|
args += [
|
|
|
|
"--startup_src",
|
2018-03-20 10:16:14 +00:00
|
|
|
rebase_path("$target_gen_dir/snapshot${suffix}.cc", root_build_dir),
|
2018-03-13 14:04:27 +00:00
|
|
|
]
|
2017-11-20 08:12:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (v8_embed_script != "") {
|
|
|
|
sources += [ v8_embed_script ]
|
|
|
|
args += [ rebase_path(v8_embed_script, root_build_dir) ]
|
|
|
|
}
|
|
|
|
|
|
|
|
if (v8_enable_fast_mksnapshot) {
|
|
|
|
args += [
|
|
|
|
"--no-turbo-rewrite-far-jumps",
|
|
|
|
"--no-turbo-verify-allocation",
|
|
|
|
]
|
2018-06-28 09:23:06 +00:00
|
|
|
|
|
|
|
if (v8_enable_debugging_features && v8_enable_slow_dchecks) {
|
|
|
|
# mksnapshot only accepts this flag if ENABLE_SLOW_DCHECKS is defined.
|
|
|
|
args += [ "--no-enable-slow-asserts" ]
|
|
|
|
}
|
2017-11-20 08:12:49 +00:00
|
|
|
}
|
2017-08-24 13:14:44 +00:00
|
|
|
}
|
2014-06-03 06:50:46 +00:00
|
|
|
}
|
|
|
|
|
2018-03-20 10:16:14 +00:00
|
|
|
if (v8_use_snapshot) {
|
|
|
|
run_mksnapshot("default") {
|
|
|
|
args = []
|
|
|
|
if (v8_enable_embedded_builtins) {
|
|
|
|
embedded_variant = "Default"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (v8_use_multi_snapshots) {
|
|
|
|
run_mksnapshot("trusted") {
|
|
|
|
args = [ "--no-untrusted-code-mitigations" ]
|
|
|
|
if (v8_enable_embedded_builtins) {
|
|
|
|
embedded_variant = "Trusted"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-30 14:22:55 +00:00
|
|
|
action("v8_dump_build_config") {
|
|
|
|
script = "tools/testrunner/utils/dump_build_config.py"
|
2016-07-01 05:26:58 +00:00
|
|
|
outputs = [
|
|
|
|
"$root_out_dir/v8_build_config.json",
|
|
|
|
]
|
2017-06-28 11:31:15 +00:00
|
|
|
is_gcov_coverage = v8_code_coverage && !is_clang
|
2016-06-30 14:22:55 +00:00
|
|
|
args = [
|
|
|
|
rebase_path("$root_out_dir/v8_build_config.json", root_build_dir),
|
2017-10-25 09:48:59 +00:00
|
|
|
"current_cpu=\"$current_cpu\"",
|
2016-06-30 14:22:55 +00:00
|
|
|
"dcheck_always_on=$dcheck_always_on",
|
2018-07-25 11:20:08 +00:00
|
|
|
"is_android=$is_android",
|
2016-06-30 14:22:55 +00:00
|
|
|
"is_asan=$is_asan",
|
|
|
|
"is_cfi=$is_cfi",
|
|
|
|
"is_component_build=$is_component_build",
|
2018-04-06 10:24:41 +00:00
|
|
|
"is_debug=$v8_enable_debugging_features",
|
2017-06-28 11:31:15 +00:00
|
|
|
"is_gcov_coverage=$is_gcov_coverage",
|
2016-06-30 14:22:55 +00:00
|
|
|
"is_msan=$is_msan",
|
|
|
|
"is_tsan=$is_tsan",
|
2017-07-19 14:59:48 +00:00
|
|
|
"is_ubsan_vptr=$is_ubsan_vptr",
|
2016-06-30 14:22:55 +00:00
|
|
|
"target_cpu=\"$target_cpu\"",
|
2017-10-25 09:48:59 +00:00
|
|
|
"v8_current_cpu=\"$v8_current_cpu\"",
|
2016-06-30 14:22:55 +00:00
|
|
|
"v8_enable_i18n_support=$v8_enable_i18n_support",
|
2017-10-19 07:14:09 +00:00
|
|
|
"v8_enable_verify_predictable=$v8_enable_verify_predictable",
|
2016-06-30 14:22:55 +00:00
|
|
|
"v8_target_cpu=\"$v8_target_cpu\"",
|
|
|
|
"v8_use_snapshot=$v8_use_snapshot",
|
2016-07-01 05:26:58 +00:00
|
|
|
]
|
2018-01-29 10:24:31 +00:00
|
|
|
|
|
|
|
if (v8_current_cpu == "mips" || v8_current_cpu == "mipsel" ||
|
|
|
|
v8_current_cpu == "mips64" || v8_current_cpu == "mips64el") {
|
|
|
|
args += [
|
|
|
|
"mips_arch_variant=\"$mips_arch_variant\"",
|
|
|
|
"mips_use_msa=$mips_use_msa",
|
|
|
|
]
|
|
|
|
}
|
2016-06-30 14:22:55 +00:00
|
|
|
}
|
|
|
|
|
2014-05-05 11:06:26 +00:00
|
|
|
###############################################################################
|
|
|
|
# Source Sets (aka static libraries)
|
|
|
|
#
|
|
|
|
|
2016-06-01 12:28:57 +00:00
|
|
|
source_set("v8_maybe_snapshot") {
|
|
|
|
if (v8_use_snapshot && v8_use_external_startup_data) {
|
2016-06-08 12:09:25 +00:00
|
|
|
public_deps = [
|
|
|
|
":v8_external_snapshot",
|
|
|
|
]
|
2016-06-01 12:28:57 +00:00
|
|
|
} else if (v8_use_snapshot) {
|
2016-06-08 12:09:25 +00:00
|
|
|
public_deps = [
|
|
|
|
":v8_snapshot",
|
|
|
|
]
|
2016-06-01 12:28:57 +00:00
|
|
|
} else {
|
2016-07-06 07:52:59 +00:00
|
|
|
# Ignore v8_use_external_startup_data setting if no snapshot is used.
|
2016-06-08 12:09:25 +00:00
|
|
|
public_deps = [
|
2017-09-06 10:48:08 +00:00
|
|
|
":v8_init",
|
2016-06-08 12:09:25 +00:00
|
|
|
":v8_nosnapshot",
|
|
|
|
]
|
2016-06-01 12:28:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-05-11 10:17:37 +00:00
|
|
|
v8_source_set("v8_nosnapshot") {
|
2014-09-09 08:57:29 +00:00
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
2014-05-05 11:06:26 +00:00
|
|
|
|
|
|
|
deps = [
|
|
|
|
":js2c",
|
2015-08-20 00:01:07 +00:00
|
|
|
":js2c_experimental_extras",
|
2016-03-31 07:30:16 +00:00
|
|
|
":js2c_extras",
|
2014-05-05 11:06:26 +00:00
|
|
|
":v8_base",
|
|
|
|
]
|
|
|
|
|
|
|
|
sources = [
|
2016-03-31 07:30:16 +00:00
|
|
|
"$target_gen_dir/experimental-extras-libraries.cc",
|
2015-05-08 08:44:47 +00:00
|
|
|
"$target_gen_dir/extras-libraries.cc",
|
2016-03-31 07:30:16 +00:00
|
|
|
"$target_gen_dir/libraries.cc",
|
2018-03-09 09:29:10 +00:00
|
|
|
"src/snapshot/embedded-empty.cc",
|
2015-03-27 15:28:55 +00:00
|
|
|
"src/snapshot/snapshot-empty.cc",
|
2014-05-05 11:06:26 +00:00
|
|
|
]
|
|
|
|
|
2017-08-09 08:11:21 +00:00
|
|
|
if (use_jumbo_build == true) {
|
|
|
|
jumbo_excluded_sources = [
|
2018-03-22 08:59:32 +00:00
|
|
|
# TODO(mostynb@vewd.com): don't exclude these http://crbug.com/752428
|
2017-08-09 08:11:21 +00:00
|
|
|
# Generated source, contains same variable names as libraries.cc
|
|
|
|
"$target_gen_dir/experimental-extras-libraries.cc",
|
|
|
|
"$target_gen_dir/libraries.cc",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-05-17 10:54:14 +00:00
|
|
|
configs = [ ":internal_config" ]
|
2014-05-05 11:06:26 +00:00
|
|
|
}
|
|
|
|
|
2018-03-13 14:04:27 +00:00
|
|
|
if (v8_use_snapshot && !v8_use_external_startup_data) {
|
2017-11-20 08:12:49 +00:00
|
|
|
v8_source_set("v8_snapshot") {
|
|
|
|
# Only targets in this file and the top-level visibility target can
|
|
|
|
# depend on this.
|
|
|
|
visibility = [
|
|
|
|
":*",
|
|
|
|
"//:gn_visibility",
|
|
|
|
]
|
2014-06-03 06:50:46 +00:00
|
|
|
|
2017-11-20 08:12:49 +00:00
|
|
|
deps = [
|
|
|
|
":js2c",
|
|
|
|
":js2c_experimental_extras",
|
|
|
|
":js2c_extras",
|
|
|
|
":v8_base",
|
|
|
|
]
|
|
|
|
public_deps = [
|
|
|
|
# This should be public so downstream targets can declare the snapshot
|
|
|
|
# output file as their inputs.
|
2018-03-20 10:16:14 +00:00
|
|
|
":run_mksnapshot_default",
|
2017-11-20 08:12:49 +00:00
|
|
|
]
|
2014-06-03 06:50:46 +00:00
|
|
|
|
2018-05-01 07:24:55 +00:00
|
|
|
# Do not publicize any header to remove build dependency.
|
|
|
|
public = []
|
|
|
|
|
2017-11-20 08:12:49 +00:00
|
|
|
sources = [
|
2017-08-09 08:11:21 +00:00
|
|
|
"$target_gen_dir/experimental-extras-libraries.cc",
|
2017-11-20 08:12:49 +00:00
|
|
|
"$target_gen_dir/extras-libraries.cc",
|
2017-08-09 08:11:21 +00:00
|
|
|
"$target_gen_dir/libraries.cc",
|
2017-11-20 08:12:49 +00:00
|
|
|
"$target_gen_dir/snapshot.cc",
|
|
|
|
"src/setup-isolate-deserialize.cc",
|
2017-08-09 08:11:21 +00:00
|
|
|
]
|
|
|
|
|
2018-03-09 09:29:10 +00:00
|
|
|
if (v8_enable_embedded_builtins) {
|
|
|
|
sources += [ "$target_gen_dir/embedded.cc" ]
|
2018-07-03 07:36:59 +00:00
|
|
|
} else {
|
|
|
|
sources += [ "src/snapshot/embedded-empty.cc" ]
|
2018-03-09 09:29:10 +00:00
|
|
|
}
|
|
|
|
|
2017-11-20 08:12:49 +00:00
|
|
|
if (use_jumbo_build == true) {
|
|
|
|
jumbo_excluded_sources = [
|
2018-03-22 08:59:32 +00:00
|
|
|
# TODO(mostynb@vewd.com): don't exclude these http://crbug.com/752428
|
2017-11-20 08:12:49 +00:00
|
|
|
# Generated source, contains same variable names as libraries.cc
|
|
|
|
"$target_gen_dir/experimental-extras-libraries.cc",
|
|
|
|
"$target_gen_dir/libraries.cc",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
configs = [ ":internal_config" ]
|
|
|
|
}
|
2014-06-03 06:50:46 +00:00
|
|
|
}
|
|
|
|
|
2018-03-13 14:04:27 +00:00
|
|
|
if (v8_use_snapshot && v8_use_external_startup_data) {
|
2016-05-11 10:17:37 +00:00
|
|
|
v8_source_set("v8_external_snapshot") {
|
2014-09-09 08:57:29 +00:00
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
2014-06-23 13:52:17 +00:00
|
|
|
|
|
|
|
deps = [
|
|
|
|
":js2c",
|
2015-08-20 00:01:07 +00:00
|
|
|
":js2c_experimental_extras",
|
2016-03-31 07:30:16 +00:00
|
|
|
":js2c_extras",
|
2014-06-23 13:52:17 +00:00
|
|
|
":v8_base",
|
2015-05-19 11:36:37 +00:00
|
|
|
]
|
|
|
|
public_deps = [
|
2014-06-23 13:52:17 +00:00
|
|
|
":natives_blob",
|
2018-03-20 10:16:14 +00:00
|
|
|
":run_mksnapshot_default",
|
2014-06-23 13:52:17 +00:00
|
|
|
]
|
|
|
|
|
2018-03-20 10:16:14 +00:00
|
|
|
if (v8_use_multi_snapshots) {
|
|
|
|
public_deps += [ ":run_mksnapshot_trusted" ]
|
|
|
|
}
|
|
|
|
|
2014-06-23 13:52:17 +00:00
|
|
|
sources = [
|
2017-04-07 13:31:29 +00:00
|
|
|
"src/setup-isolate-deserialize.cc",
|
2015-03-27 15:28:55 +00:00
|
|
|
"src/snapshot/natives-external.cc",
|
|
|
|
"src/snapshot/snapshot-external.cc",
|
2014-06-23 13:52:17 +00:00
|
|
|
]
|
|
|
|
|
2018-05-01 07:24:55 +00:00
|
|
|
# Do not publicize any header to remove build dependency.
|
|
|
|
public = []
|
|
|
|
|
2018-03-09 09:29:10 +00:00
|
|
|
if (v8_enable_embedded_builtins) {
|
|
|
|
sources += [ "$target_gen_dir/embedded.cc" ]
|
2018-03-22 08:59:32 +00:00
|
|
|
|
2018-03-20 10:16:14 +00:00
|
|
|
if (v8_use_multi_snapshots) {
|
|
|
|
sources += [ "$target_gen_dir/embedded_trusted.cc" ]
|
2018-03-22 08:59:32 +00:00
|
|
|
|
|
|
|
if (use_jumbo_build == true) {
|
|
|
|
jumbo_excluded_sources = [
|
|
|
|
# Duplicated symbols with embedded.cc
|
|
|
|
"$target_gen_dir/embedded_trusted.cc",
|
|
|
|
]
|
|
|
|
}
|
2018-03-20 10:16:14 +00:00
|
|
|
}
|
2018-07-03 07:36:59 +00:00
|
|
|
} else {
|
|
|
|
sources += [ "src/snapshot/embedded-empty.cc" ]
|
2018-03-09 09:29:10 +00:00
|
|
|
}
|
|
|
|
|
2016-05-17 10:54:14 +00:00
|
|
|
configs = [ ":internal_config" ]
|
2014-06-23 13:52:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-06 10:48:08 +00:00
|
|
|
v8_source_set("v8_initializers") {
|
2017-04-07 13:31:29 +00:00
|
|
|
visibility = [
|
|
|
|
":*",
|
|
|
|
"test/cctest:*",
|
|
|
|
]
|
2017-03-16 11:32:01 +00:00
|
|
|
|
|
|
|
deps = [
|
2018-05-04 13:18:37 +00:00
|
|
|
":torque_generated_initializers",
|
2017-03-16 11:32:01 +00:00
|
|
|
":v8_base",
|
|
|
|
]
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
### gcmole(all) ###
|
|
|
|
"src/builtins/builtins-arguments-gen.cc",
|
2017-03-21 11:17:41 +00:00
|
|
|
"src/builtins/builtins-arguments-gen.h",
|
2017-03-16 11:32:01 +00:00
|
|
|
"src/builtins/builtins-array-gen.cc",
|
2018-01-28 17:02:11 +00:00
|
|
|
"src/builtins/builtins-array-gen.h",
|
2017-03-16 11:32:01 +00:00
|
|
|
"src/builtins/builtins-async-function-gen.cc",
|
|
|
|
"src/builtins/builtins-async-gen.cc",
|
2017-03-21 11:17:41 +00:00
|
|
|
"src/builtins/builtins-async-gen.h",
|
[async-iteration] implement AsyncGenerator
- Introduce new struct AsyncGeneratorRequest, which holds
information pertinent to resuming execution of an
AsyncGenerator, such as the Promise associated with the async
generator request. It is intended to be used as a singly
linked list, and holds a pointer to the next item in te queue.
- Introduce JSAsyncGeneratorObject (subclass of
JSGeneratorObject), which includes several new internal fields
(`queue` which contains a singly linked list of
AsyncGeneratorRequest objects, and `await_input` which
contains the sent value from an Await expression (This is
necessary to prevent function.sent (used by yield*) from
having the sent value observably overwritten during
execution).
- Modify SuspendGenerator to accept a set of Flags, which
indicate whether the suspend is for a Yield or Await, and
whether it takes place on an async generator or ES6
generator.
- Introduce interpreter intrinsics and TF intrinsic lowering for
accessing the await input of an async generator
- Modify the JSGeneratorStore operator to understand whether or
not it's suspending for a normal yield, or an AsyncGenerator
Await. This ensures appropriate registers are stored.
- Add versions of ResumeGeneratorTrampoline which store the
input value in a different field depending on wether it's an
AsyncGenerator Await resume, or an ordinary resume. Also modifies
whether debug code will assert that the generator object is a
JSGeneratorObject or a JSAsyncGeneratorObject depending on the
resume type.
BUG=v8:5855
R=bmeurer@chromium.org, rmcilroy@chromium.org, jgruber@chromium.org,
littledan@chromium.org, neis@chromium.org
TBR=marja@chromium.org
Change-Id: I9d58df1d344465fc937fe7eed322424204497187
Reviewed-on: https://chromium-review.googlesource.com/446961
Commit-Queue: Caitlin Potter <caitp@igalia.com>
Reviewed-by: Ross McIlroy <rmcilroy@chromium.org>
Reviewed-by: Hannes Payer <hpayer@chromium.org>
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44240}
2017-03-29 13:41:45 +00:00
|
|
|
"src/builtins/builtins-async-generator-gen.cc",
|
2017-03-16 11:32:01 +00:00
|
|
|
"src/builtins/builtins-async-iterator-gen.cc",
|
|
|
|
"src/builtins/builtins-boolean-gen.cc",
|
2017-04-07 13:31:29 +00:00
|
|
|
"src/builtins/builtins-call-gen.cc",
|
2017-06-08 18:31:59 +00:00
|
|
|
"src/builtins/builtins-call-gen.h",
|
2017-05-23 09:06:51 +00:00
|
|
|
"src/builtins/builtins-collections-gen.cc",
|
2017-04-20 17:17:18 +00:00
|
|
|
"src/builtins/builtins-console-gen.cc",
|
2017-03-16 11:32:01 +00:00
|
|
|
"src/builtins/builtins-constructor-gen.cc",
|
2017-03-21 11:17:41 +00:00
|
|
|
"src/builtins/builtins-constructor-gen.h",
|
2017-03-16 11:32:01 +00:00
|
|
|
"src/builtins/builtins-constructor.h",
|
|
|
|
"src/builtins/builtins-conversion-gen.cc",
|
2018-06-06 12:30:08 +00:00
|
|
|
"src/builtins/builtins-data-view-gen.h",
|
2017-03-16 11:32:01 +00:00
|
|
|
"src/builtins/builtins-date-gen.cc",
|
2017-05-23 00:03:49 +00:00
|
|
|
"src/builtins/builtins-debug-gen.cc",
|
2017-03-16 11:32:01 +00:00
|
|
|
"src/builtins/builtins-function-gen.cc",
|
|
|
|
"src/builtins/builtins-generator-gen.cc",
|
|
|
|
"src/builtins/builtins-global-gen.cc",
|
|
|
|
"src/builtins/builtins-handler-gen.cc",
|
|
|
|
"src/builtins/builtins-ic-gen.cc",
|
|
|
|
"src/builtins/builtins-internal-gen.cc",
|
2017-04-07 13:31:29 +00:00
|
|
|
"src/builtins/builtins-interpreter-gen.cc",
|
2017-05-05 15:59:08 +00:00
|
|
|
"src/builtins/builtins-intl-gen.cc",
|
2017-05-23 09:06:51 +00:00
|
|
|
"src/builtins/builtins-iterator-gen.cc",
|
|
|
|
"src/builtins/builtins-iterator-gen.h",
|
2018-06-07 15:21:27 +00:00
|
|
|
"src/builtins/builtins-lazy-gen.cc",
|
|
|
|
"src/builtins/builtins-lazy-gen.h",
|
2017-03-16 11:32:01 +00:00
|
|
|
"src/builtins/builtins-math-gen.cc",
|
2017-11-28 10:05:00 +00:00
|
|
|
"src/builtins/builtins-math-gen.h",
|
2017-03-16 11:32:01 +00:00
|
|
|
"src/builtins/builtins-number-gen.cc",
|
|
|
|
"src/builtins/builtins-object-gen.cc",
|
|
|
|
"src/builtins/builtins-promise-gen.cc",
|
2017-03-21 11:17:41 +00:00
|
|
|
"src/builtins/builtins-promise-gen.h",
|
2017-07-10 11:42:33 +00:00
|
|
|
"src/builtins/builtins-proxy-gen.cc",
|
2017-08-16 12:33:07 +00:00
|
|
|
"src/builtins/builtins-proxy-gen.h",
|
2017-10-16 16:48:11 +00:00
|
|
|
"src/builtins/builtins-reflect-gen.cc",
|
2017-03-16 11:32:01 +00:00
|
|
|
"src/builtins/builtins-regexp-gen.cc",
|
|
|
|
"src/builtins/builtins-regexp-gen.h",
|
|
|
|
"src/builtins/builtins-sharedarraybuffer-gen.cc",
|
|
|
|
"src/builtins/builtins-string-gen.cc",
|
2017-05-15 19:42:35 +00:00
|
|
|
"src/builtins/builtins-string-gen.h",
|
2017-03-16 11:32:01 +00:00
|
|
|
"src/builtins/builtins-symbol-gen.cc",
|
2018-04-18 07:07:10 +00:00
|
|
|
"src/builtins/builtins-typed-array-gen.cc",
|
|
|
|
"src/builtins/builtins-typed-array-gen.h",
|
2017-03-16 11:32:01 +00:00
|
|
|
"src/builtins/builtins-utils-gen.h",
|
|
|
|
"src/builtins/builtins-wasm-gen.cc",
|
2018-02-05 16:10:42 +00:00
|
|
|
"src/builtins/growable-fixed-array-gen.cc",
|
|
|
|
"src/builtins/growable-fixed-array-gen.h",
|
2017-04-07 13:31:29 +00:00
|
|
|
"src/builtins/setup-builtins-internal.cc",
|
2017-09-06 10:48:08 +00:00
|
|
|
"src/heap/setup-heap-internal.cc",
|
2017-03-21 11:17:41 +00:00
|
|
|
"src/ic/accessor-assembler.cc",
|
|
|
|
"src/ic/accessor-assembler.h",
|
2017-03-22 17:37:08 +00:00
|
|
|
"src/ic/binary-op-assembler.cc",
|
|
|
|
"src/ic/binary-op-assembler.h",
|
2017-03-21 11:17:41 +00:00
|
|
|
"src/ic/keyed-store-generic.cc",
|
|
|
|
"src/ic/keyed-store-generic.h",
|
2017-03-21 12:33:32 +00:00
|
|
|
"src/interpreter/interpreter-assembler.cc",
|
|
|
|
"src/interpreter/interpreter-assembler.h",
|
2017-03-20 16:56:06 +00:00
|
|
|
"src/interpreter/interpreter-generator.cc",
|
|
|
|
"src/interpreter/interpreter-generator.h",
|
2017-03-21 12:33:32 +00:00
|
|
|
"src/interpreter/interpreter-intrinsics-generator.cc",
|
|
|
|
"src/interpreter/interpreter-intrinsics-generator.h",
|
2017-03-16 11:32:01 +00:00
|
|
|
]
|
|
|
|
|
2017-08-09 08:11:21 +00:00
|
|
|
if (use_jumbo_build == true) {
|
|
|
|
jumbo_excluded_sources = [
|
2018-03-22 08:59:32 +00:00
|
|
|
# TODO(mostynb@vewd.com): don't exclude these http://crbug.com/752428
|
2017-08-09 08:11:21 +00:00
|
|
|
"src/builtins/builtins-async-iterator-gen.cc",
|
|
|
|
"src/builtins/builtins-async-generator-gen.cc",
|
2017-08-30 07:50:52 +00:00
|
|
|
|
|
|
|
# This source file takes an unusually large amount of time to
|
|
|
|
# compile. Build it separately to avoid bottlenecks.
|
|
|
|
"src/builtins/builtins-regexp-gen.cc",
|
2017-08-09 08:11:21 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2017-03-21 11:17:41 +00:00
|
|
|
if (v8_current_cpu == "x86") {
|
|
|
|
sources += [
|
|
|
|
### gcmole(arch:ia32) ###
|
|
|
|
"src/builtins/ia32/builtins-ia32.cc",
|
|
|
|
]
|
|
|
|
} else if (v8_current_cpu == "x64") {
|
|
|
|
sources += [
|
|
|
|
### gcmole(arch:x64) ###
|
|
|
|
"src/builtins/x64/builtins-x64.cc",
|
|
|
|
]
|
|
|
|
} else if (v8_current_cpu == "arm") {
|
|
|
|
sources += [
|
|
|
|
### gcmole(arch:arm) ###
|
|
|
|
"src/builtins/arm/builtins-arm.cc",
|
|
|
|
]
|
|
|
|
} else if (v8_current_cpu == "arm64") {
|
|
|
|
sources += [
|
|
|
|
### gcmole(arch:arm64) ###
|
|
|
|
"src/builtins/arm64/builtins-arm64.cc",
|
|
|
|
]
|
|
|
|
} else if (v8_current_cpu == "mips" || v8_current_cpu == "mipsel") {
|
|
|
|
sources += [
|
|
|
|
### gcmole(arch:mipsel) ###
|
|
|
|
"src/builtins/mips/builtins-mips.cc",
|
|
|
|
]
|
|
|
|
} else if (v8_current_cpu == "mips64" || v8_current_cpu == "mips64el") {
|
|
|
|
sources += [
|
|
|
|
### gcmole(arch:mips64el) ###
|
|
|
|
"src/builtins/mips64/builtins-mips64.cc",
|
|
|
|
]
|
|
|
|
} else if (v8_current_cpu == "ppc" || v8_current_cpu == "ppc64") {
|
|
|
|
sources += [
|
|
|
|
### gcmole(arch:ppc) ###
|
|
|
|
"src/builtins/ppc/builtins-ppc.cc",
|
|
|
|
]
|
|
|
|
} else if (v8_current_cpu == "s390" || v8_current_cpu == "s390x") {
|
|
|
|
sources += [
|
|
|
|
### gcmole(arch:s390) ###
|
|
|
|
"src/builtins/s390/builtins-s390.cc",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2017-05-05 15:59:08 +00:00
|
|
|
if (!v8_enable_i18n_support) {
|
|
|
|
sources -= [ "src/builtins/builtins-intl-gen.cc" ]
|
|
|
|
}
|
|
|
|
|
2017-03-16 11:32:01 +00:00
|
|
|
configs = [ ":internal_config" ]
|
|
|
|
}
|
|
|
|
|
2017-09-06 10:48:08 +00:00
|
|
|
v8_source_set("v8_init") {
|
2017-04-07 13:31:29 +00:00
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
|
|
|
|
|
|
|
deps = [
|
2017-09-06 10:48:08 +00:00
|
|
|
":v8_initializers",
|
2017-04-07 13:31:29 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
### gcmole(all) ###
|
|
|
|
"src/setup-isolate-full.cc",
|
|
|
|
]
|
2018-07-09 17:04:28 +00:00
|
|
|
if (v8_enable_i18n_support) {
|
|
|
|
public_deps = [
|
|
|
|
"//third_party/icu",
|
|
|
|
]
|
|
|
|
}
|
2017-04-07 13:31:29 +00:00
|
|
|
|
|
|
|
configs = [ ":internal_config" ]
|
|
|
|
}
|
|
|
|
|
2017-01-12 20:51:37 +00:00
|
|
|
# This is split out to be a non-code containing target that the Chromium browser
|
|
|
|
# DLL can depend upon to get only a version string.
|
2017-02-09 13:28:10 +00:00
|
|
|
v8_header_set("v8_version") {
|
2017-01-12 20:51:37 +00:00
|
|
|
configs = [ ":internal_config" ]
|
|
|
|
|
|
|
|
sources = [
|
2017-04-27 15:14:41 +00:00
|
|
|
"include/v8-value-serializer-version.h",
|
2017-01-12 20:51:37 +00:00
|
|
|
"include/v8-version-string.h",
|
|
|
|
"include/v8-version.h",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2017-05-02 08:49:38 +00:00
|
|
|
# This is split out to be a non-code containing target that the Chromium browser
|
|
|
|
# can depend upon to get basic v8 types.
|
|
|
|
v8_header_set("v8_headers") {
|
|
|
|
configs = [ ":internal_config" ]
|
|
|
|
|
|
|
|
sources = [
|
2018-09-07 09:03:35 +00:00
|
|
|
"include/v8-internal.h",
|
2017-05-02 08:49:38 +00:00
|
|
|
"include/v8.h",
|
|
|
|
"include/v8config.h",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":v8_version",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-05-11 10:17:37 +00:00
|
|
|
v8_source_set("v8_base") {
|
2014-09-09 08:57:29 +00:00
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
2014-05-05 11:06:26 +00:00
|
|
|
|
2017-06-13 14:21:07 +00:00
|
|
|
# Split static libraries on windows into two.
|
|
|
|
split_count = 2
|
|
|
|
|
2014-05-05 11:06:26 +00:00
|
|
|
sources = [
|
2016-05-24 12:46:58 +00:00
|
|
|
"//base/trace_event/common/trace_event_common.h",
|
2016-09-21 11:44:10 +00:00
|
|
|
|
|
|
|
### gcmole(all) ###
|
2018-09-10 12:55:45 +00:00
|
|
|
"$target_gen_dir/builtins-generated/bytecodes-builtins-list.h",
|
2017-03-31 08:24:34 +00:00
|
|
|
"include/v8-inspector-protocol.h",
|
|
|
|
"include/v8-inspector.h",
|
2018-09-07 09:03:35 +00:00
|
|
|
"include/v8-internal.h",
|
2015-06-27 19:39:42 +00:00
|
|
|
"include/v8-platform.h",
|
|
|
|
"include/v8-profiler.h",
|
|
|
|
"include/v8-testing.h",
|
|
|
|
"include/v8-util.h",
|
|
|
|
"include/v8.h",
|
|
|
|
"include/v8config.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/accessors.cc",
|
|
|
|
"src/accessors.h",
|
2015-10-23 08:28:25 +00:00
|
|
|
"src/address-map.cc",
|
|
|
|
"src/address-map.h",
|
2018-09-12 10:35:23 +00:00
|
|
|
"src/allocation-site-scopes-inl.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/allocation-site-scopes.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/allocation.cc",
|
|
|
|
"src/allocation.h",
|
2016-06-07 09:48:04 +00:00
|
|
|
"src/api-arguments-inl.h",
|
2018-07-23 12:37:45 +00:00
|
|
|
"src/api-arguments.cc",
|
2016-03-10 12:14:46 +00:00
|
|
|
"src/api-arguments.h",
|
2015-02-04 13:01:34 +00:00
|
|
|
"src/api-natives.cc",
|
|
|
|
"src/api-natives.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/api.cc",
|
|
|
|
"src/api.h",
|
2018-08-02 14:10:40 +00:00
|
|
|
"src/arguments-inl.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/arguments.cc",
|
|
|
|
"src/arguments.h",
|
2018-05-07 13:33:53 +00:00
|
|
|
"src/asan.h",
|
2016-07-01 05:26:58 +00:00
|
|
|
"src/asmjs/asm-js.cc",
|
|
|
|
"src/asmjs/asm-js.h",
|
2017-03-16 18:10:45 +00:00
|
|
|
"src/asmjs/asm-names.h",
|
2017-03-24 05:53:50 +00:00
|
|
|
"src/asmjs/asm-parser.cc",
|
|
|
|
"src/asmjs/asm-parser.h",
|
2017-03-16 18:10:45 +00:00
|
|
|
"src/asmjs/asm-scanner.cc",
|
|
|
|
"src/asmjs/asm-scanner.h",
|
2016-07-01 05:26:58 +00:00
|
|
|
"src/asmjs/asm-types.cc",
|
|
|
|
"src/asmjs/asm-types.h",
|
2016-10-10 17:57:30 +00:00
|
|
|
"src/asmjs/switch-logic.cc",
|
|
|
|
"src/asmjs/switch-logic.h",
|
2018-08-17 08:35:18 +00:00
|
|
|
"src/assembler-arch-inl.h",
|
2018-04-27 12:59:22 +00:00
|
|
|
"src/assembler-arch.h",
|
2016-12-20 22:55:51 +00:00
|
|
|
"src/assembler-inl.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/assembler.cc",
|
|
|
|
"src/assembler.h",
|
|
|
|
"src/assert-scope.cc",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/assert-scope.h",
|
2016-11-28 11:40:22 +00:00
|
|
|
"src/ast/ast-function-literal-id-reindexer.cc",
|
|
|
|
"src/ast/ast-function-literal-id-reindexer.h",
|
2017-07-12 13:06:09 +00:00
|
|
|
"src/ast/ast-source-ranges.h",
|
2016-07-25 08:25:49 +00:00
|
|
|
"src/ast/ast-traversal-visitor.h",
|
2015-11-26 16:22:34 +00:00
|
|
|
"src/ast/ast-value-factory.cc",
|
|
|
|
"src/ast/ast-value-factory.h",
|
|
|
|
"src/ast/ast.cc",
|
|
|
|
"src/ast/ast.h",
|
2016-08-27 07:08:25 +00:00
|
|
|
"src/ast/context-slot-cache.cc",
|
|
|
|
"src/ast/context-slot-cache.h",
|
2015-11-26 16:22:34 +00:00
|
|
|
"src/ast/modules.cc",
|
|
|
|
"src/ast/modules.h",
|
|
|
|
"src/ast/prettyprinter.cc",
|
|
|
|
"src/ast/prettyprinter.h",
|
2018-09-12 13:41:10 +00:00
|
|
|
"src/ast/scopes-inl.h",
|
2015-11-26 16:22:34 +00:00
|
|
|
"src/ast/scopes.cc",
|
|
|
|
"src/ast/scopes.h",
|
|
|
|
"src/ast/variables.cc",
|
|
|
|
"src/ast/variables.h",
|
2014-09-24 07:08:27 +00:00
|
|
|
"src/bailout-reason.cc",
|
|
|
|
"src/bailout-reason.h",
|
2014-09-29 07:29:14 +00:00
|
|
|
"src/basic-block-profiler.cc",
|
|
|
|
"src/basic-block-profiler.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/bignum-dtoa.cc",
|
|
|
|
"src/bignum-dtoa.h",
|
|
|
|
"src/bignum.cc",
|
|
|
|
"src/bignum.h",
|
2014-10-31 10:44:04 +00:00
|
|
|
"src/bit-vector.cc",
|
|
|
|
"src/bit-vector.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/bootstrapper.cc",
|
|
|
|
"src/bootstrapper.h",
|
2017-07-20 09:41:09 +00:00
|
|
|
"src/boxed-float.h",
|
2016-07-25 19:15:01 +00:00
|
|
|
"src/builtins/builtins-api.cc",
|
2016-07-18 13:12:05 +00:00
|
|
|
"src/builtins/builtins-array.cc",
|
2016-07-20 07:38:14 +00:00
|
|
|
"src/builtins/builtins-arraybuffer.cc",
|
2017-09-20 05:32:15 +00:00
|
|
|
"src/builtins/builtins-bigint.cc",
|
2016-07-20 07:38:14 +00:00
|
|
|
"src/builtins/builtins-boolean.cc",
|
2016-07-25 19:15:01 +00:00
|
|
|
"src/builtins/builtins-call.cc",
|
2016-07-22 10:12:24 +00:00
|
|
|
"src/builtins/builtins-callsite.cc",
|
2017-06-08 19:13:17 +00:00
|
|
|
"src/builtins/builtins-collections.cc",
|
2017-04-18 20:50:30 +00:00
|
|
|
"src/builtins/builtins-console.cc",
|
2016-12-28 11:43:16 +00:00
|
|
|
"src/builtins/builtins-constructor.h",
|
2016-07-20 07:38:14 +00:00
|
|
|
"src/builtins/builtins-dataview.cc",
|
|
|
|
"src/builtins/builtins-date.cc",
|
2017-03-29 09:56:08 +00:00
|
|
|
"src/builtins/builtins-definitions.h",
|
2017-03-20 10:55:37 +00:00
|
|
|
"src/builtins/builtins-descriptors.h",
|
2016-07-20 13:02:36 +00:00
|
|
|
"src/builtins/builtins-error.cc",
|
2016-07-20 07:38:14 +00:00
|
|
|
"src/builtins/builtins-function.cc",
|
|
|
|
"src/builtins/builtins-global.cc",
|
|
|
|
"src/builtins/builtins-internal.cc",
|
2016-07-25 11:44:33 +00:00
|
|
|
"src/builtins/builtins-interpreter.cc",
|
2017-03-22 23:06:36 +00:00
|
|
|
"src/builtins/builtins-intl.cc",
|
2016-07-20 07:38:14 +00:00
|
|
|
"src/builtins/builtins-json.cc",
|
|
|
|
"src/builtins/builtins-math.cc",
|
|
|
|
"src/builtins/builtins-number.cc",
|
|
|
|
"src/builtins/builtins-object.cc",
|
2017-07-17 19:14:20 +00:00
|
|
|
"src/builtins/builtins-promise.cc",
|
2016-07-20 07:38:14 +00:00
|
|
|
"src/builtins/builtins-reflect.cc",
|
2016-09-30 07:24:20 +00:00
|
|
|
"src/builtins/builtins-regexp.cc",
|
2016-07-20 07:38:14 +00:00
|
|
|
"src/builtins/builtins-sharedarraybuffer.cc",
|
|
|
|
"src/builtins/builtins-string.cc",
|
|
|
|
"src/builtins/builtins-symbol.cc",
|
2018-07-18 18:08:21 +00:00
|
|
|
"src/builtins/builtins-trace.cc",
|
2018-04-18 07:07:10 +00:00
|
|
|
"src/builtins/builtins-typed-array.cc",
|
2018-08-02 14:10:40 +00:00
|
|
|
"src/builtins/builtins-utils-inl.h",
|
2016-07-18 13:12:05 +00:00
|
|
|
"src/builtins/builtins-utils.h",
|
2016-07-14 06:26:03 +00:00
|
|
|
"src/builtins/builtins.cc",
|
|
|
|
"src/builtins/builtins.h",
|
2018-02-21 14:16:10 +00:00
|
|
|
"src/builtins/constants-table-builder.cc",
|
|
|
|
"src/builtins/constants-table-builder.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/cached-powers.cc",
|
|
|
|
"src/cached-powers.h",
|
2017-03-16 14:22:12 +00:00
|
|
|
"src/callable.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/cancelable-task.cc",
|
|
|
|
"src/cancelable-task.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/char-predicates-inl.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/char-predicates.cc",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/char-predicates.h",
|
|
|
|
"src/checks.h",
|
2016-06-15 13:22:39 +00:00
|
|
|
"src/code-events.h",
|
2014-09-11 13:18:58 +00:00
|
|
|
"src/code-factory.cc",
|
|
|
|
"src/code-factory.h",
|
2018-04-18 09:45:35 +00:00
|
|
|
"src/code-reference.cc",
|
|
|
|
"src/code-reference.h",
|
2016-04-18 11:57:06 +00:00
|
|
|
"src/code-stub-assembler.cc",
|
|
|
|
"src/code-stub-assembler.h",
|
2017-03-22 12:00:50 +00:00
|
|
|
"src/code-stubs-utils.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/code-stubs.cc",
|
|
|
|
"src/code-stubs.h",
|
2018-07-12 11:40:37 +00:00
|
|
|
"src/code-tracer.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/codegen.cc",
|
|
|
|
"src/codegen.h",
|
2016-03-01 14:42:57 +00:00
|
|
|
"src/collector.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/compilation-cache.cc",
|
|
|
|
"src/compilation-cache.h",
|
2014-10-23 09:14:35 +00:00
|
|
|
"src/compilation-statistics.cc",
|
|
|
|
"src/compilation-statistics.h",
|
2016-07-22 12:19:50 +00:00
|
|
|
"src/compiler-dispatcher/compiler-dispatcher-job.cc",
|
|
|
|
"src/compiler-dispatcher/compiler-dispatcher-job.h",
|
2016-10-14 08:12:16 +00:00
|
|
|
"src/compiler-dispatcher/compiler-dispatcher-tracer.cc",
|
|
|
|
"src/compiler-dispatcher/compiler-dispatcher-tracer.h",
|
2016-12-12 15:35:41 +00:00
|
|
|
"src/compiler-dispatcher/compiler-dispatcher.cc",
|
|
|
|
"src/compiler-dispatcher/compiler-dispatcher.h",
|
2016-07-20 12:53:33 +00:00
|
|
|
"src/compiler-dispatcher/optimizing-compile-dispatcher.cc",
|
|
|
|
"src/compiler-dispatcher/optimizing-compile-dispatcher.h",
|
2017-07-27 13:33:53 +00:00
|
|
|
"src/compiler-dispatcher/unoptimized-compile-job.cc",
|
|
|
|
"src/compiler-dispatcher/unoptimized-compile-job.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/compiler.cc",
|
|
|
|
"src/compiler.h",
|
2014-09-02 11:36:55 +00:00
|
|
|
"src/compiler/access-builder.cc",
|
2014-08-28 14:35:11 +00:00
|
|
|
"src/compiler/access-builder.h",
|
2015-11-02 18:29:47 +00:00
|
|
|
"src/compiler/access-info.cc",
|
|
|
|
"src/compiler/access-info.h",
|
2015-01-26 18:35:04 +00:00
|
|
|
"src/compiler/all-nodes.cc",
|
|
|
|
"src/compiler/all-nodes.h",
|
2017-10-12 10:42:26 +00:00
|
|
|
"src/compiler/allocation-builder.h",
|
2014-09-29 07:29:14 +00:00
|
|
|
"src/compiler/basic-block-instrumentor.cc",
|
|
|
|
"src/compiler/basic-block-instrumentor.h",
|
2015-10-17 17:50:11 +00:00
|
|
|
"src/compiler/branch-elimination.cc",
|
|
|
|
"src/compiler/branch-elimination.h",
|
2016-11-22 18:05:03 +00:00
|
|
|
"src/compiler/bytecode-analysis.cc",
|
|
|
|
"src/compiler/bytecode-analysis.h",
|
2015-09-10 16:21:34 +00:00
|
|
|
"src/compiler/bytecode-graph-builder.cc",
|
|
|
|
"src/compiler/bytecode-graph-builder.h",
|
2016-11-29 12:26:54 +00:00
|
|
|
"src/compiler/bytecode-liveness-map.cc",
|
|
|
|
"src/compiler/bytecode-liveness-map.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/compiler/c-linkage.cc",
|
2016-06-01 08:38:32 +00:00
|
|
|
"src/compiler/checkpoint-elimination.cc",
|
|
|
|
"src/compiler/checkpoint-elimination.h",
|
2016-04-18 11:57:06 +00:00
|
|
|
"src/compiler/code-assembler.cc",
|
|
|
|
"src/compiler/code-assembler.h",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/code-generator-impl.h",
|
|
|
|
"src/compiler/code-generator.cc",
|
|
|
|
"src/compiler/code-generator.h",
|
2014-12-23 14:12:04 +00:00
|
|
|
"src/compiler/common-node-cache.cc",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/common-node-cache.h",
|
2014-12-22 13:06:34 +00:00
|
|
|
"src/compiler/common-operator-reducer.cc",
|
|
|
|
"src/compiler/common-operator-reducer.h",
|
2014-09-12 11:59:26 +00:00
|
|
|
"src/compiler/common-operator.cc",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/common-operator.h",
|
2018-07-06 11:05:49 +00:00
|
|
|
"src/compiler/compilation-dependencies.cc",
|
|
|
|
"src/compiler/compilation-dependencies.h",
|
This CL enables precise source positions for all V8 compilers. It merges compiler::SourcePosition and internal::SourcePosition to a single class used throughout the codebase. The new internal::SourcePosition instances store an id identifying an inlined function in addition to a script offset.
SourcePosition::InliningId() refers to a the new table DeoptimizationInputData::InliningPositions(), which provides the following data for every inlining id:
- The inlined SharedFunctionInfo as an offset into DeoptimizationInfo::LiteralArray
- The SourcePosition of the inlining. Recursively, this yields the full inlining stack.
Before the Code object is created, the same information can be found in CompilationInfo::inlined_functions().
If SourcePosition::InliningId() is SourcePosition::kNotInlined, it refers to the outer (non-inlined) function.
So every SourcePosition has full information about its inlining stack, as long as the corresponding Code object is known. The internal represenation of a source position is a positive 64bit integer.
All compilers create now appropriate source positions for inlined functions. In the case of Turbofan, this required using AstGraphBuilderWithPositions for inlined functions too. So this class is now moved to a header file.
At the moment, the additional information in source positions is only used in --trace-deopt and --code-comments. The profiler needs to be updated, at the moment it gets the correct script offsets from the deopt info, but the wrong script id from the reconstructed deopt stack, which can lead to wrong outputs. This should be resolved by making the profiler use the new inlining information for deopts.
I activated the inlined deoptimization tests in test-cpu-profiler.cc for Turbofan, changing them to a case where the deopt stack and the inlining position agree. It is currently still broken for other cases.
The following additional changes were necessary:
- The source position table (internal::SourcePositionTableBuilder etc.) supports now 64bit source positions. Encoding source positions in a single 64bit int together with the difference encoding in the source position table results in very little overhead for the inlining id, since only 12% of the source positions in Octane have a changed inlining id.
- The class HPositionInfo was effectively dead code and is now removed.
- SourcePosition has new printing and information facilities, including computing a full inlining stack.
- I had to rename compiler/source-position.{h,cc} to compiler/compiler-source-position-table.{h,cc} to avoid clashes with the new src/source-position.cc file.
- I wrote the new wrapper PodArray for ByteArray. It is a template working with any POD-type. This is used in DeoptimizationInputData::InliningPositions().
- I removed HInlinedFunctionInfo and HGraph::inlined_function_infos, because they were only used for the now obsolete Crankshaft inlining ids.
- Crankshaft managed a list of inlined functions in Lithium: LChunk::inlined_functions. This is an analog structure to CompilationInfo::inlined_functions. So I removed LChunk::inlined_functions and made Crankshaft use CompilationInfo::inlined_functions instead, because this was necessary to register the offsets into the literal array in a uniform way. This is a safe change because LChunk::inlined_functions has no other uses and the functions in CompilationInfo::inlined_functions have a strictly longer lifespan, being created earlier (in Hydrogen already).
BUG=v8:5432
Review-Url: https://codereview.chromium.org/2451853002
Cr-Commit-Position: refs/heads/master@{#40975}
2016-11-14 17:21:37 +00:00
|
|
|
"src/compiler/compiler-source-position-table.cc",
|
|
|
|
"src/compiler/compiler-source-position-table.h",
|
[turbofan] Optimize array destructuring
This CL introduces type narrowing and constant folding reducers
to constant fold code that comes out of inlined destructuring
of arrays. In particular, array iterator introduces code that
contains a phi of a temporary array that blocks escape analysis.
The phi comes from conditional that can be evaluated statically
(i.e., constant folded), so with better constant folding we
allow escape analysis to get rid of the temporary array.
On a quick micro-benchmark below, we see more than 6x improvement.
This is close to the hand-optimized version - if we replace
body of f with 'return b + a', we get 220ms (versus 218ms with
destructuring).
function f(a, b) {
[b, a] = [a, b];
return a + b;
}
function sum(count) {
let s = 0;
for (let i = 0; i < count; i++) {
s += f(1, 2);
}
return s;
}
// Warm up
sum(1e5); sum(1e5);
console.time("destructure array");
sum(1e8);
console.timeEnd("destructure array");
console.timeEnd: destructure array, 213.526000
console.timeEnd: destructure array, 1503.537000
Bug: v8:7728
Change-Id: Ib7aec1d5897989e6adb1af1eddd516d8b3866db5
Reviewed-on: https://chromium-review.googlesource.com/1047672
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53048}
2018-05-07 20:45:11 +00:00
|
|
|
"src/compiler/constant-folding-reducer.cc",
|
|
|
|
"src/compiler/constant-folding-reducer.h",
|
2015-04-16 06:04:43 +00:00
|
|
|
"src/compiler/control-equivalence.cc",
|
2014-12-02 15:56:22 +00:00
|
|
|
"src/compiler/control-equivalence.h",
|
2015-02-17 13:29:31 +00:00
|
|
|
"src/compiler/control-flow-optimizer.cc",
|
|
|
|
"src/compiler/control-flow-optimizer.h",
|
[turbofan] Proper dead code elimination as regular reducer.
The three different concerns that the ControlReducer used to deal with
are now properly separated into
a.) DeadCodeElimination, which is a regular AdvancedReducer, that
propagates Dead via control edges,
b.) CommonOperatorReducer, which does strength reduction on common
operators (i.e. Branch, Phi, and friends), and
c.) GraphTrimming, which removes dead->live edges from the graph.
This will make it possible to run the DeadCodeElimination together with
other passes that actually introduce Dead nodes, i.e. typed lowering;
and it opens the door for general inlining without two stage fix point
iteration.
To make the DeadCodeElimination easier and more uniform, we basically
reverted the introduction of DeadValue and DeadEffect, and changed the
Dead operator to produce control, value and effect. Note however that
this is not a requirement, but merely a way to make dead propagation
easier and more uniform. We could always go back and decide to have
different Dead operators if some other change requires that.
Note that there are several additional opportunities for cleanup now,
i.e. OSR deconstruction could be a regular reducer now, and we don't
need to use TheHole as dead value marker in the GraphReducer. And we can
actually run the dead code elimination together with the other passes
instead of using separate passes over the graph. We will do this in
follow up CLs.
R=jarin@chromium.org, mstarzinger@chromium.org
Review URL: https://codereview.chromium.org/1193833002
Cr-Commit-Position: refs/heads/master@{#29146}
2015-06-19 12:07:17 +00:00
|
|
|
"src/compiler/dead-code-elimination.cc",
|
|
|
|
"src/compiler/dead-code-elimination.h",
|
2014-11-04 14:37:22 +00:00
|
|
|
"src/compiler/diamond.h",
|
2016-04-18 08:28:33 +00:00
|
|
|
"src/compiler/effect-control-linearizer.cc",
|
|
|
|
"src/compiler/effect-control-linearizer.h",
|
2015-12-02 10:53:28 +00:00
|
|
|
"src/compiler/escape-analysis-reducer.cc",
|
|
|
|
"src/compiler/escape-analysis-reducer.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/compiler/escape-analysis.cc",
|
|
|
|
"src/compiler/escape-analysis.h",
|
2015-04-29 05:54:41 +00:00
|
|
|
"src/compiler/frame-elider.cc",
|
|
|
|
"src/compiler/frame-elider.h",
|
2015-05-11 08:03:03 +00:00
|
|
|
"src/compiler/frame-states.cc",
|
|
|
|
"src/compiler/frame-states.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/compiler/frame.cc",
|
|
|
|
"src/compiler/frame.h",
|
2018-02-01 12:23:16 +00:00
|
|
|
"src/compiler/functional-list.h",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/gap-resolver.cc",
|
|
|
|
"src/compiler/gap-resolver.h",
|
2017-01-02 15:50:55 +00:00
|
|
|
"src/compiler/graph-assembler.cc",
|
|
|
|
"src/compiler/graph-assembler.h",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/graph-reducer.cc",
|
|
|
|
"src/compiler/graph-reducer.h",
|
2015-06-17 10:56:27 +00:00
|
|
|
"src/compiler/graph-trimmer.cc",
|
|
|
|
"src/compiler/graph-trimmer.h",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/graph-visualizer.cc",
|
|
|
|
"src/compiler/graph-visualizer.h",
|
|
|
|
"src/compiler/graph.cc",
|
|
|
|
"src/compiler/graph.h",
|
|
|
|
"src/compiler/instruction-codes.h",
|
2015-12-15 14:51:43 +00:00
|
|
|
"src/compiler/instruction-scheduler.cc",
|
|
|
|
"src/compiler/instruction-scheduler.h",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/instruction-selector-impl.h",
|
|
|
|
"src/compiler/instruction-selector.cc",
|
|
|
|
"src/compiler/instruction-selector.h",
|
|
|
|
"src/compiler/instruction.cc",
|
|
|
|
"src/compiler/instruction.h",
|
2016-02-04 09:40:55 +00:00
|
|
|
"src/compiler/int64-lowering.cc",
|
|
|
|
"src/compiler/int64-lowering.h",
|
2015-11-13 12:19:37 +00:00
|
|
|
"src/compiler/js-call-reducer.cc",
|
|
|
|
"src/compiler/js-call-reducer.h",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/js-context-specialization.cc",
|
|
|
|
"src/compiler/js-context-specialization.h",
|
2016-02-08 12:33:44 +00:00
|
|
|
"src/compiler/js-create-lowering.cc",
|
|
|
|
"src/compiler/js-create-lowering.h",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/js-generic-lowering.cc",
|
|
|
|
"src/compiler/js-generic-lowering.h",
|
|
|
|
"src/compiler/js-graph.cc",
|
|
|
|
"src/compiler/js-graph.h",
|
2018-06-07 07:03:46 +00:00
|
|
|
"src/compiler/js-heap-broker.cc",
|
|
|
|
"src/compiler/js-heap-broker.h",
|
2018-07-23 14:43:22 +00:00
|
|
|
"src/compiler/js-heap-copy-reducer.cc",
|
|
|
|
"src/compiler/js-heap-copy-reducer.h",
|
2015-10-07 12:18:21 +00:00
|
|
|
"src/compiler/js-inlining-heuristic.cc",
|
|
|
|
"src/compiler/js-inlining-heuristic.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/compiler/js-inlining.cc",
|
|
|
|
"src/compiler/js-inlining.h",
|
2015-01-26 09:05:47 +00:00
|
|
|
"src/compiler/js-intrinsic-lowering.cc",
|
|
|
|
"src/compiler/js-intrinsic-lowering.h",
|
2015-10-19 08:20:51 +00:00
|
|
|
"src/compiler/js-native-context-specialization.cc",
|
|
|
|
"src/compiler/js-native-context-specialization.h",
|
2014-09-30 10:42:44 +00:00
|
|
|
"src/compiler/js-operator.cc",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/js-operator.h",
|
2017-02-14 14:05:34 +00:00
|
|
|
"src/compiler/js-type-hint-lowering.cc",
|
|
|
|
"src/compiler/js-type-hint-lowering.h",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/js-typed-lowering.cc",
|
|
|
|
"src/compiler/js-typed-lowering.h",
|
2014-11-26 12:41:46 +00:00
|
|
|
"src/compiler/jump-threading.cc",
|
|
|
|
"src/compiler/jump-threading.h",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/linkage.cc",
|
|
|
|
"src/compiler/linkage.h",
|
[turbofan] Deferred blocks splintering.
This change encompasses what is necessary to enable stack checks in loops without suffering large regressions.
Primarily, it consists of a new mechanism for dealing with deferred blocks by "splintering", rather than splitting, inside deferred blocks.
My initial change was splitting along deferred block boundaries, but the regression introduced by stackchecks wasn't resolved conclusively. After investigation, it appears that just splitting ranges along cold block boundaries leads to a greater opportunity for moves on the hot path, hence the suboptimal outcome.
The alternative "splinters" ranges rather than splitting them. While splitting creates 2 ranges and links them (parent-child), in contrast, splintering creates a new independent range with no parent-child relation to the original. The original range appears as if it has a liveness hole in the place of the splintered one. All thus obtained ranges are then register allocated with no change to the register allocator.
The splinters (cold blocks) do not conflict with the hot path ranges, by construction. The hot path ones have less pressure to split, because we remove a source of conflicts. After allocation, we merge the splinters back to their original ranges and continue the pipeline. We leverage the previous changes made for deferred blocks (determining where to spill, for example).
Review URL: https://codereview.chromium.org/1305393003
Cr-Commit-Position: refs/heads/master@{#30357}
2015-08-25 14:47:26 +00:00
|
|
|
"src/compiler/live-range-separator.cc",
|
|
|
|
"src/compiler/live-range-separator.h",
|
2014-12-05 07:59:04 +00:00
|
|
|
"src/compiler/load-elimination.cc",
|
|
|
|
"src/compiler/load-elimination.h",
|
2014-12-16 09:36:16 +00:00
|
|
|
"src/compiler/loop-analysis.cc",
|
|
|
|
"src/compiler/loop-analysis.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/compiler/loop-peeling.cc",
|
2016-07-27 05:50:39 +00:00
|
|
|
"src/compiler/loop-peeling.h",
|
|
|
|
"src/compiler/loop-variable-optimizer.cc",
|
|
|
|
"src/compiler/loop-variable-optimizer.h",
|
2016-10-05 08:27:53 +00:00
|
|
|
"src/compiler/machine-graph-verifier.cc",
|
|
|
|
"src/compiler/machine-graph-verifier.h",
|
2018-05-04 10:02:37 +00:00
|
|
|
"src/compiler/machine-graph.cc",
|
|
|
|
"src/compiler/machine-graph.h",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/machine-operator-reducer.cc",
|
|
|
|
"src/compiler/machine-operator-reducer.h",
|
2014-09-11 10:37:49 +00:00
|
|
|
"src/compiler/machine-operator.cc",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/machine-operator.h",
|
2016-05-10 10:11:06 +00:00
|
|
|
"src/compiler/memory-optimizer.cc",
|
|
|
|
"src/compiler/memory-optimizer.h",
|
2014-11-27 09:19:31 +00:00
|
|
|
"src/compiler/move-optimizer.cc",
|
|
|
|
"src/compiler/move-optimizer.h",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/node-aux-data.h",
|
|
|
|
"src/compiler/node-cache.cc",
|
|
|
|
"src/compiler/node-cache.h",
|
2015-01-07 14:42:38 +00:00
|
|
|
"src/compiler/node-marker.cc",
|
|
|
|
"src/compiler/node-marker.h",
|
2015-02-24 12:26:16 +00:00
|
|
|
"src/compiler/node-matchers.cc",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/node-matchers.h",
|
2018-05-18 14:04:36 +00:00
|
|
|
"src/compiler/node-origin-table.cc",
|
|
|
|
"src/compiler/node-origin-table.h",
|
2015-01-16 11:04:01 +00:00
|
|
|
"src/compiler/node-properties.cc",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/node-properties.h",
|
|
|
|
"src/compiler/node.cc",
|
|
|
|
"src/compiler/node.h",
|
2014-12-23 19:24:03 +00:00
|
|
|
"src/compiler/opcodes.cc",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/opcodes.h",
|
2016-06-02 09:20:50 +00:00
|
|
|
"src/compiler/operation-typer.cc",
|
|
|
|
"src/compiler/operation-typer.h",
|
2014-12-23 12:50:43 +00:00
|
|
|
"src/compiler/operator-properties.cc",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/operator-properties.h",
|
2014-09-02 11:36:55 +00:00
|
|
|
"src/compiler/operator.cc",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/operator.h",
|
2015-01-12 11:39:48 +00:00
|
|
|
"src/compiler/osr.cc",
|
|
|
|
"src/compiler/osr.h",
|
2017-07-31 09:05:39 +00:00
|
|
|
"src/compiler/persistent-map.h",
|
2014-10-23 09:14:35 +00:00
|
|
|
"src/compiler/pipeline-statistics.cc",
|
|
|
|
"src/compiler/pipeline-statistics.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/compiler/pipeline.cc",
|
|
|
|
"src/compiler/pipeline.h",
|
2017-06-16 09:34:04 +00:00
|
|
|
"src/compiler/property-access-builder.cc",
|
|
|
|
"src/compiler/property-access-builder.h",
|
2015-07-07 15:02:39 +00:00
|
|
|
"src/compiler/raw-machine-assembler.cc",
|
|
|
|
"src/compiler/raw-machine-assembler.h",
|
2016-06-23 08:56:42 +00:00
|
|
|
"src/compiler/redundancy-elimination.cc",
|
|
|
|
"src/compiler/redundancy-elimination.h",
|
2014-11-10 11:28:54 +00:00
|
|
|
"src/compiler/register-allocator-verifier.cc",
|
|
|
|
"src/compiler/register-allocator-verifier.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/compiler/register-allocator.cc",
|
|
|
|
"src/compiler/register-allocator.h",
|
2015-11-25 09:59:03 +00:00
|
|
|
"src/compiler/representation-change.cc",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/representation-change.h",
|
|
|
|
"src/compiler/schedule.cc",
|
|
|
|
"src/compiler/schedule.h",
|
|
|
|
"src/compiler/scheduler.cc",
|
|
|
|
"src/compiler/scheduler.h",
|
2014-11-03 15:17:08 +00:00
|
|
|
"src/compiler/select-lowering.cc",
|
|
|
|
"src/compiler/select-lowering.h",
|
2016-10-20 00:19:33 +00:00
|
|
|
"src/compiler/simd-scalar-lowering.cc",
|
|
|
|
"src/compiler/simd-scalar-lowering.h",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/simplified-lowering.cc",
|
|
|
|
"src/compiler/simplified-lowering.h",
|
2015-06-25 04:47:06 +00:00
|
|
|
"src/compiler/simplified-operator-reducer.cc",
|
|
|
|
"src/compiler/simplified-operator-reducer.h",
|
2014-09-02 11:36:55 +00:00
|
|
|
"src/compiler/simplified-operator.cc",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/simplified-operator.h",
|
2015-03-16 13:43:02 +00:00
|
|
|
"src/compiler/state-values-utils.cc",
|
|
|
|
"src/compiler/state-values-utils.h",
|
2016-06-23 15:13:32 +00:00
|
|
|
"src/compiler/store-store-elimination.cc",
|
|
|
|
"src/compiler/store-store-elimination.h",
|
2016-08-29 06:12:20 +00:00
|
|
|
"src/compiler/type-cache.cc",
|
|
|
|
"src/compiler/type-cache.h",
|
[turbofan] Optimize array destructuring
This CL introduces type narrowing and constant folding reducers
to constant fold code that comes out of inlined destructuring
of arrays. In particular, array iterator introduces code that
contains a phi of a temporary array that blocks escape analysis.
The phi comes from conditional that can be evaluated statically
(i.e., constant folded), so with better constant folding we
allow escape analysis to get rid of the temporary array.
On a quick micro-benchmark below, we see more than 6x improvement.
This is close to the hand-optimized version - if we replace
body of f with 'return b + a', we get 220ms (versus 218ms with
destructuring).
function f(a, b) {
[b, a] = [a, b];
return a + b;
}
function sum(count) {
let s = 0;
for (let i = 0; i < count; i++) {
s += f(1, 2);
}
return s;
}
// Warm up
sum(1e5); sum(1e5);
console.time("destructure array");
sum(1e8);
console.timeEnd("destructure array");
console.timeEnd: destructure array, 213.526000
console.timeEnd: destructure array, 1503.537000
Bug: v8:7728
Change-Id: Ib7aec1d5897989e6adb1af1eddd516d8b3866db5
Reviewed-on: https://chromium-review.googlesource.com/1047672
Reviewed-by: Benedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53048}
2018-05-07 20:45:11 +00:00
|
|
|
"src/compiler/type-narrowing-reducer.cc",
|
|
|
|
"src/compiler/type-narrowing-reducer.h",
|
2016-08-26 07:57:57 +00:00
|
|
|
"src/compiler/typed-optimization.cc",
|
|
|
|
"src/compiler/typed-optimization.h",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/typer.cc",
|
|
|
|
"src/compiler/typer.h",
|
2016-09-05 15:58:05 +00:00
|
|
|
"src/compiler/types.cc",
|
|
|
|
"src/compiler/types.h",
|
2016-07-15 15:04:32 +00:00
|
|
|
"src/compiler/unwinding-info-writer.h",
|
2014-09-04 11:13:35 +00:00
|
|
|
"src/compiler/value-numbering-reducer.cc",
|
|
|
|
"src/compiler/value-numbering-reducer.h",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/verifier.cc",
|
|
|
|
"src/compiler/verifier.h",
|
2016-01-05 18:06:34 +00:00
|
|
|
"src/compiler/wasm-compiler.cc",
|
|
|
|
"src/compiler/wasm-compiler.h",
|
2016-10-10 19:00:31 +00:00
|
|
|
"src/compiler/zone-stats.cc",
|
|
|
|
"src/compiler/zone-stats.h",
|
2015-09-01 09:25:19 +00:00
|
|
|
"src/contexts-inl.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/contexts.cc",
|
|
|
|
"src/contexts.h",
|
|
|
|
"src/conversions-inl.h",
|
|
|
|
"src/conversions.cc",
|
|
|
|
"src/conversions.h",
|
2016-05-11 12:59:46 +00:00
|
|
|
"src/counters-inl.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/counters.cc",
|
|
|
|
"src/counters.h",
|
|
|
|
"src/date.cc",
|
|
|
|
"src/date.h",
|
|
|
|
"src/dateparser-inl.h",
|
|
|
|
"src/dateparser.cc",
|
|
|
|
"src/dateparser.h",
|
2017-02-09 19:00:49 +00:00
|
|
|
"src/debug/debug-coverage.cc",
|
|
|
|
"src/debug/debug-coverage.h",
|
2015-08-04 12:08:56 +00:00
|
|
|
"src/debug/debug-evaluate.cc",
|
|
|
|
"src/debug/debug-evaluate.h",
|
|
|
|
"src/debug/debug-frames.cc",
|
|
|
|
"src/debug/debug-frames.h",
|
2016-10-18 15:14:56 +00:00
|
|
|
"src/debug/debug-interface.h",
|
2017-07-27 03:58:01 +00:00
|
|
|
"src/debug/debug-scope-iterator.cc",
|
|
|
|
"src/debug/debug-scope-iterator.h",
|
2015-08-04 12:08:56 +00:00
|
|
|
"src/debug/debug-scopes.cc",
|
|
|
|
"src/debug/debug-scopes.h",
|
2017-07-27 03:58:01 +00:00
|
|
|
"src/debug/debug-stack-trace-iterator.cc",
|
|
|
|
"src/debug/debug-stack-trace-iterator.h",
|
2017-09-08 10:51:50 +00:00
|
|
|
"src/debug/debug-type-profile.cc",
|
|
|
|
"src/debug/debug-type-profile.h",
|
2015-07-31 11:07:50 +00:00
|
|
|
"src/debug/debug.cc",
|
|
|
|
"src/debug/debug.h",
|
2016-12-05 13:32:05 +00:00
|
|
|
"src/debug/interface-types.h",
|
2015-07-31 11:07:50 +00:00
|
|
|
"src/debug/liveedit.cc",
|
|
|
|
"src/debug/liveedit.h",
|
2016-07-18 09:23:28 +00:00
|
|
|
"src/deoptimize-reason.cc",
|
|
|
|
"src/deoptimize-reason.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/deoptimizer.cc",
|
|
|
|
"src/deoptimizer.h",
|
2017-09-28 08:10:43 +00:00
|
|
|
"src/detachable-vector.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/disasm.h",
|
|
|
|
"src/disassembler.cc",
|
|
|
|
"src/disassembler.h",
|
|
|
|
"src/diy-fp.cc",
|
|
|
|
"src/diy-fp.h",
|
|
|
|
"src/double.h",
|
|
|
|
"src/dtoa.cc",
|
|
|
|
"src/dtoa.h",
|
2016-06-27 15:06:32 +00:00
|
|
|
"src/eh-frame.cc",
|
|
|
|
"src/eh-frame.h",
|
2018-07-23 12:37:45 +00:00
|
|
|
"src/elements-inl.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/elements-kind.cc",
|
|
|
|
"src/elements-kind.h",
|
|
|
|
"src/elements.cc",
|
|
|
|
"src/elements.h",
|
|
|
|
"src/execution.cc",
|
|
|
|
"src/execution.h",
|
|
|
|
"src/extensions/externalize-string-extension.cc",
|
|
|
|
"src/extensions/externalize-string-extension.h",
|
|
|
|
"src/extensions/free-buffer-extension.cc",
|
|
|
|
"src/extensions/free-buffer-extension.h",
|
|
|
|
"src/extensions/gc-extension.cc",
|
|
|
|
"src/extensions/gc-extension.h",
|
2016-04-27 11:10:41 +00:00
|
|
|
"src/extensions/ignition-statistics-extension.cc",
|
|
|
|
"src/extensions/ignition-statistics-extension.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/extensions/statistics-extension.cc",
|
|
|
|
"src/extensions/statistics-extension.h",
|
|
|
|
"src/extensions/trigger-failure-extension.cc",
|
|
|
|
"src/extensions/trigger-failure-extension.h",
|
2016-03-17 13:14:11 +00:00
|
|
|
"src/external-reference-table.cc",
|
|
|
|
"src/external-reference-table.h",
|
2018-03-09 11:57:08 +00:00
|
|
|
"src/external-reference.cc",
|
|
|
|
"src/external-reference.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/fast-dtoa.cc",
|
|
|
|
"src/fast-dtoa.h",
|
2017-02-07 14:05:02 +00:00
|
|
|
"src/feedback-vector-inl.h",
|
|
|
|
"src/feedback-vector.cc",
|
|
|
|
"src/feedback-vector.h",
|
2014-06-11 08:31:13 +00:00
|
|
|
"src/field-index-inl.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/field-index.h",
|
2016-02-16 10:22:23 +00:00
|
|
|
"src/field-type.cc",
|
|
|
|
"src/field-type.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/fixed-dtoa.cc",
|
|
|
|
"src/fixed-dtoa.h",
|
|
|
|
"src/flag-definitions.h",
|
|
|
|
"src/flags.cc",
|
|
|
|
"src/flags.h",
|
2017-08-03 09:35:57 +00:00
|
|
|
"src/frame-constants.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/frames-inl.h",
|
|
|
|
"src/frames.cc",
|
|
|
|
"src/frames.h",
|
2015-07-17 17:11:32 +00:00
|
|
|
"src/futex-emulation.cc",
|
|
|
|
"src/futex-emulation.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/gdb-jit.cc",
|
|
|
|
"src/gdb-jit.h",
|
|
|
|
"src/global-handles.cc",
|
|
|
|
"src/global-handles.h",
|
|
|
|
"src/globals.h",
|
2018-02-27 09:23:48 +00:00
|
|
|
"src/handler-table.cc",
|
|
|
|
"src/handler-table.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/handles-inl.h",
|
|
|
|
"src/handles.cc",
|
|
|
|
"src/handles.h",
|
2016-01-26 09:23:11 +00:00
|
|
|
"src/heap-symbols.h",
|
2017-11-20 16:47:13 +00:00
|
|
|
"src/heap/array-buffer-collector.cc",
|
|
|
|
"src/heap/array-buffer-collector.h",
|
2016-06-15 16:41:23 +00:00
|
|
|
"src/heap/array-buffer-tracker-inl.h",
|
2015-09-07 19:38:12 +00:00
|
|
|
"src/heap/array-buffer-tracker.cc",
|
|
|
|
"src/heap/array-buffer-tracker.h",
|
2017-08-30 11:09:09 +00:00
|
|
|
"src/heap/barrier.h",
|
2016-06-30 13:21:03 +00:00
|
|
|
"src/heap/code-stats.cc",
|
|
|
|
"src/heap/code-stats.h",
|
2017-03-06 15:19:36 +00:00
|
|
|
"src/heap/concurrent-marking.cc",
|
|
|
|
"src/heap/concurrent-marking.h",
|
2016-12-20 09:35:05 +00:00
|
|
|
"src/heap/embedder-tracing.cc",
|
|
|
|
"src/heap/embedder-tracing.h",
|
2018-04-09 19:11:22 +00:00
|
|
|
"src/heap/factory-inl.h",
|
|
|
|
"src/heap/factory.cc",
|
|
|
|
"src/heap/factory.h",
|
2014-08-20 10:33:03 +00:00
|
|
|
"src/heap/gc-idle-time-handler.cc",
|
|
|
|
"src/heap/gc-idle-time-handler.h",
|
2014-08-05 08:18:22 +00:00
|
|
|
"src/heap/gc-tracer.cc",
|
|
|
|
"src/heap/gc-tracer.h",
|
2018-06-07 12:00:16 +00:00
|
|
|
"src/heap/heap-controller.cc",
|
|
|
|
"src/heap/heap-controller.h",
|
2014-08-05 08:18:22 +00:00
|
|
|
"src/heap/heap-inl.h",
|
2018-07-24 20:13:40 +00:00
|
|
|
"src/heap/heap-write-barrier-inl.h",
|
|
|
|
"src/heap/heap-write-barrier.h",
|
2014-08-05 08:18:22 +00:00
|
|
|
"src/heap/heap.cc",
|
|
|
|
"src/heap/heap.h",
|
2016-09-15 13:14:33 +00:00
|
|
|
"src/heap/incremental-marking-inl.h",
|
2015-09-08 15:54:24 +00:00
|
|
|
"src/heap/incremental-marking-job.cc",
|
|
|
|
"src/heap/incremental-marking-job.h",
|
2014-08-05 08:18:22 +00:00
|
|
|
"src/heap/incremental-marking.cc",
|
|
|
|
"src/heap/incremental-marking.h",
|
2017-08-02 17:27:11 +00:00
|
|
|
"src/heap/invalidated-slots-inl.h",
|
|
|
|
"src/heap/invalidated-slots.cc",
|
|
|
|
"src/heap/invalidated-slots.h",
|
2018-02-06 16:20:46 +00:00
|
|
|
"src/heap/item-parallel-job.cc",
|
2017-05-16 20:57:05 +00:00
|
|
|
"src/heap/item-parallel-job.h",
|
2018-07-27 07:38:53 +00:00
|
|
|
"src/heap/local-allocator-inl.h",
|
2017-07-17 11:33:28 +00:00
|
|
|
"src/heap/local-allocator.h",
|
2014-08-05 08:18:22 +00:00
|
|
|
"src/heap/mark-compact-inl.h",
|
|
|
|
"src/heap/mark-compact.cc",
|
|
|
|
"src/heap/mark-compact.h",
|
2017-06-12 14:10:53 +00:00
|
|
|
"src/heap/marking.cc",
|
2016-07-12 15:08:55 +00:00
|
|
|
"src/heap/marking.h",
|
2015-07-07 11:37:44 +00:00
|
|
|
"src/heap/memory-reducer.cc",
|
|
|
|
"src/heap/memory-reducer.h",
|
2015-09-02 16:43:21 +00:00
|
|
|
"src/heap/object-stats.cc",
|
|
|
|
"src/heap/object-stats.h",
|
2014-08-07 12:21:01 +00:00
|
|
|
"src/heap/objects-visiting-inl.h",
|
|
|
|
"src/heap/objects-visiting.cc",
|
|
|
|
"src/heap/objects-visiting.h",
|
2016-02-16 12:34:30 +00:00
|
|
|
"src/heap/remembered-set.h",
|
2015-09-25 14:49:07 +00:00
|
|
|
"src/heap/scavenge-job.cc",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/heap/scavenge-job.h",
|
2015-09-14 11:44:20 +00:00
|
|
|
"src/heap/scavenger-inl.h",
|
|
|
|
"src/heap/scavenger.cc",
|
|
|
|
"src/heap/scavenger.h",
|
2016-02-08 08:51:02 +00:00
|
|
|
"src/heap/slot-set.h",
|
2014-08-05 08:18:22 +00:00
|
|
|
"src/heap/spaces-inl.h",
|
|
|
|
"src/heap/spaces.cc",
|
|
|
|
"src/heap/spaces.h",
|
2018-07-27 11:13:58 +00:00
|
|
|
"src/heap/store-buffer-inl.h",
|
2014-08-11 14:22:24 +00:00
|
|
|
"src/heap/store-buffer.cc",
|
|
|
|
"src/heap/store-buffer.h",
|
2017-12-06 17:35:07 +00:00
|
|
|
"src/heap/stress-marking-observer.cc",
|
|
|
|
"src/heap/stress-marking-observer.h",
|
2017-12-07 11:51:50 +00:00
|
|
|
"src/heap/stress-scavenge-observer.cc",
|
|
|
|
"src/heap/stress-scavenge-observer.h",
|
2017-11-27 17:29:51 +00:00
|
|
|
"src/heap/sweeper.cc",
|
|
|
|
"src/heap/sweeper.h",
|
2017-06-23 10:44:53 +00:00
|
|
|
"src/heap/worklist.h",
|
2014-08-22 14:36:54 +00:00
|
|
|
"src/ic/call-optimization.cc",
|
|
|
|
"src/ic/call-optimization.h",
|
2016-10-14 12:37:09 +00:00
|
|
|
"src/ic/handler-configuration-inl.h",
|
2017-07-28 07:01:59 +00:00
|
|
|
"src/ic/handler-configuration.cc",
|
2016-09-15 13:14:33 +00:00
|
|
|
"src/ic/handler-configuration.h",
|
2014-08-22 11:43:39 +00:00
|
|
|
"src/ic/ic-inl.h",
|
2016-12-07 16:58:24 +00:00
|
|
|
"src/ic/ic-stats.cc",
|
|
|
|
"src/ic/ic-stats.h",
|
2014-08-22 11:43:39 +00:00
|
|
|
"src/ic/ic.cc",
|
|
|
|
"src/ic/ic.h",
|
|
|
|
"src/ic/stub-cache.cc",
|
|
|
|
"src/ic/stub-cache.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/icu_util.cc",
|
|
|
|
"src/icu_util.h",
|
2015-08-28 13:00:59 +00:00
|
|
|
"src/identity-map.cc",
|
|
|
|
"src/identity-map.h",
|
2018-01-31 15:14:41 +00:00
|
|
|
"src/instruction-stream.cc",
|
|
|
|
"src/instruction-stream.h",
|
2014-08-29 10:40:02 +00:00
|
|
|
"src/interface-descriptors.cc",
|
|
|
|
"src/interface-descriptors.h",
|
2017-06-19 13:13:04 +00:00
|
|
|
"src/interpreter/block-coverage-builder.h",
|
2016-11-21 17:18:20 +00:00
|
|
|
"src/interpreter/bytecode-array-accessor.cc",
|
|
|
|
"src/interpreter/bytecode-array-accessor.h",
|
2015-08-18 13:46:43 +00:00
|
|
|
"src/interpreter/bytecode-array-builder.cc",
|
|
|
|
"src/interpreter/bytecode-array-builder.h",
|
2015-09-10 16:21:34 +00:00
|
|
|
"src/interpreter/bytecode-array-iterator.cc",
|
|
|
|
"src/interpreter/bytecode-array-iterator.h",
|
2016-12-05 13:03:07 +00:00
|
|
|
"src/interpreter/bytecode-array-random-iterator.cc",
|
|
|
|
"src/interpreter/bytecode-array-random-iterator.h",
|
2017-06-27 08:44:35 +00:00
|
|
|
"src/interpreter/bytecode-array-writer.cc",
|
|
|
|
"src/interpreter/bytecode-array-writer.h",
|
2016-07-15 12:03:04 +00:00
|
|
|
"src/interpreter/bytecode-decoder.cc",
|
|
|
|
"src/interpreter/bytecode-decoder.h",
|
|
|
|
"src/interpreter/bytecode-flags.cc",
|
|
|
|
"src/interpreter/bytecode-flags.h",
|
2015-08-18 13:46:43 +00:00
|
|
|
"src/interpreter/bytecode-generator.cc",
|
|
|
|
"src/interpreter/bytecode-generator.h",
|
2017-05-15 16:31:05 +00:00
|
|
|
"src/interpreter/bytecode-jump-table.h",
|
2016-08-15 13:10:41 +00:00
|
|
|
"src/interpreter/bytecode-label.cc",
|
2016-06-03 14:52:59 +00:00
|
|
|
"src/interpreter/bytecode-label.h",
|
2017-06-27 08:44:35 +00:00
|
|
|
"src/interpreter/bytecode-node.cc",
|
|
|
|
"src/interpreter/bytecode-node.h",
|
2016-09-22 16:34:16 +00:00
|
|
|
"src/interpreter/bytecode-operands.cc",
|
|
|
|
"src/interpreter/bytecode-operands.h",
|
2016-01-14 13:43:14 +00:00
|
|
|
"src/interpreter/bytecode-register-allocator.h",
|
2016-05-27 15:57:35 +00:00
|
|
|
"src/interpreter/bytecode-register-optimizer.cc",
|
|
|
|
"src/interpreter/bytecode-register-optimizer.h",
|
2016-07-15 12:03:04 +00:00
|
|
|
"src/interpreter/bytecode-register.cc",
|
|
|
|
"src/interpreter/bytecode-register.h",
|
2017-04-11 13:37:25 +00:00
|
|
|
"src/interpreter/bytecode-source-info.cc",
|
|
|
|
"src/interpreter/bytecode-source-info.h",
|
2015-10-01 17:22:58 +00:00
|
|
|
"src/interpreter/bytecode-traits.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/interpreter/bytecodes.cc",
|
|
|
|
"src/interpreter/bytecodes.h",
|
2016-01-05 19:08:11 +00:00
|
|
|
"src/interpreter/constant-array-builder.cc",
|
|
|
|
"src/interpreter/constant-array-builder.h",
|
2015-10-01 15:04:09 +00:00
|
|
|
"src/interpreter/control-flow-builders.cc",
|
|
|
|
"src/interpreter/control-flow-builders.h",
|
2016-01-20 10:46:18 +00:00
|
|
|
"src/interpreter/handler-table-builder.cc",
|
|
|
|
"src/interpreter/handler-table-builder.h",
|
2017-03-20 16:56:06 +00:00
|
|
|
"src/interpreter/interpreter-generator.h",
|
2016-03-22 11:35:09 +00:00
|
|
|
"src/interpreter/interpreter-intrinsics.cc",
|
|
|
|
"src/interpreter/interpreter-intrinsics.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/interpreter/interpreter.cc",
|
|
|
|
"src/interpreter/interpreter.h",
|
2017-04-21 08:35:12 +00:00
|
|
|
"src/intl.cc",
|
|
|
|
"src/intl.h",
|
2015-09-01 09:25:19 +00:00
|
|
|
"src/isolate-inl.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/isolate.cc",
|
|
|
|
"src/isolate.h",
|
2016-05-23 10:35:28 +00:00
|
|
|
"src/json-parser.cc",
|
2016-02-10 11:28:13 +00:00
|
|
|
"src/json-parser.h",
|
2016-05-23 10:35:28 +00:00
|
|
|
"src/json-stringifier.cc",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/json-stringifier.h",
|
2016-03-07 19:25:12 +00:00
|
|
|
"src/keys.cc",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/keys.h",
|
2017-01-20 14:21:34 +00:00
|
|
|
"src/label.h",
|
2014-11-11 10:24:52 +00:00
|
|
|
"src/layout-descriptor-inl.h",
|
|
|
|
"src/layout-descriptor.cc",
|
|
|
|
"src/layout-descriptor.h",
|
2016-09-15 13:14:33 +00:00
|
|
|
"src/locked-queue-inl.h",
|
|
|
|
"src/locked-queue.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/log-inl.h",
|
|
|
|
"src/log-utils.cc",
|
|
|
|
"src/log-utils.h",
|
|
|
|
"src/log.cc",
|
|
|
|
"src/log.h",
|
2016-09-06 14:56:56 +00:00
|
|
|
"src/lookup-cache-inl.h",
|
|
|
|
"src/lookup-cache.cc",
|
|
|
|
"src/lookup-cache.h",
|
2018-07-23 12:37:45 +00:00
|
|
|
"src/lookup-inl.h",
|
2014-06-11 09:59:14 +00:00
|
|
|
"src/lookup.cc",
|
|
|
|
"src/lookup.h",
|
2018-05-09 09:13:49 +00:00
|
|
|
"src/lsan.h",
|
2015-12-03 13:33:14 +00:00
|
|
|
"src/machine-type.cc",
|
|
|
|
"src/machine-type.h",
|
2017-03-15 11:38:48 +00:00
|
|
|
"src/macro-assembler-inl.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/macro-assembler.h",
|
2017-01-10 12:42:53 +00:00
|
|
|
"src/map-updater.cc",
|
|
|
|
"src/map-updater.h",
|
2018-09-24 13:25:07 +00:00
|
|
|
"src/math-random.cc",
|
|
|
|
"src/math-random.h",
|
2018-07-23 12:37:45 +00:00
|
|
|
"src/maybe-handles-inl.h",
|
|
|
|
"src/maybe-handles.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/messages.cc",
|
|
|
|
"src/messages.h",
|
|
|
|
"src/msan.h",
|
2015-11-13 12:32:08 +00:00
|
|
|
"src/objects-body-descriptors-inl.h",
|
|
|
|
"src/objects-body-descriptors.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/objects-debug.cc",
|
|
|
|
"src/objects-inl.h",
|
|
|
|
"src/objects-printer.cc",
|
|
|
|
"src/objects.cc",
|
|
|
|
"src/objects.h",
|
2018-04-30 13:27:37 +00:00
|
|
|
"src/objects/api-callbacks-inl.h",
|
|
|
|
"src/objects/api-callbacks.h",
|
2017-06-09 13:33:49 +00:00
|
|
|
"src/objects/arguments-inl.h",
|
|
|
|
"src/objects/arguments.h",
|
2017-09-11 13:16:27 +00:00
|
|
|
"src/objects/bigint.cc",
|
|
|
|
"src/objects/bigint.h",
|
2018-09-24 06:58:14 +00:00
|
|
|
"src/objects/builtin-function-id.h",
|
2017-10-13 13:24:26 +00:00
|
|
|
"src/objects/code-inl.h",
|
|
|
|
"src/objects/code.h",
|
2017-04-06 08:32:57 +00:00
|
|
|
"src/objects/compilation-cache-inl.h",
|
|
|
|
"src/objects/compilation-cache.h",
|
2017-05-23 12:17:09 +00:00
|
|
|
"src/objects/debug-objects-inl.h",
|
|
|
|
"src/objects/debug-objects.cc",
|
|
|
|
"src/objects/debug-objects.h",
|
2017-03-24 11:38:53 +00:00
|
|
|
"src/objects/descriptor-array.h",
|
2017-04-04 08:14:14 +00:00
|
|
|
"src/objects/dictionary.h",
|
2017-12-01 11:33:03 +00:00
|
|
|
"src/objects/fixed-array-inl.h",
|
|
|
|
"src/objects/fixed-array.h",
|
2017-03-24 14:15:36 +00:00
|
|
|
"src/objects/frame-array-inl.h",
|
|
|
|
"src/objects/frame-array.h",
|
2017-06-20 18:22:40 +00:00
|
|
|
"src/objects/hash-table-inl.h",
|
2017-04-06 08:32:57 +00:00
|
|
|
"src/objects/hash-table.h",
|
2018-07-02 14:02:35 +00:00
|
|
|
"src/objects/intl-objects-inl.h",
|
2017-04-21 08:35:12 +00:00
|
|
|
"src/objects/intl-objects.cc",
|
|
|
|
"src/objects/intl-objects.h",
|
2018-08-16 16:01:36 +00:00
|
|
|
"src/objects/js-array-buffer-inl.h",
|
2018-08-17 13:46:49 +00:00
|
|
|
"src/objects/js-array-buffer.cc",
|
2018-08-16 16:01:36 +00:00
|
|
|
"src/objects/js-array-buffer.h",
|
2017-10-13 15:06:23 +00:00
|
|
|
"src/objects/js-array-inl.h",
|
|
|
|
"src/objects/js-array.h",
|
2018-09-05 02:17:38 +00:00
|
|
|
"src/objects/js-break-iterator-inl.h",
|
|
|
|
"src/objects/js-break-iterator.cc",
|
|
|
|
"src/objects/js-break-iterator.h",
|
2018-08-08 09:23:07 +00:00
|
|
|
"src/objects/js-collator-inl.h",
|
|
|
|
"src/objects/js-collator.cc",
|
|
|
|
"src/objects/js-collator.h",
|
2017-12-01 11:40:51 +00:00
|
|
|
"src/objects/js-collection-inl.h",
|
|
|
|
"src/objects/js-collection.h",
|
2018-08-29 04:40:53 +00:00
|
|
|
"src/objects/js-date-time-format-inl.h",
|
|
|
|
"src/objects/js-date-time-format.cc",
|
|
|
|
"src/objects/js-date-time-format.h",
|
2018-07-20 06:54:47 +00:00
|
|
|
"src/objects/js-generator-inl.h",
|
|
|
|
"src/objects/js-generator.h",
|
2018-07-24 21:07:50 +00:00
|
|
|
"src/objects/js-list-format-inl.h",
|
|
|
|
"src/objects/js-list-format.cc",
|
|
|
|
"src/objects/js-list-format.h",
|
2018-05-15 20:50:46 +00:00
|
|
|
"src/objects/js-locale-inl.h",
|
|
|
|
"src/objects/js-locale.cc",
|
|
|
|
"src/objects/js-locale.h",
|
2018-09-04 18:32:51 +00:00
|
|
|
"src/objects/js-number-format-inl.h",
|
|
|
|
"src/objects/js-number-format.cc",
|
|
|
|
"src/objects/js-number-format.h",
|
2018-09-21 12:02:47 +00:00
|
|
|
"src/objects/js-objects-inl.h",
|
|
|
|
"src/objects/js-objects.h",
|
2018-08-06 09:31:26 +00:00
|
|
|
"src/objects/js-plural-rules-inl.h",
|
|
|
|
"src/objects/js-plural-rules.cc",
|
|
|
|
"src/objects/js-plural-rules.h",
|
2018-02-26 12:40:05 +00:00
|
|
|
"src/objects/js-promise-inl.h",
|
|
|
|
"src/objects/js-promise.h",
|
2018-07-17 08:42:36 +00:00
|
|
|
"src/objects/js-proxy-inl.h",
|
|
|
|
"src/objects/js-proxy.h",
|
2017-10-13 15:06:23 +00:00
|
|
|
"src/objects/js-regexp-inl.h",
|
2018-04-05 14:41:26 +00:00
|
|
|
"src/objects/js-regexp-string-iterator-inl.h",
|
|
|
|
"src/objects/js-regexp-string-iterator.h",
|
2017-10-13 15:06:23 +00:00
|
|
|
"src/objects/js-regexp.h",
|
2018-07-10 12:52:05 +00:00
|
|
|
"src/objects/js-relative-time-format-inl.h",
|
|
|
|
"src/objects/js-relative-time-format.cc",
|
|
|
|
"src/objects/js-relative-time-format.h",
|
2017-11-16 16:45:46 +00:00
|
|
|
"src/objects/literal-objects-inl.h",
|
2017-01-27 15:29:47 +00:00
|
|
|
"src/objects/literal-objects.cc",
|
|
|
|
"src/objects/literal-objects.h",
|
2018-04-26 14:37:05 +00:00
|
|
|
"src/objects/managed.cc",
|
|
|
|
"src/objects/managed.h",
|
2017-05-17 11:31:18 +00:00
|
|
|
"src/objects/map-inl.h",
|
|
|
|
"src/objects/map.h",
|
2018-03-05 13:18:51 +00:00
|
|
|
"src/objects/maybe-object-inl.h",
|
|
|
|
"src/objects/maybe-object.h",
|
2018-02-27 08:58:10 +00:00
|
|
|
"src/objects/microtask-inl.h",
|
2018-09-04 20:33:24 +00:00
|
|
|
"src/objects/microtask-queue-inl.h",
|
|
|
|
"src/objects/microtask-queue.cc",
|
|
|
|
"src/objects/microtask-queue.h",
|
2018-02-27 08:58:10 +00:00
|
|
|
"src/objects/microtask.h",
|
2017-08-22 18:49:56 +00:00
|
|
|
"src/objects/module-inl.h",
|
|
|
|
"src/objects/module.cc",
|
|
|
|
"src/objects/module.h",
|
2017-06-12 11:08:30 +00:00
|
|
|
"src/objects/name-inl.h",
|
|
|
|
"src/objects/name.h",
|
2016-12-20 14:08:21 +00:00
|
|
|
"src/objects/object-macros-undef.h",
|
|
|
|
"src/objects/object-macros.h",
|
2018-05-05 20:22:10 +00:00
|
|
|
"src/objects/ordered-hash-table-inl.h",
|
|
|
|
"src/objects/ordered-hash-table.cc",
|
|
|
|
"src/objects/ordered-hash-table.h",
|
2018-02-26 12:40:05 +00:00
|
|
|
"src/objects/promise-inl.h",
|
|
|
|
"src/objects/promise.h",
|
2018-09-25 12:05:23 +00:00
|
|
|
"src/objects/property-array-inl.h",
|
|
|
|
"src/objects/property-array.h",
|
2017-09-25 08:21:07 +00:00
|
|
|
"src/objects/property-descriptor-object-inl.h",
|
|
|
|
"src/objects/property-descriptor-object.h",
|
2018-07-10 11:45:14 +00:00
|
|
|
"src/objects/prototype-info-inl.h",
|
|
|
|
"src/objects/prototype-info.h",
|
2017-01-20 13:01:55 +00:00
|
|
|
"src/objects/regexp-match-info.h",
|
2017-01-16 10:30:59 +00:00
|
|
|
"src/objects/scope-info.cc",
|
2016-12-20 14:08:21 +00:00
|
|
|
"src/objects/scope-info.h",
|
2017-05-30 12:04:34 +00:00
|
|
|
"src/objects/script-inl.h",
|
|
|
|
"src/objects/script.h",
|
2017-05-29 13:24:32 +00:00
|
|
|
"src/objects/shared-function-info-inl.h",
|
|
|
|
"src/objects/shared-function-info.h",
|
2017-06-12 11:08:30 +00:00
|
|
|
"src/objects/string-inl.h",
|
2017-04-06 08:32:57 +00:00
|
|
|
"src/objects/string-table.h",
|
2017-06-12 11:08:30 +00:00
|
|
|
"src/objects/string.h",
|
2017-09-22 09:57:29 +00:00
|
|
|
"src/objects/template-objects.cc",
|
|
|
|
"src/objects/template-objects.h",
|
2018-04-27 08:31:07 +00:00
|
|
|
"src/objects/templates-inl.h",
|
|
|
|
"src/objects/templates.h",
|
2018-04-04 20:30:34 +00:00
|
|
|
"src/optimized-compilation-info.cc",
|
|
|
|
"src/optimized-compilation-info.h",
|
2014-06-27 08:42:17 +00:00
|
|
|
"src/ostreams.cc",
|
|
|
|
"src/ostreams.h",
|
2016-08-25 11:58:07 +00:00
|
|
|
"src/parsing/duplicate-finder.h",
|
2015-11-26 16:22:34 +00:00
|
|
|
"src/parsing/expression-classifier.h",
|
2017-07-31 18:23:46 +00:00
|
|
|
"src/parsing/expression-scope-reparenter.cc",
|
|
|
|
"src/parsing/expression-scope-reparenter.h",
|
2015-11-26 16:22:34 +00:00
|
|
|
"src/parsing/func-name-inferrer.cc",
|
|
|
|
"src/parsing/func-name-inferrer.h",
|
2016-08-22 11:33:30 +00:00
|
|
|
"src/parsing/parse-info.cc",
|
|
|
|
"src/parsing/parse-info.h",
|
2016-01-14 11:36:14 +00:00
|
|
|
"src/parsing/parser-base.h",
|
2015-11-26 16:22:34 +00:00
|
|
|
"src/parsing/parser.cc",
|
|
|
|
"src/parsing/parser.h",
|
2016-11-30 13:21:11 +00:00
|
|
|
"src/parsing/parsing.cc",
|
|
|
|
"src/parsing/parsing.h",
|
2015-11-26 16:22:34 +00:00
|
|
|
"src/parsing/pattern-rewriter.cc",
|
2018-09-07 09:17:06 +00:00
|
|
|
"src/parsing/preparsed-scope-data-impl.h",
|
2017-01-25 13:03:19 +00:00
|
|
|
"src/parsing/preparsed-scope-data.cc",
|
|
|
|
"src/parsing/preparsed-scope-data.h",
|
2018-08-22 10:08:35 +00:00
|
|
|
"src/parsing/preparser-logger.h",
|
2015-11-26 16:22:34 +00:00
|
|
|
"src/parsing/preparser.cc",
|
|
|
|
"src/parsing/preparser.h",
|
|
|
|
"src/parsing/rewriter.cc",
|
|
|
|
"src/parsing/rewriter.h",
|
|
|
|
"src/parsing/scanner-character-streams.cc",
|
|
|
|
"src/parsing/scanner-character-streams.h",
|
|
|
|
"src/parsing/scanner.cc",
|
|
|
|
"src/parsing/scanner.h",
|
|
|
|
"src/parsing/token.cc",
|
|
|
|
"src/parsing/token.h",
|
2015-02-25 14:17:39 +00:00
|
|
|
"src/pending-compilation-error-handler.cc",
|
|
|
|
"src/pending-compilation-error-handler.h",
|
2016-03-29 06:23:56 +00:00
|
|
|
"src/perf-jit.cc",
|
|
|
|
"src/perf-jit.h",
|
2015-09-28 19:34:08 +00:00
|
|
|
"src/profiler/allocation-tracker.cc",
|
|
|
|
"src/profiler/allocation-tracker.h",
|
|
|
|
"src/profiler/circular-queue-inl.h",
|
|
|
|
"src/profiler/circular-queue.h",
|
|
|
|
"src/profiler/cpu-profiler-inl.h",
|
|
|
|
"src/profiler/cpu-profiler.cc",
|
|
|
|
"src/profiler/cpu-profiler.h",
|
|
|
|
"src/profiler/heap-profiler.cc",
|
|
|
|
"src/profiler/heap-profiler.h",
|
|
|
|
"src/profiler/heap-snapshot-generator-inl.h",
|
|
|
|
"src/profiler/heap-snapshot-generator.cc",
|
|
|
|
"src/profiler/heap-snapshot-generator.h",
|
|
|
|
"src/profiler/profile-generator-inl.h",
|
|
|
|
"src/profiler/profile-generator.cc",
|
|
|
|
"src/profiler/profile-generator.h",
|
2016-06-22 16:43:46 +00:00
|
|
|
"src/profiler/profiler-listener.cc",
|
|
|
|
"src/profiler/profiler-listener.h",
|
2016-01-22 16:36:40 +00:00
|
|
|
"src/profiler/sampling-heap-profiler.cc",
|
|
|
|
"src/profiler/sampling-heap-profiler.h",
|
2015-10-01 18:10:58 +00:00
|
|
|
"src/profiler/strings-storage.cc",
|
|
|
|
"src/profiler/strings-storage.h",
|
2016-05-17 06:11:27 +00:00
|
|
|
"src/profiler/tick-sample.cc",
|
|
|
|
"src/profiler/tick-sample.h",
|
2016-09-29 09:24:46 +00:00
|
|
|
"src/profiler/tracing-cpu-profiler.cc",
|
|
|
|
"src/profiler/tracing-cpu-profiler.h",
|
2015-09-28 19:34:08 +00:00
|
|
|
"src/profiler/unbound-queue-inl.h",
|
|
|
|
"src/profiler/unbound-queue.h",
|
2015-10-13 14:38:16 +00:00
|
|
|
"src/property-descriptor.cc",
|
|
|
|
"src/property-descriptor.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/property-details.h",
|
|
|
|
"src/property.cc",
|
|
|
|
"src/property.h",
|
2014-07-14 07:19:49 +00:00
|
|
|
"src/prototype.h",
|
2015-08-13 06:55:21 +00:00
|
|
|
"src/regexp/bytecodes-irregexp.h",
|
|
|
|
"src/regexp/interpreter-irregexp.cc",
|
|
|
|
"src/regexp/interpreter-irregexp.h",
|
|
|
|
"src/regexp/jsregexp-inl.h",
|
|
|
|
"src/regexp/jsregexp.cc",
|
|
|
|
"src/regexp/jsregexp.h",
|
2018-09-19 07:57:52 +00:00
|
|
|
"src/regexp/property-sequences.cc",
|
|
|
|
"src/regexp/property-sequences.h",
|
2016-01-08 09:55:29 +00:00
|
|
|
"src/regexp/regexp-ast.cc",
|
|
|
|
"src/regexp/regexp-ast.h",
|
2015-08-13 06:55:21 +00:00
|
|
|
"src/regexp/regexp-macro-assembler-irregexp-inl.h",
|
|
|
|
"src/regexp/regexp-macro-assembler-irregexp.cc",
|
|
|
|
"src/regexp/regexp-macro-assembler-irregexp.h",
|
|
|
|
"src/regexp/regexp-macro-assembler-tracer.cc",
|
|
|
|
"src/regexp/regexp-macro-assembler-tracer.h",
|
|
|
|
"src/regexp/regexp-macro-assembler.cc",
|
|
|
|
"src/regexp/regexp-macro-assembler.h",
|
2016-01-08 09:55:29 +00:00
|
|
|
"src/regexp/regexp-parser.cc",
|
|
|
|
"src/regexp/regexp-parser.h",
|
2015-08-13 06:55:21 +00:00
|
|
|
"src/regexp/regexp-stack.cc",
|
|
|
|
"src/regexp/regexp-stack.h",
|
2016-10-12 15:15:30 +00:00
|
|
|
"src/regexp/regexp-utils.cc",
|
|
|
|
"src/regexp/regexp-utils.h",
|
2015-10-02 16:55:12 +00:00
|
|
|
"src/register-configuration.cc",
|
|
|
|
"src/register-configuration.h",
|
2017-08-01 13:38:20 +00:00
|
|
|
"src/reglist.h",
|
2018-08-17 08:35:18 +00:00
|
|
|
"src/reloc-info.cc",
|
|
|
|
"src/reloc-info.h",
|
2018-07-03 08:37:51 +00:00
|
|
|
"src/roots-inl.h",
|
|
|
|
"src/roots.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/runtime-profiler.cc",
|
|
|
|
"src/runtime-profiler.h",
|
2014-10-10 14:59:53 +00:00
|
|
|
"src/runtime/runtime-array.cc",
|
2015-06-03 17:58:29 +00:00
|
|
|
"src/runtime/runtime-atomics.cc",
|
2017-09-11 13:16:27 +00:00
|
|
|
"src/runtime/runtime-bigint.cc",
|
2014-10-01 12:11:12 +00:00
|
|
|
"src/runtime/runtime-classes.cc",
|
2014-09-29 09:32:38 +00:00
|
|
|
"src/runtime/runtime-collections.cc",
|
|
|
|
"src/runtime/runtime-compiler.cc",
|
2014-09-30 08:23:02 +00:00
|
|
|
"src/runtime/runtime-date.cc",
|
|
|
|
"src/runtime/runtime-debug.cc",
|
2015-06-01 07:20:50 +00:00
|
|
|
"src/runtime/runtime-forin.cc",
|
2014-09-30 10:46:04 +00:00
|
|
|
"src/runtime/runtime-function.cc",
|
2015-07-17 17:11:32 +00:00
|
|
|
"src/runtime/runtime-futex.cc",
|
2014-09-30 08:23:02 +00:00
|
|
|
"src/runtime/runtime-generator.cc",
|
2014-10-10 14:59:53 +00:00
|
|
|
"src/runtime/runtime-internal.cc",
|
2015-09-28 18:05:56 +00:00
|
|
|
"src/runtime/runtime-interpreter.cc",
|
2017-04-21 08:35:12 +00:00
|
|
|
"src/runtime/runtime-intl.cc",
|
2014-09-30 10:46:04 +00:00
|
|
|
"src/runtime/runtime-literals.cc",
|
2016-10-11 17:32:22 +00:00
|
|
|
"src/runtime/runtime-module.cc",
|
2014-09-29 09:32:38 +00:00
|
|
|
"src/runtime/runtime-numbers.cc",
|
2014-10-10 14:59:53 +00:00
|
|
|
"src/runtime/runtime-object.cc",
|
2015-09-10 13:04:15 +00:00
|
|
|
"src/runtime/runtime-operators.cc",
|
2016-10-27 12:28:03 +00:00
|
|
|
"src/runtime/runtime-promise.cc",
|
2014-09-30 10:46:04 +00:00
|
|
|
"src/runtime/runtime-proxy.cc",
|
2014-09-29 07:08:15 +00:00
|
|
|
"src/runtime/runtime-regexp.cc",
|
2014-09-30 10:46:04 +00:00
|
|
|
"src/runtime/runtime-scopes.cc",
|
2014-09-29 07:08:15 +00:00
|
|
|
"src/runtime/runtime-strings.cc",
|
2014-09-30 10:46:04 +00:00
|
|
|
"src/runtime/runtime-symbol.cc",
|
2014-09-29 09:32:38 +00:00
|
|
|
"src/runtime/runtime-test.cc",
|
|
|
|
"src/runtime/runtime-typedarray.cc",
|
2014-09-25 07:16:15 +00:00
|
|
|
"src/runtime/runtime-utils.h",
|
2016-06-28 16:46:34 +00:00
|
|
|
"src/runtime/runtime-wasm.cc",
|
2014-09-25 07:16:15 +00:00
|
|
|
"src/runtime/runtime.cc",
|
|
|
|
"src/runtime/runtime.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/safepoint-table.cc",
|
|
|
|
"src/safepoint-table.h",
|
2017-04-07 13:31:29 +00:00
|
|
|
"src/setup-isolate.h",
|
2015-05-04 10:11:50 +00:00
|
|
|
"src/signature.h",
|
2017-12-13 12:48:01 +00:00
|
|
|
"src/simulator-base.cc",
|
|
|
|
"src/simulator-base.h",
|
2015-06-26 14:24:42 +00:00
|
|
|
"src/simulator.h",
|
2017-10-18 08:27:12 +00:00
|
|
|
"src/snapshot/builtin-deserializer-allocator.cc",
|
|
|
|
"src/snapshot/builtin-deserializer-allocator.h",
|
2017-08-28 15:49:54 +00:00
|
|
|
"src/snapshot/builtin-deserializer.cc",
|
|
|
|
"src/snapshot/builtin-deserializer.h",
|
2017-10-18 12:29:39 +00:00
|
|
|
"src/snapshot/builtin-serializer-allocator.cc",
|
|
|
|
"src/snapshot/builtin-serializer-allocator.h",
|
2017-08-28 15:49:54 +00:00
|
|
|
"src/snapshot/builtin-serializer.cc",
|
|
|
|
"src/snapshot/builtin-serializer.h",
|
2016-03-01 14:42:57 +00:00
|
|
|
"src/snapshot/code-serializer.cc",
|
|
|
|
"src/snapshot/code-serializer.h",
|
2017-10-17 10:55:00 +00:00
|
|
|
"src/snapshot/default-deserializer-allocator.cc",
|
|
|
|
"src/snapshot/default-deserializer-allocator.h",
|
2017-09-19 03:01:52 +00:00
|
|
|
"src/snapshot/default-serializer-allocator.cc",
|
|
|
|
"src/snapshot/default-serializer-allocator.h",
|
2016-03-01 14:42:57 +00:00
|
|
|
"src/snapshot/deserializer.cc",
|
|
|
|
"src/snapshot/deserializer.h",
|
2018-03-09 09:29:10 +00:00
|
|
|
"src/snapshot/macros.h",
|
2015-08-18 14:31:26 +00:00
|
|
|
"src/snapshot/natives-common.cc",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/snapshot/natives.h",
|
2017-08-02 14:00:37 +00:00
|
|
|
"src/snapshot/object-deserializer.cc",
|
|
|
|
"src/snapshot/object-deserializer.h",
|
|
|
|
"src/snapshot/partial-deserializer.cc",
|
|
|
|
"src/snapshot/partial-deserializer.h",
|
2016-03-01 14:42:57 +00:00
|
|
|
"src/snapshot/partial-serializer.cc",
|
|
|
|
"src/snapshot/partial-serializer.h",
|
2018-07-03 08:40:17 +00:00
|
|
|
"src/snapshot/references.h",
|
2016-03-01 14:42:57 +00:00
|
|
|
"src/snapshot/serializer-common.cc",
|
|
|
|
"src/snapshot/serializer-common.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/snapshot/serializer.cc",
|
|
|
|
"src/snapshot/serializer.h",
|
2015-03-27 15:28:55 +00:00
|
|
|
"src/snapshot/snapshot-common.cc",
|
|
|
|
"src/snapshot/snapshot-source-sink.cc",
|
|
|
|
"src/snapshot/snapshot-source-sink.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/snapshot/snapshot.h",
|
2017-08-02 14:00:37 +00:00
|
|
|
"src/snapshot/startup-deserializer.cc",
|
|
|
|
"src/snapshot/startup-deserializer.h",
|
2016-03-01 14:42:57 +00:00
|
|
|
"src/snapshot/startup-serializer.cc",
|
|
|
|
"src/snapshot/startup-serializer.h",
|
2016-06-28 05:51:09 +00:00
|
|
|
"src/source-position-table.cc",
|
|
|
|
"src/source-position-table.h",
|
This CL enables precise source positions for all V8 compilers. It merges compiler::SourcePosition and internal::SourcePosition to a single class used throughout the codebase. The new internal::SourcePosition instances store an id identifying an inlined function in addition to a script offset.
SourcePosition::InliningId() refers to a the new table DeoptimizationInputData::InliningPositions(), which provides the following data for every inlining id:
- The inlined SharedFunctionInfo as an offset into DeoptimizationInfo::LiteralArray
- The SourcePosition of the inlining. Recursively, this yields the full inlining stack.
Before the Code object is created, the same information can be found in CompilationInfo::inlined_functions().
If SourcePosition::InliningId() is SourcePosition::kNotInlined, it refers to the outer (non-inlined) function.
So every SourcePosition has full information about its inlining stack, as long as the corresponding Code object is known. The internal represenation of a source position is a positive 64bit integer.
All compilers create now appropriate source positions for inlined functions. In the case of Turbofan, this required using AstGraphBuilderWithPositions for inlined functions too. So this class is now moved to a header file.
At the moment, the additional information in source positions is only used in --trace-deopt and --code-comments. The profiler needs to be updated, at the moment it gets the correct script offsets from the deopt info, but the wrong script id from the reconstructed deopt stack, which can lead to wrong outputs. This should be resolved by making the profiler use the new inlining information for deopts.
I activated the inlined deoptimization tests in test-cpu-profiler.cc for Turbofan, changing them to a case where the deopt stack and the inlining position agree. It is currently still broken for other cases.
The following additional changes were necessary:
- The source position table (internal::SourcePositionTableBuilder etc.) supports now 64bit source positions. Encoding source positions in a single 64bit int together with the difference encoding in the source position table results in very little overhead for the inlining id, since only 12% of the source positions in Octane have a changed inlining id.
- The class HPositionInfo was effectively dead code and is now removed.
- SourcePosition has new printing and information facilities, including computing a full inlining stack.
- I had to rename compiler/source-position.{h,cc} to compiler/compiler-source-position-table.{h,cc} to avoid clashes with the new src/source-position.cc file.
- I wrote the new wrapper PodArray for ByteArray. It is a template working with any POD-type. This is used in DeoptimizationInputData::InliningPositions().
- I removed HInlinedFunctionInfo and HGraph::inlined_function_infos, because they were only used for the now obsolete Crankshaft inlining ids.
- Crankshaft managed a list of inlined functions in Lithium: LChunk::inlined_functions. This is an analog structure to CompilationInfo::inlined_functions. So I removed LChunk::inlined_functions and made Crankshaft use CompilationInfo::inlined_functions instead, because this was necessary to register the offsets into the literal array in a uniform way. This is a safe change because LChunk::inlined_functions has no other uses and the functions in CompilationInfo::inlined_functions have a strictly longer lifespan, being created earlier (in Hydrogen already).
BUG=v8:5432
Review-Url: https://codereview.chromium.org/2451853002
Cr-Commit-Position: refs/heads/master@{#40975}
2016-11-14 17:21:37 +00:00
|
|
|
"src/source-position.cc",
|
2016-01-15 12:11:35 +00:00
|
|
|
"src/source-position.h",
|
2015-06-26 14:24:42 +00:00
|
|
|
"src/splay-tree-inl.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/splay-tree.h",
|
2015-08-14 12:11:29 +00:00
|
|
|
"src/startup-data-util.cc",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/startup-data-util.h",
|
2018-07-31 11:57:08 +00:00
|
|
|
"src/string-builder-inl.h",
|
2014-11-12 08:11:57 +00:00
|
|
|
"src/string-builder.cc",
|
2016-12-19 18:43:55 +00:00
|
|
|
"src/string-case.cc",
|
|
|
|
"src/string-case.h",
|
2018-09-19 07:51:17 +00:00
|
|
|
"src/string-constants.cc",
|
|
|
|
"src/string-constants.h",
|
2017-04-28 12:13:10 +00:00
|
|
|
"src/string-hasher-inl.h",
|
|
|
|
"src/string-hasher.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/string-search.h",
|
|
|
|
"src/string-stream.cc",
|
|
|
|
"src/string-stream.h",
|
|
|
|
"src/strtod.cc",
|
|
|
|
"src/strtod.h",
|
Implement DFA Unicode Decoder
This is a separation of the DFA Unicode Decoder from
https://chromium-review.googlesource.com/c/v8/v8/+/789560
I attempted to make the DFA's table a bit more explicit in this CL. Still, the
linter prevents me from letting me present the array as a "table" in source
code. For a better representation, please refer to
https://docs.google.com/spreadsheets/d/1L9STtkmWs-A7HdK5ZmZ-wPZ_VBjQ3-Jj_xN9c6_hLKA
- - - - -
Now for a big copy-paste from 789560:
Essentially, reworks a standard FSM (imagine an
array of structs) and flattens it out into a single-dimension array.
Using Table 3-7 of the Unicode 10.0.0 standard (page 126 of
http://www.unicode.org/versions/Unicode10.0.0/ch03.pdf), we can nicely
map all bytes into one of 12 character classes:
00. 0x00-0x7F
01. 0x80-0x8F (split from general continuation because this range is not
valid after a 0xF0 leading byte)
02. 0x90-0x9F (split from general continuation because this range is not
valid after a 0xE0 nor a 0xF4 leading byte)
03. 0xA0-0xBF (the rest of the continuation range)
04. 0xC0-0xC1, 0xF5-0xFF (the joined range of invalid bytes, notice this
includes 255 which we use as a known bad byte during hex-to-int
decoding)
05. 0xC2-0xDF (leading bytes which require any continuation byte
afterwards)
06. 0xE0 (leading byte which requires a 0xA0-0xBF afterwards then any
continuation byte after that)
07. 0xE1-0xEC, 0xEE-0xEF (leading bytes which requires any continuation
afterwards then any continuation byte after that)
08. 0xED (leading byte which requires a 0x80-0x9F afterwards then any
continuation byte after that)
09. 0xF1-F3 (leading bytes which requires any continuation byte
afterwards then any continuation byte then any continuation byte)
10. 0xF0 (leading bytes which requires a 0x90-0xBF afterwards then any
continuation byte then any continuation byte)
11. 0xF4 (leading bytes which requires a 0x80-0x8F afterwards then any
continuation byte then any continuation byte)
Note that 0xF0 and 0xF1-0xF3 were swapped so that fewer bytes were
needed to represent the transition state ("9, 10, 10, 10" vs.
"10, 9, 9, 9").
Using these 12 classes as "transitions", we can map from one state to
the next. Each state is defined as some multiple of 12, so that we're
always starting at the 0th column of each row of the FSM. From each
state, we add the transition and get a index of the new row the FSM is
entering.
If at any point we encounter a bad byte, the state + bad-byte-transition
is guaranteed to map us into the first row of the FSM (which contains no
valid exiting transitions).
The key differences from Björn's original (or his self-modified) DFA is
the "bad" state is now mapped to 0 (or the first row of the FSM) instead
of 12 (the second row). This saves ~50 bytes when gzipping, and also
speeds up determining if a string is properly encoded (see his sample
code at http://bjoern.hoehrmann.de/utf-8/decoder/dfa/#performance).
Finally, I've replace his ternary check with an array access, to make
the algorithm branchless. This places a requirement on the caller to 0
out the code point between successful decodings, which it could always
have done because it's already branching.
R=marja@google.com
Bug:
Change-Id: I574f208a84dc5d06caba17127b0d41f7ce1a3395
Reviewed-on: https://chromium-review.googlesource.com/805357
Commit-Queue: Justin Ridgewell <jridgewell@google.com>
Reviewed-by: Marja Hölttä <marja@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50012}
2017-12-11 20:58:27 +00:00
|
|
|
"src/third_party/utf8-decoder/utf8-decoder.h",
|
2015-12-17 18:48:07 +00:00
|
|
|
"src/tracing/trace-event.cc",
|
|
|
|
"src/tracing/trace-event.h",
|
2016-10-06 15:27:03 +00:00
|
|
|
"src/tracing/traced-value.cc",
|
|
|
|
"src/tracing/traced-value.h",
|
2016-10-28 20:43:17 +00:00
|
|
|
"src/tracing/tracing-category-observer.cc",
|
|
|
|
"src/tracing/tracing-category-observer.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/transitions-inl.h",
|
|
|
|
"src/transitions.cc",
|
|
|
|
"src/transitions.h",
|
2018-05-04 21:44:07 +00:00
|
|
|
"src/trap-handler/handler-inside.cc",
|
2017-03-13 22:12:23 +00:00
|
|
|
"src/trap-handler/handler-outside.cc",
|
|
|
|
"src/trap-handler/handler-shared.cc",
|
|
|
|
"src/trap-handler/trap-handler-internal.h",
|
2016-11-30 22:31:37 +00:00
|
|
|
"src/trap-handler/trap-handler.h",
|
2018-06-08 11:04:10 +00:00
|
|
|
"src/turbo-assembler.cc",
|
|
|
|
"src/turbo-assembler.h",
|
2016-09-20 13:53:32 +00:00
|
|
|
"src/type-hints.cc",
|
|
|
|
"src/type-hints.h",
|
2015-08-20 11:46:54 +00:00
|
|
|
"src/unicode-cache-inl.h",
|
|
|
|
"src/unicode-cache.h",
|
2014-10-08 14:55:03 +00:00
|
|
|
"src/unicode-decoder.cc",
|
|
|
|
"src/unicode-decoder.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/unicode-inl.h",
|
|
|
|
"src/unicode.cc",
|
|
|
|
"src/unicode.h",
|
2018-04-04 20:30:34 +00:00
|
|
|
"src/unoptimized-compilation-info.cc",
|
|
|
|
"src/unoptimized-compilation-info.h",
|
2016-05-17 10:54:14 +00:00
|
|
|
"src/uri.cc",
|
|
|
|
"src/uri.h",
|
Reland of "[heap] Parallel newspace evacuation, semispace copy, and compaction \o/"
This reverts commit 85ba94f28ce4b5d64e4c148efb1fee85bdb6579b.
All parallelism can be turned off using --predictable, or --noparallel-compaction.
This patch completely parallelizes
- semispace copy: from space -> to space (within newspace)
- newspace evacuation: newspace -> oldspace
- oldspace compaction: oldspace -> oldspace
Previously newspace has been handled sequentially (semispace copy, newspace
evacuation) before compacting oldspace in parallel. However, on a high level
there are no dependencies between those two actions, hence we parallelize them
altogether. We base the number of evacuation tasks on the overall set of
to-be-processed pages (newspace + oldspace compaction pages).
Some low-level details:
- The hard cap on number of tasks has been lifted
- We cache store buffer entries locally before merging them back into the global
StoreBuffer in a finalization phase.
- We cache AllocationSite operations locally before merging them back into the
global pretenuring storage in a finalization phase.
- AllocationSite might be compacted while they would be needed for newspace
evacuation. To mitigate any problems we defer checking allocation sites for
newspace till merging locally buffered data.
CQ_EXTRA_TRYBOTS=tryserver.v8:v8_linux_arm64_gc_stress_dbg,v8_linux_gc_stress_dbg,v8_mac_gc_stress_dbg,v8_linux64_asan_rel,v8_linux64_tsan_rel,v8_mac64_asan_rel
BUG=chromium:524425
LOG=N
R=hpayer@chromium.org, ulan@chromium.org
Review URL: https://codereview.chromium.org/1640563004
Cr-Commit-Position: refs/heads/master@{#33552}
2016-01-27 13:23:54 +00:00
|
|
|
"src/utils-inl.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/utils.cc",
|
|
|
|
"src/utils.h",
|
|
|
|
"src/v8.cc",
|
|
|
|
"src/v8.h",
|
|
|
|
"src/v8memory.h",
|
|
|
|
"src/v8threads.cc",
|
|
|
|
"src/v8threads.h",
|
2016-08-12 14:49:09 +00:00
|
|
|
"src/value-serializer.cc",
|
|
|
|
"src/value-serializer.h",
|
2017-12-07 12:26:02 +00:00
|
|
|
"src/vector-slot-pair.cc",
|
|
|
|
"src/vector-slot-pair.h",
|
2016-09-15 13:14:33 +00:00
|
|
|
"src/vector.h",
|
2015-01-18 15:43:02 +00:00
|
|
|
"src/version.cc",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/version.h",
|
2017-04-25 13:32:18 +00:00
|
|
|
"src/visitors.cc",
|
|
|
|
"src/visitors.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/vm-state-inl.h",
|
|
|
|
"src/vm-state.h",
|
2017-11-30 19:28:38 +00:00
|
|
|
"src/wasm/baseline/liftoff-assembler-defs.h",
|
2017-10-23 13:09:51 +00:00
|
|
|
"src/wasm/baseline/liftoff-assembler.cc",
|
|
|
|
"src/wasm/baseline/liftoff-assembler.h",
|
|
|
|
"src/wasm/baseline/liftoff-compiler.cc",
|
2018-04-19 10:16:37 +00:00
|
|
|
"src/wasm/baseline/liftoff-compiler.h",
|
2017-11-30 19:28:38 +00:00
|
|
|
"src/wasm/baseline/liftoff-register.h",
|
2016-01-05 18:06:34 +00:00
|
|
|
"src/wasm/decoder.h",
|
2017-02-10 01:16:37 +00:00
|
|
|
"src/wasm/function-body-decoder-impl.h",
|
2016-12-21 12:42:06 +00:00
|
|
|
"src/wasm/function-body-decoder.cc",
|
|
|
|
"src/wasm/function-body-decoder.h",
|
2018-04-19 10:16:37 +00:00
|
|
|
"src/wasm/function-compiler.cc",
|
|
|
|
"src/wasm/function-compiler.h",
|
2018-06-14 09:17:47 +00:00
|
|
|
"src/wasm/jump-table-assembler.cc",
|
|
|
|
"src/wasm/jump-table-assembler.h",
|
2016-04-21 10:14:34 +00:00
|
|
|
"src/wasm/leb-helper.h",
|
2017-04-25 10:13:10 +00:00
|
|
|
"src/wasm/local-decl-encoder.cc",
|
|
|
|
"src/wasm/local-decl-encoder.h",
|
2017-10-02 07:39:30 +00:00
|
|
|
"src/wasm/memory-tracing.cc",
|
|
|
|
"src/wasm/memory-tracing.h",
|
2017-06-07 16:00:29 +00:00
|
|
|
"src/wasm/module-compiler.cc",
|
|
|
|
"src/wasm/module-compiler.h",
|
2016-01-05 18:06:34 +00:00
|
|
|
"src/wasm/module-decoder.cc",
|
|
|
|
"src/wasm/module-decoder.h",
|
2018-09-04 13:06:33 +00:00
|
|
|
"src/wasm/object-access.h",
|
2016-10-11 12:40:24 +00:00
|
|
|
"src/wasm/signature-map.cc",
|
|
|
|
"src/wasm/signature-map.h",
|
2017-05-11 08:51:54 +00:00
|
|
|
"src/wasm/streaming-decoder.cc",
|
|
|
|
"src/wasm/streaming-decoder.h",
|
2018-04-24 13:07:51 +00:00
|
|
|
"src/wasm/value-type.h",
|
2017-12-05 01:47:59 +00:00
|
|
|
"src/wasm/wasm-code-manager.cc",
|
|
|
|
"src/wasm/wasm-code-manager.h",
|
2018-01-11 11:49:29 +00:00
|
|
|
"src/wasm/wasm-constants.h",
|
2016-06-17 08:33:36 +00:00
|
|
|
"src/wasm/wasm-debug.cc",
|
2018-01-17 14:46:27 +00:00
|
|
|
"src/wasm/wasm-engine.cc",
|
2017-12-05 00:28:35 +00:00
|
|
|
"src/wasm/wasm-engine.h",
|
2016-04-06 09:24:23 +00:00
|
|
|
"src/wasm/wasm-external-refs.cc",
|
2016-03-04 09:50:48 +00:00
|
|
|
"src/wasm/wasm-external-refs.h",
|
2018-08-08 14:54:44 +00:00
|
|
|
"src/wasm/wasm-feature-flags.h",
|
|
|
|
"src/wasm/wasm-features.cc",
|
|
|
|
"src/wasm/wasm-features.h",
|
2016-05-25 08:32:37 +00:00
|
|
|
"src/wasm/wasm-interpreter.cc",
|
|
|
|
"src/wasm/wasm-interpreter.h",
|
2016-01-05 18:06:34 +00:00
|
|
|
"src/wasm/wasm-js.cc",
|
|
|
|
"src/wasm/wasm-js.h",
|
2016-12-05 10:02:26 +00:00
|
|
|
"src/wasm/wasm-limits.h",
|
2018-04-27 12:59:22 +00:00
|
|
|
"src/wasm/wasm-linkage.h",
|
2017-10-02 08:27:24 +00:00
|
|
|
"src/wasm/wasm-memory.cc",
|
|
|
|
"src/wasm/wasm-memory.h",
|
2016-09-29 11:29:05 +00:00
|
|
|
"src/wasm/wasm-module-builder.cc",
|
|
|
|
"src/wasm/wasm-module-builder.h",
|
2016-01-05 18:06:34 +00:00
|
|
|
"src/wasm/wasm-module.cc",
|
|
|
|
"src/wasm/wasm-module.h",
|
2017-08-30 13:53:15 +00:00
|
|
|
"src/wasm/wasm-objects-inl.h",
|
2016-11-11 11:12:31 +00:00
|
|
|
"src/wasm/wasm-objects.cc",
|
|
|
|
"src/wasm/wasm-objects.h",
|
2016-01-05 18:06:34 +00:00
|
|
|
"src/wasm/wasm-opcodes.cc",
|
|
|
|
"src/wasm/wasm-opcodes.h",
|
|
|
|
"src/wasm/wasm-result.cc",
|
|
|
|
"src/wasm/wasm-result.h",
|
2017-11-28 22:25:36 +00:00
|
|
|
"src/wasm/wasm-serialization.cc",
|
|
|
|
"src/wasm/wasm-serialization.h",
|
2016-11-22 11:59:27 +00:00
|
|
|
"src/wasm/wasm-text.cc",
|
|
|
|
"src/wasm/wasm-text.h",
|
2018-08-21 15:01:31 +00:00
|
|
|
"src/wasm/wasm-tier.h",
|
2017-07-14 13:49:01 +00:00
|
|
|
"src/wasm/wasm-value.h",
|
2016-09-20 16:07:25 +00:00
|
|
|
"src/zone/accounting-allocator.cc",
|
|
|
|
"src/zone/accounting-allocator.h",
|
|
|
|
"src/zone/zone-allocator.h",
|
2016-10-26 17:07:48 +00:00
|
|
|
"src/zone/zone-chunk-list.h",
|
2016-09-20 16:07:25 +00:00
|
|
|
"src/zone/zone-containers.h",
|
2017-01-02 13:03:02 +00:00
|
|
|
"src/zone/zone-handle-set.h",
|
2017-09-28 09:28:16 +00:00
|
|
|
"src/zone/zone-list-inl.h",
|
2016-10-04 08:47:17 +00:00
|
|
|
"src/zone/zone-segment.cc",
|
2016-09-20 16:07:25 +00:00
|
|
|
"src/zone/zone-segment.h",
|
|
|
|
"src/zone/zone.cc",
|
|
|
|
"src/zone/zone.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
]
|
|
|
|
|
2018-07-20 13:13:31 +00:00
|
|
|
if (v8_check_header_includes) {
|
|
|
|
# This file will be generated by tools/generate-header-include-checks.py
|
|
|
|
# if the "check_v8_header_includes" gclient variable is set.
|
|
|
|
import("check-header-includes/sources.gni")
|
|
|
|
sources += check_header_includes_sources
|
|
|
|
}
|
|
|
|
|
2017-08-09 08:11:21 +00:00
|
|
|
if (use_jumbo_build == true) {
|
|
|
|
jumbo_excluded_sources = [
|
2018-03-22 08:59:32 +00:00
|
|
|
# TODO(mostynb@vewd.com): don't exclude these http://crbug.com/752428
|
2017-08-09 08:11:21 +00:00
|
|
|
"src/profiler/heap-snapshot-generator.cc", # Macro clash in mman-linux.h
|
2017-08-30 07:50:52 +00:00
|
|
|
|
|
|
|
# These source files take an unusually large amount of time to
|
|
|
|
# compile. Build them separately to avoid bottlenecks.
|
|
|
|
"src/api.cc",
|
|
|
|
"src/code-stub-assembler.cc",
|
|
|
|
"src/elements.cc",
|
|
|
|
"src/heap/heap.cc",
|
|
|
|
"src/objects.cc",
|
|
|
|
"src/parsing/parser.cc",
|
2017-08-09 08:11:21 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-07-15 22:32:55 +00:00
|
|
|
if (v8_current_cpu == "x86") {
|
2016-09-21 11:44:10 +00:00
|
|
|
sources += [ ### gcmole(arch:ia32) ###
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/compiler/ia32/code-generator-ia32.cc",
|
|
|
|
"src/compiler/ia32/instruction-codes-ia32.h",
|
|
|
|
"src/compiler/ia32/instruction-scheduler-ia32.cc",
|
|
|
|
"src/compiler/ia32/instruction-selector-ia32.cc",
|
2015-10-20 13:25:47 +00:00
|
|
|
"src/debug/ia32/debug-ia32.cc",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/ia32/assembler-ia32-inl.h",
|
|
|
|
"src/ia32/assembler-ia32.cc",
|
|
|
|
"src/ia32/assembler-ia32.h",
|
|
|
|
"src/ia32/code-stubs-ia32.cc",
|
|
|
|
"src/ia32/codegen-ia32.cc",
|
2018-06-26 09:16:18 +00:00
|
|
|
"src/ia32/constants-ia32.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/ia32/cpu-ia32.cc",
|
|
|
|
"src/ia32/deoptimizer-ia32.cc",
|
|
|
|
"src/ia32/disasm-ia32.cc",
|
2017-08-03 09:35:57 +00:00
|
|
|
"src/ia32/frame-constants-ia32.cc",
|
|
|
|
"src/ia32/frame-constants-ia32.h",
|
2014-08-29 10:40:02 +00:00
|
|
|
"src/ia32/interface-descriptors-ia32.cc",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/ia32/macro-assembler-ia32.cc",
|
|
|
|
"src/ia32/macro-assembler-ia32.h",
|
2016-09-15 13:14:33 +00:00
|
|
|
"src/ia32/simulator-ia32.cc",
|
|
|
|
"src/ia32/simulator-ia32.h",
|
2017-03-10 02:40:06 +00:00
|
|
|
"src/ia32/sse-instr.h",
|
2015-08-13 06:55:21 +00:00
|
|
|
"src/regexp/ia32/regexp-macro-assembler-ia32.cc",
|
|
|
|
"src/regexp/ia32/regexp-macro-assembler-ia32.h",
|
2017-10-23 13:09:51 +00:00
|
|
|
"src/wasm/baseline/ia32/liftoff-assembler-ia32.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
]
|
2016-07-15 22:32:55 +00:00
|
|
|
} else if (v8_current_cpu == "x64") {
|
2016-09-21 11:44:10 +00:00
|
|
|
sources += [ ### gcmole(arch:x64) ###
|
2015-10-20 13:25:47 +00:00
|
|
|
"src/compiler/x64/code-generator-x64.cc",
|
|
|
|
"src/compiler/x64/instruction-codes-x64.h",
|
2015-12-15 14:51:43 +00:00
|
|
|
"src/compiler/x64/instruction-scheduler-x64.cc",
|
2015-10-20 13:25:47 +00:00
|
|
|
"src/compiler/x64/instruction-selector-x64.cc",
|
2016-07-15 15:04:32 +00:00
|
|
|
"src/compiler/x64/unwinding-info-writer-x64.cc",
|
|
|
|
"src/compiler/x64/unwinding-info-writer-x64.h",
|
2015-10-20 13:25:47 +00:00
|
|
|
"src/debug/x64/debug-x64.cc",
|
|
|
|
"src/regexp/x64/regexp-macro-assembler-x64.cc",
|
|
|
|
"src/regexp/x64/regexp-macro-assembler-x64.h",
|
2016-09-19 10:58:59 +00:00
|
|
|
"src/third_party/valgrind/valgrind.h",
|
2017-10-23 13:09:51 +00:00
|
|
|
"src/wasm/baseline/x64/liftoff-assembler-x64.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/x64/assembler-x64-inl.h",
|
|
|
|
"src/x64/assembler-x64.cc",
|
|
|
|
"src/x64/assembler-x64.h",
|
|
|
|
"src/x64/code-stubs-x64.cc",
|
|
|
|
"src/x64/codegen-x64.cc",
|
2018-06-26 09:16:18 +00:00
|
|
|
"src/x64/constants-x64.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/x64/cpu-x64.cc",
|
|
|
|
"src/x64/deoptimizer-x64.cc",
|
|
|
|
"src/x64/disasm-x64.cc",
|
2016-07-14 10:31:02 +00:00
|
|
|
"src/x64/eh-frame-x64.cc",
|
2017-08-03 09:35:57 +00:00
|
|
|
"src/x64/frame-constants-x64.cc",
|
|
|
|
"src/x64/frame-constants-x64.h",
|
2014-08-29 10:40:02 +00:00
|
|
|
"src/x64/interface-descriptors-x64.cc",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/x64/macro-assembler-x64.cc",
|
|
|
|
"src/x64/macro-assembler-x64.h",
|
2016-09-15 13:14:33 +00:00
|
|
|
"src/x64/simulator-x64.cc",
|
|
|
|
"src/x64/simulator-x64.h",
|
2016-09-12 06:24:06 +00:00
|
|
|
"src/x64/sse-instr.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
]
|
2017-03-13 22:12:23 +00:00
|
|
|
if (is_linux) {
|
2018-05-04 21:44:07 +00:00
|
|
|
sources += [
|
|
|
|
"src/trap-handler/handler-inside-linux.cc",
|
|
|
|
"src/trap-handler/handler-outside-linux.cc",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
if (is_win) {
|
|
|
|
sources += [ "src/trap-handler/handler-outside-win.cc" ]
|
2017-03-13 22:12:23 +00:00
|
|
|
}
|
2016-07-15 22:32:55 +00:00
|
|
|
} else if (v8_current_cpu == "arm") {
|
2016-09-21 11:44:10 +00:00
|
|
|
sources += [ ### gcmole(arch:arm) ###
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/arm/assembler-arm-inl.h",
|
|
|
|
"src/arm/assembler-arm.cc",
|
|
|
|
"src/arm/assembler-arm.h",
|
|
|
|
"src/arm/code-stubs-arm.cc",
|
|
|
|
"src/arm/code-stubs-arm.h",
|
|
|
|
"src/arm/codegen-arm.cc",
|
|
|
|
"src/arm/constants-arm.cc",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/arm/constants-arm.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/arm/cpu-arm.cc",
|
|
|
|
"src/arm/deoptimizer-arm.cc",
|
|
|
|
"src/arm/disasm-arm.cc",
|
2016-07-14 10:31:02 +00:00
|
|
|
"src/arm/eh-frame-arm.cc",
|
2017-08-03 09:35:57 +00:00
|
|
|
"src/arm/frame-constants-arm.cc",
|
|
|
|
"src/arm/frame-constants-arm.h",
|
2014-08-29 10:40:02 +00:00
|
|
|
"src/arm/interface-descriptors-arm.cc",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/arm/macro-assembler-arm.cc",
|
|
|
|
"src/arm/macro-assembler-arm.h",
|
|
|
|
"src/arm/simulator-arm.cc",
|
2015-06-26 14:24:42 +00:00
|
|
|
"src/arm/simulator-arm.h",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/arm/code-generator-arm.cc",
|
|
|
|
"src/compiler/arm/instruction-codes-arm.h",
|
2015-12-15 14:51:43 +00:00
|
|
|
"src/compiler/arm/instruction-scheduler-arm.cc",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/arm/instruction-selector-arm.cc",
|
2016-07-15 15:04:32 +00:00
|
|
|
"src/compiler/arm/unwinding-info-writer-arm.cc",
|
|
|
|
"src/compiler/arm/unwinding-info-writer-arm.h",
|
2015-07-31 11:07:50 +00:00
|
|
|
"src/debug/arm/debug-arm.cc",
|
2015-08-13 06:55:21 +00:00
|
|
|
"src/regexp/arm/regexp-macro-assembler-arm.cc",
|
|
|
|
"src/regexp/arm/regexp-macro-assembler-arm.h",
|
2017-10-23 13:09:51 +00:00
|
|
|
"src/wasm/baseline/arm/liftoff-assembler-arm.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
]
|
2016-07-15 22:32:55 +00:00
|
|
|
} else if (v8_current_cpu == "arm64") {
|
2016-09-21 11:44:10 +00:00
|
|
|
sources += [ ### gcmole(arch:arm64) ###
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/arm64/assembler-arm64-inl.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/arm64/assembler-arm64.cc",
|
|
|
|
"src/arm64/assembler-arm64.h",
|
|
|
|
"src/arm64/code-stubs-arm64.cc",
|
|
|
|
"src/arm64/code-stubs-arm64.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/arm64/codegen-arm64.cc",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/arm64/constants-arm64.h",
|
|
|
|
"src/arm64/cpu-arm64.cc",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/arm64/decoder-arm64-inl.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/arm64/decoder-arm64.cc",
|
|
|
|
"src/arm64/decoder-arm64.h",
|
|
|
|
"src/arm64/deoptimizer-arm64.cc",
|
|
|
|
"src/arm64/disasm-arm64.cc",
|
|
|
|
"src/arm64/disasm-arm64.h",
|
2016-07-14 10:31:02 +00:00
|
|
|
"src/arm64/eh-frame-arm64.cc",
|
2017-08-03 09:35:57 +00:00
|
|
|
"src/arm64/frame-constants-arm64.cc",
|
|
|
|
"src/arm64/frame-constants-arm64.h",
|
2017-09-13 21:16:25 +00:00
|
|
|
"src/arm64/instructions-arm64-constants.cc",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/arm64/instructions-arm64.cc",
|
|
|
|
"src/arm64/instructions-arm64.h",
|
|
|
|
"src/arm64/instrument-arm64.cc",
|
|
|
|
"src/arm64/instrument-arm64.h",
|
2014-08-29 10:40:02 +00:00
|
|
|
"src/arm64/interface-descriptors-arm64.cc",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/arm64/macro-assembler-arm64-inl.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/arm64/macro-assembler-arm64.cc",
|
|
|
|
"src/arm64/macro-assembler-arm64.h",
|
|
|
|
"src/arm64/simulator-arm64.cc",
|
|
|
|
"src/arm64/simulator-arm64.h",
|
2017-05-31 13:58:43 +00:00
|
|
|
"src/arm64/simulator-logic-arm64.cc",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/arm64/utils-arm64.cc",
|
|
|
|
"src/arm64/utils-arm64.h",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/arm64/code-generator-arm64.cc",
|
|
|
|
"src/compiler/arm64/instruction-codes-arm64.h",
|
2015-12-15 14:51:43 +00:00
|
|
|
"src/compiler/arm64/instruction-scheduler-arm64.cc",
|
2014-07-31 15:36:22 +00:00
|
|
|
"src/compiler/arm64/instruction-selector-arm64.cc",
|
2016-07-15 15:04:32 +00:00
|
|
|
"src/compiler/arm64/unwinding-info-writer-arm64.cc",
|
|
|
|
"src/compiler/arm64/unwinding-info-writer-arm64.h",
|
2015-07-31 11:07:50 +00:00
|
|
|
"src/debug/arm64/debug-arm64.cc",
|
2015-08-13 06:55:21 +00:00
|
|
|
"src/regexp/arm64/regexp-macro-assembler-arm64.cc",
|
|
|
|
"src/regexp/arm64/regexp-macro-assembler-arm64.h",
|
2017-10-23 13:09:51 +00:00
|
|
|
"src/wasm/baseline/arm64/liftoff-assembler-arm64.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
]
|
2017-09-13 21:16:25 +00:00
|
|
|
if (use_jumbo_build) {
|
|
|
|
jumbo_excluded_sources += [
|
2018-03-22 08:59:32 +00:00
|
|
|
# TODO(mostynb@vewd.com): fix this code so it doesn't need
|
2017-09-13 21:16:25 +00:00
|
|
|
# to be excluded, see the comments inside.
|
|
|
|
"src/arm64/instructions-arm64-constants.cc",
|
|
|
|
]
|
|
|
|
}
|
2016-09-21 11:44:10 +00:00
|
|
|
} else if (v8_current_cpu == "mips" || v8_current_cpu == "mipsel") {
|
|
|
|
sources += [ ### gcmole(arch:mipsel) ###
|
2015-10-20 13:25:47 +00:00
|
|
|
"src/compiler/mips/code-generator-mips.cc",
|
|
|
|
"src/compiler/mips/instruction-codes-mips.h",
|
2015-12-15 14:51:43 +00:00
|
|
|
"src/compiler/mips/instruction-scheduler-mips.cc",
|
2015-10-20 13:25:47 +00:00
|
|
|
"src/compiler/mips/instruction-selector-mips.cc",
|
|
|
|
"src/debug/mips/debug-mips.cc",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/mips/assembler-mips-inl.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/mips/assembler-mips.cc",
|
|
|
|
"src/mips/assembler-mips.h",
|
|
|
|
"src/mips/code-stubs-mips.cc",
|
|
|
|
"src/mips/code-stubs-mips.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/mips/codegen-mips.cc",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/mips/constants-mips.cc",
|
|
|
|
"src/mips/constants-mips.h",
|
|
|
|
"src/mips/cpu-mips.cc",
|
|
|
|
"src/mips/deoptimizer-mips.cc",
|
|
|
|
"src/mips/disasm-mips.cc",
|
2017-08-03 09:35:57 +00:00
|
|
|
"src/mips/frame-constants-mips.cc",
|
|
|
|
"src/mips/frame-constants-mips.h",
|
2014-08-29 15:28:26 +00:00
|
|
|
"src/mips/interface-descriptors-mips.cc",
|
2014-05-05 11:06:26 +00:00
|
|
|
"src/mips/macro-assembler-mips.cc",
|
|
|
|
"src/mips/macro-assembler-mips.h",
|
|
|
|
"src/mips/simulator-mips.cc",
|
2015-06-26 14:24:42 +00:00
|
|
|
"src/mips/simulator-mips.h",
|
2015-08-13 06:55:21 +00:00
|
|
|
"src/regexp/mips/regexp-macro-assembler-mips.cc",
|
|
|
|
"src/regexp/mips/regexp-macro-assembler-mips.h",
|
2017-10-23 13:09:51 +00:00
|
|
|
"src/wasm/baseline/mips/liftoff-assembler-mips.h",
|
2014-05-05 11:06:26 +00:00
|
|
|
]
|
2016-09-21 11:44:10 +00:00
|
|
|
} else if (v8_current_cpu == "mips64" || v8_current_cpu == "mips64el") {
|
|
|
|
sources += [ ### gcmole(arch:mips64el) ###
|
2016-05-18 14:42:21 +00:00
|
|
|
"src/compiler/mips64/code-generator-mips64.cc",
|
|
|
|
"src/compiler/mips64/instruction-codes-mips64.h",
|
|
|
|
"src/compiler/mips64/instruction-scheduler-mips64.cc",
|
|
|
|
"src/compiler/mips64/instruction-selector-mips64.cc",
|
2015-10-20 13:25:47 +00:00
|
|
|
"src/debug/mips64/debug-mips64.cc",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/mips64/assembler-mips64-inl.h",
|
2014-08-25 15:15:26 +00:00
|
|
|
"src/mips64/assembler-mips64.cc",
|
|
|
|
"src/mips64/assembler-mips64.h",
|
|
|
|
"src/mips64/code-stubs-mips64.cc",
|
|
|
|
"src/mips64/code-stubs-mips64.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/mips64/codegen-mips64.cc",
|
2014-08-25 15:15:26 +00:00
|
|
|
"src/mips64/constants-mips64.cc",
|
|
|
|
"src/mips64/constants-mips64.h",
|
|
|
|
"src/mips64/cpu-mips64.cc",
|
|
|
|
"src/mips64/deoptimizer-mips64.cc",
|
|
|
|
"src/mips64/disasm-mips64.cc",
|
2017-08-03 09:35:57 +00:00
|
|
|
"src/mips64/frame-constants-mips64.cc",
|
|
|
|
"src/mips64/frame-constants-mips64.h",
|
2014-08-29 15:28:26 +00:00
|
|
|
"src/mips64/interface-descriptors-mips64.cc",
|
2014-08-25 15:15:26 +00:00
|
|
|
"src/mips64/macro-assembler-mips64.cc",
|
|
|
|
"src/mips64/macro-assembler-mips64.h",
|
|
|
|
"src/mips64/simulator-mips64.cc",
|
2015-06-26 14:24:42 +00:00
|
|
|
"src/mips64/simulator-mips64.h",
|
2015-08-13 06:55:21 +00:00
|
|
|
"src/regexp/mips64/regexp-macro-assembler-mips64.cc",
|
|
|
|
"src/regexp/mips64/regexp-macro-assembler-mips64.h",
|
2017-10-23 13:09:51 +00:00
|
|
|
"src/wasm/baseline/mips64/liftoff-assembler-mips64.h",
|
2014-08-25 15:15:26 +00:00
|
|
|
]
|
2016-09-21 11:44:10 +00:00
|
|
|
} else if (v8_current_cpu == "ppc" || v8_current_cpu == "ppc64") {
|
|
|
|
sources += [ ### gcmole(arch:ppc) ###
|
|
|
|
"src/compiler/ppc/code-generator-ppc.cc",
|
|
|
|
"src/compiler/ppc/instruction-codes-ppc.h",
|
|
|
|
"src/compiler/ppc/instruction-scheduler-ppc.cc",
|
|
|
|
"src/compiler/ppc/instruction-selector-ppc.cc",
|
|
|
|
"src/debug/ppc/debug-ppc.cc",
|
|
|
|
"src/ppc/assembler-ppc-inl.h",
|
|
|
|
"src/ppc/assembler-ppc.cc",
|
|
|
|
"src/ppc/assembler-ppc.h",
|
|
|
|
"src/ppc/code-stubs-ppc.cc",
|
|
|
|
"src/ppc/code-stubs-ppc.h",
|
|
|
|
"src/ppc/codegen-ppc.cc",
|
|
|
|
"src/ppc/constants-ppc.cc",
|
|
|
|
"src/ppc/constants-ppc.h",
|
|
|
|
"src/ppc/cpu-ppc.cc",
|
|
|
|
"src/ppc/deoptimizer-ppc.cc",
|
|
|
|
"src/ppc/disasm-ppc.cc",
|
2017-08-03 09:35:57 +00:00
|
|
|
"src/ppc/frame-constants-ppc.cc",
|
|
|
|
"src/ppc/frame-constants-ppc.h",
|
2016-09-21 11:44:10 +00:00
|
|
|
"src/ppc/interface-descriptors-ppc.cc",
|
|
|
|
"src/ppc/macro-assembler-ppc.cc",
|
|
|
|
"src/ppc/macro-assembler-ppc.h",
|
|
|
|
"src/ppc/simulator-ppc.cc",
|
|
|
|
"src/ppc/simulator-ppc.h",
|
|
|
|
"src/regexp/ppc/regexp-macro-assembler-ppc.cc",
|
|
|
|
"src/regexp/ppc/regexp-macro-assembler-ppc.h",
|
2017-10-23 13:09:51 +00:00
|
|
|
"src/wasm/baseline/ppc/liftoff-assembler-ppc.h",
|
2016-09-21 11:44:10 +00:00
|
|
|
]
|
2016-07-15 22:32:55 +00:00
|
|
|
} else if (v8_current_cpu == "s390" || v8_current_cpu == "s390x") {
|
2016-09-21 11:44:10 +00:00
|
|
|
sources += [ ### gcmole(arch:s390) ###
|
2016-03-04 15:38:18 +00:00
|
|
|
"src/compiler/s390/code-generator-s390.cc",
|
|
|
|
"src/compiler/s390/instruction-codes-s390.h",
|
|
|
|
"src/compiler/s390/instruction-scheduler-s390.cc",
|
|
|
|
"src/compiler/s390/instruction-selector-s390.cc",
|
2016-03-01 17:00:08 +00:00
|
|
|
"src/debug/s390/debug-s390.cc",
|
2016-03-08 15:08:01 +00:00
|
|
|
"src/regexp/s390/regexp-macro-assembler-s390.cc",
|
|
|
|
"src/regexp/s390/regexp-macro-assembler-s390.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/s390/assembler-s390-inl.h",
|
2016-02-26 16:24:36 +00:00
|
|
|
"src/s390/assembler-s390.cc",
|
|
|
|
"src/s390/assembler-s390.h",
|
2016-03-08 15:08:01 +00:00
|
|
|
"src/s390/code-stubs-s390.cc",
|
|
|
|
"src/s390/code-stubs-s390.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/s390/codegen-s390.cc",
|
2016-02-26 16:24:36 +00:00
|
|
|
"src/s390/constants-s390.cc",
|
|
|
|
"src/s390/constants-s390.h",
|
|
|
|
"src/s390/cpu-s390.cc",
|
|
|
|
"src/s390/deoptimizer-s390.cc",
|
|
|
|
"src/s390/disasm-s390.cc",
|
2017-08-03 09:35:57 +00:00
|
|
|
"src/s390/frame-constants-s390.cc",
|
|
|
|
"src/s390/frame-constants-s390.h",
|
2016-02-26 16:24:36 +00:00
|
|
|
"src/s390/interface-descriptors-s390.cc",
|
|
|
|
"src/s390/macro-assembler-s390.cc",
|
|
|
|
"src/s390/macro-assembler-s390.h",
|
|
|
|
"src/s390/simulator-s390.cc",
|
|
|
|
"src/s390/simulator-s390.h",
|
2017-10-24 20:14:17 +00:00
|
|
|
"src/wasm/baseline/s390/liftoff-assembler-s390.h",
|
2016-02-26 16:24:36 +00:00
|
|
|
]
|
2014-05-05 11:06:26 +00:00
|
|
|
}
|
|
|
|
|
2016-05-17 10:54:14 +00:00
|
|
|
configs = [ ":internal_config" ]
|
2014-05-05 11:06:26 +00:00
|
|
|
|
|
|
|
defines = []
|
2015-01-08 13:21:52 +00:00
|
|
|
deps = [
|
2018-09-10 12:55:45 +00:00
|
|
|
":generate_bytecode_builtins_list",
|
2018-05-04 13:18:37 +00:00
|
|
|
":torque_generated_core",
|
2017-05-02 08:49:38 +00:00
|
|
|
":v8_headers",
|
2015-01-08 13:21:52 +00:00
|
|
|
":v8_libbase",
|
2016-05-26 02:13:58 +00:00
|
|
|
":v8_libsampler",
|
2017-03-31 08:24:34 +00:00
|
|
|
"src/inspector:inspector",
|
2015-01-08 13:21:52 +00:00
|
|
|
]
|
2014-05-05 11:06:26 +00:00
|
|
|
|
|
|
|
if (v8_enable_i18n_support) {
|
2017-05-09 07:16:27 +00:00
|
|
|
public_deps = [
|
|
|
|
"//third_party/icu",
|
|
|
|
]
|
2014-05-05 11:06:26 +00:00
|
|
|
if (is_win) {
|
|
|
|
deps += [ "//third_party/icu:icudata" ]
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
sources -= [
|
2017-04-21 08:35:12 +00:00
|
|
|
"src/builtins/builtins-intl.cc",
|
2017-06-14 20:32:49 +00:00
|
|
|
"src/char-predicates.cc",
|
2017-04-21 08:35:12 +00:00
|
|
|
"src/intl.cc",
|
|
|
|
"src/intl.h",
|
2018-07-02 14:02:35 +00:00
|
|
|
"src/objects/intl-objects-inl.h",
|
2017-04-21 08:35:12 +00:00
|
|
|
"src/objects/intl-objects.cc",
|
|
|
|
"src/objects/intl-objects.h",
|
2018-09-05 02:17:38 +00:00
|
|
|
"src/objects/js-break-iterator-inl.h",
|
|
|
|
"src/objects/js-break-iterator.cc",
|
|
|
|
"src/objects/js-break-iterator.h",
|
2018-08-08 09:23:07 +00:00
|
|
|
"src/objects/js-collator-inl.h",
|
|
|
|
"src/objects/js-collator.cc",
|
|
|
|
"src/objects/js-collator.h",
|
2018-08-29 04:40:53 +00:00
|
|
|
"src/objects/js-date-time-format-inl.h",
|
|
|
|
"src/objects/js-date-time-format.cc",
|
|
|
|
"src/objects/js-date-time-format.h",
|
2018-07-24 21:07:50 +00:00
|
|
|
"src/objects/js-list-format-inl.h",
|
|
|
|
"src/objects/js-list-format.cc",
|
|
|
|
"src/objects/js-list-format.h",
|
2018-05-15 20:50:46 +00:00
|
|
|
"src/objects/js-locale-inl.h",
|
|
|
|
"src/objects/js-locale.cc",
|
|
|
|
"src/objects/js-locale.h",
|
2018-09-04 18:32:51 +00:00
|
|
|
"src/objects/js-number-format-inl.h",
|
|
|
|
"src/objects/js-number-format.cc",
|
|
|
|
"src/objects/js-number-format.h",
|
2018-08-06 09:31:26 +00:00
|
|
|
"src/objects/js-plural-rules-inl.h",
|
|
|
|
"src/objects/js-plural-rules.cc",
|
|
|
|
"src/objects/js-plural-rules.h",
|
2018-07-10 12:52:05 +00:00
|
|
|
"src/objects/js-relative-time-format-inl.h",
|
|
|
|
"src/objects/js-relative-time-format.cc",
|
|
|
|
"src/objects/js-relative-time-format.h",
|
2017-04-21 08:35:12 +00:00
|
|
|
"src/runtime/runtime-intl.cc",
|
2014-05-05 11:06:26 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2014-05-26 07:29:39 +00:00
|
|
|
if (v8_postmortem_support) {
|
|
|
|
sources += [ "$target_gen_dir/debug-support.cc" ]
|
|
|
|
deps += [ ":postmortem-metadata" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-24 13:16:38 +00:00
|
|
|
v8_source_set("torque_base") {
|
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
"src/torque/ast.h",
|
|
|
|
"src/torque/contextual.h",
|
|
|
|
"src/torque/declarable.cc",
|
|
|
|
"src/torque/declarable.h",
|
|
|
|
"src/torque/declaration-visitor.cc",
|
|
|
|
"src/torque/declaration-visitor.h",
|
|
|
|
"src/torque/declarations.cc",
|
|
|
|
"src/torque/declarations.h",
|
|
|
|
"src/torque/earley-parser.cc",
|
|
|
|
"src/torque/earley-parser.h",
|
|
|
|
"src/torque/file-visitor.cc",
|
|
|
|
"src/torque/file-visitor.h",
|
|
|
|
"src/torque/global-context.h",
|
|
|
|
"src/torque/implementation-visitor.cc",
|
|
|
|
"src/torque/implementation-visitor.h",
|
|
|
|
"src/torque/scope.cc",
|
|
|
|
"src/torque/scope.h",
|
|
|
|
"src/torque/source-positions.cc",
|
|
|
|
"src/torque/source-positions.h",
|
|
|
|
"src/torque/torque-parser.cc",
|
|
|
|
"src/torque/torque-parser.h",
|
|
|
|
"src/torque/type-oracle.cc",
|
|
|
|
"src/torque/type-oracle.h",
|
|
|
|
"src/torque/types.cc",
|
|
|
|
"src/torque/types.h",
|
|
|
|
"src/torque/utils.cc",
|
|
|
|
"src/torque/utils.h",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":v8_libbase",
|
|
|
|
]
|
|
|
|
|
|
|
|
configs = [ ":internal_config" ]
|
|
|
|
}
|
|
|
|
|
2016-10-07 07:56:43 +00:00
|
|
|
v8_component("v8_libbase") {
|
2014-05-26 07:29:39 +00:00
|
|
|
sources = [
|
2015-04-20 16:24:52 +00:00
|
|
|
"src/base/adapters.h",
|
2018-09-17 11:32:01 +00:00
|
|
|
"src/base/address-region.h",
|
2016-05-09 16:22:09 +00:00
|
|
|
"src/base/atomic-utils.h",
|
2014-06-05 12:14:47 +00:00
|
|
|
"src/base/atomicops.h",
|
|
|
|
"src/base/atomicops_internals_atomicword_compat.h",
|
2016-10-21 10:05:32 +00:00
|
|
|
"src/base/atomicops_internals_portable.h",
|
2017-08-19 17:45:44 +00:00
|
|
|
"src/base/atomicops_internals_std.h",
|
2016-10-07 07:56:43 +00:00
|
|
|
"src/base/base-export.h",
|
2014-09-02 13:36:35 +00:00
|
|
|
"src/base/bits.cc",
|
2014-08-14 09:07:58 +00:00
|
|
|
"src/base/bits.h",
|
2018-09-15 19:13:23 +00:00
|
|
|
"src/base/bounded-page-allocator.cc",
|
|
|
|
"src/base/bounded-page-allocator.h",
|
2014-05-28 08:07:18 +00:00
|
|
|
"src/base/build_config.h",
|
2016-09-15 13:14:33 +00:00
|
|
|
"src/base/compiler-specific.h",
|
2014-06-30 13:25:46 +00:00
|
|
|
"src/base/cpu.cc",
|
|
|
|
"src/base/cpu.h",
|
2016-08-18 14:25:19 +00:00
|
|
|
"src/base/debug/stack_trace.cc",
|
|
|
|
"src/base/debug/stack_trace.h",
|
2014-09-05 11:48:47 +00:00
|
|
|
"src/base/division-by-constant.cc",
|
|
|
|
"src/base/division-by-constant.h",
|
2017-05-03 09:58:03 +00:00
|
|
|
"src/base/export-template.h",
|
2016-06-08 12:09:25 +00:00
|
|
|
"src/base/file-utils.cc",
|
|
|
|
"src/base/file-utils.h",
|
2014-08-27 12:16:36 +00:00
|
|
|
"src/base/flags.h",
|
2016-04-12 16:13:08 +00:00
|
|
|
"src/base/format-macros.h",
|
2016-08-18 14:25:19 +00:00
|
|
|
"src/base/free_deleter.h",
|
2014-10-06 12:27:24 +00:00
|
|
|
"src/base/functional.cc",
|
|
|
|
"src/base/functional.h",
|
2016-09-20 08:40:04 +00:00
|
|
|
"src/base/hashmap-entry.h",
|
2016-06-09 17:58:10 +00:00
|
|
|
"src/base/hashmap.h",
|
2016-06-10 05:51:58 +00:00
|
|
|
"src/base/ieee754.cc",
|
|
|
|
"src/base/ieee754.h",
|
2014-12-16 07:31:46 +00:00
|
|
|
"src/base/iterator.h",
|
2014-06-05 12:14:47 +00:00
|
|
|
"src/base/lazy-instance.h",
|
2018-05-22 16:58:12 +00:00
|
|
|
"src/base/list.h",
|
2014-06-30 13:25:46 +00:00
|
|
|
"src/base/logging.cc",
|
|
|
|
"src/base/logging.h",
|
2018-09-17 10:01:09 +00:00
|
|
|
"src/base/lsan-page-allocator.cc",
|
|
|
|
"src/base/lsan-page-allocator.h",
|
2014-05-26 07:29:39 +00:00
|
|
|
"src/base/macros.h",
|
2014-06-05 12:14:47 +00:00
|
|
|
"src/base/once.cc",
|
|
|
|
"src/base/once.h",
|
2017-06-09 10:48:12 +00:00
|
|
|
"src/base/optional.h",
|
2017-12-21 18:09:26 +00:00
|
|
|
"src/base/page-allocator.cc",
|
|
|
|
"src/base/page-allocator.h",
|
2014-06-30 13:25:46 +00:00
|
|
|
"src/base/platform/condition-variable.cc",
|
|
|
|
"src/base/platform/condition-variable.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/base/platform/elapsed-timer.h",
|
2014-06-30 13:25:46 +00:00
|
|
|
"src/base/platform/mutex.cc",
|
|
|
|
"src/base/platform/mutex.h",
|
|
|
|
"src/base/platform/platform.h",
|
|
|
|
"src/base/platform/semaphore.cc",
|
|
|
|
"src/base/platform/semaphore.h",
|
2016-03-31 07:30:16 +00:00
|
|
|
"src/base/platform/time.cc",
|
|
|
|
"src/base/platform/time.h",
|
2018-08-30 13:38:28 +00:00
|
|
|
"src/base/region-allocator.cc",
|
|
|
|
"src/base/region-allocator.h",
|
2016-10-14 08:12:16 +00:00
|
|
|
"src/base/ring-buffer.h",
|
2014-06-18 11:01:54 +00:00
|
|
|
"src/base/safe_conversions.h",
|
|
|
|
"src/base/safe_conversions_impl.h",
|
|
|
|
"src/base/safe_math.h",
|
|
|
|
"src/base/safe_math_impl.h",
|
2014-08-27 08:29:22 +00:00
|
|
|
"src/base/sys-info.cc",
|
|
|
|
"src/base/sys-info.h",
|
2017-05-30 08:47:37 +00:00
|
|
|
"src/base/template-utils.h",
|
2017-03-03 13:54:57 +00:00
|
|
|
"src/base/timezone-cache.h",
|
2017-09-08 18:01:20 +00:00
|
|
|
"src/base/tsan.h",
|
2014-06-30 13:25:46 +00:00
|
|
|
"src/base/utils/random-number-generator.cc",
|
|
|
|
"src/base/utils/random-number-generator.h",
|
2014-05-26 07:29:39 +00:00
|
|
|
]
|
|
|
|
|
2016-05-17 10:54:14 +00:00
|
|
|
configs = [ ":internal_config_base" ]
|
2014-06-30 13:25:46 +00:00
|
|
|
|
2016-10-07 07:56:43 +00:00
|
|
|
public_configs = [ ":libbase_config" ]
|
|
|
|
|
2018-05-15 07:57:44 +00:00
|
|
|
public_deps = []
|
|
|
|
|
2018-03-26 07:00:19 +00:00
|
|
|
data = []
|
|
|
|
|
2018-04-09 06:36:36 +00:00
|
|
|
data_deps = []
|
|
|
|
|
2014-06-30 13:25:46 +00:00
|
|
|
defines = []
|
|
|
|
|
2016-10-07 07:56:43 +00:00
|
|
|
if (is_component_build) {
|
|
|
|
defines = [ "BUILDING_V8_BASE_SHARED" ]
|
|
|
|
}
|
|
|
|
|
2018-03-30 17:55:49 +00:00
|
|
|
if (is_posix || is_fuchsia) {
|
2017-03-03 13:54:57 +00:00
|
|
|
sources += [
|
|
|
|
"src/base/platform/platform-posix.cc",
|
|
|
|
"src/base/platform/platform-posix.h",
|
|
|
|
]
|
2018-02-01 19:52:44 +00:00
|
|
|
if (current_os != "aix") {
|
|
|
|
sources += [
|
|
|
|
"src/base/platform/platform-posix-time.cc",
|
2018-02-09 12:38:11 +00:00
|
|
|
"src/base/platform/platform-posix-time.h",
|
2018-02-01 19:52:44 +00:00
|
|
|
]
|
|
|
|
}
|
2014-06-30 13:25:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (is_linux) {
|
2016-08-18 14:25:19 +00:00
|
|
|
sources += [
|
|
|
|
"src/base/debug/stack_trace_posix.cc",
|
|
|
|
"src/base/platform/platform-linux.cc",
|
|
|
|
]
|
2014-06-30 13:25:46 +00:00
|
|
|
|
2016-03-31 07:30:16 +00:00
|
|
|
libs = [
|
|
|
|
"dl",
|
2017-05-12 01:35:09 +00:00
|
|
|
"rt",
|
|
|
|
]
|
|
|
|
} else if (current_os == "aix") {
|
|
|
|
sources += [
|
|
|
|
"src/base/debug/stack_trace_posix.cc",
|
|
|
|
"src/base/platform/platform-aix.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
libs = [
|
|
|
|
"dl",
|
2016-03-31 07:30:16 +00:00
|
|
|
"rt",
|
|
|
|
]
|
2014-06-30 13:25:46 +00:00
|
|
|
} else if (is_android) {
|
2015-03-31 12:08:10 +00:00
|
|
|
if (current_toolchain == host_toolchain) {
|
2016-03-31 07:30:16 +00:00
|
|
|
libs = [
|
|
|
|
"dl",
|
|
|
|
"rt",
|
|
|
|
]
|
2015-03-31 12:08:10 +00:00
|
|
|
if (host_os == "mac") {
|
2016-08-18 14:25:19 +00:00
|
|
|
sources += [
|
|
|
|
"src/base/debug/stack_trace_posix.cc",
|
|
|
|
"src/base/platform/platform-macos.cc",
|
|
|
|
]
|
2014-06-30 13:25:46 +00:00
|
|
|
} else {
|
2016-08-18 14:25:19 +00:00
|
|
|
sources += [
|
|
|
|
"src/base/debug/stack_trace_posix.cc",
|
|
|
|
"src/base/platform/platform-linux.cc",
|
|
|
|
]
|
2014-06-30 13:25:46 +00:00
|
|
|
}
|
|
|
|
} else {
|
2016-08-18 14:25:19 +00:00
|
|
|
sources += [
|
|
|
|
"src/base/debug/stack_trace_android.cc",
|
|
|
|
"src/base/platform/platform-linux.cc",
|
|
|
|
]
|
2014-06-30 13:25:46 +00:00
|
|
|
}
|
2017-06-11 14:34:32 +00:00
|
|
|
} else if (is_fuchsia) {
|
|
|
|
sources += [
|
|
|
|
"src/base/debug/stack_trace_fuchsia.cc",
|
|
|
|
"src/base/platform/platform-fuchsia.cc",
|
|
|
|
]
|
2014-06-30 13:25:46 +00:00
|
|
|
} else if (is_mac) {
|
2016-08-18 14:25:19 +00:00
|
|
|
sources += [
|
|
|
|
"src/base/debug/stack_trace_posix.cc",
|
|
|
|
"src/base/platform/platform-macos.cc",
|
|
|
|
]
|
2014-06-30 13:25:46 +00:00
|
|
|
} else if (is_win) {
|
|
|
|
# TODO(jochen): Add support for cygwin.
|
|
|
|
sources += [
|
2016-08-18 14:25:19 +00:00
|
|
|
"src/base/debug/stack_trace_win.cc",
|
2014-06-30 13:25:46 +00:00
|
|
|
"src/base/platform/platform-win32.cc",
|
2014-07-17 17:39:54 +00:00
|
|
|
"src/base/win32-headers.h",
|
2014-06-30 13:25:46 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
defines += [ "_CRT_RAND_S" ] # for rand_s()
|
|
|
|
|
2015-01-08 13:21:52 +00:00
|
|
|
libs = [
|
2016-08-18 14:25:19 +00:00
|
|
|
"dbghelp.lib",
|
|
|
|
"shlwapi.lib",
|
2015-01-08 13:21:52 +00:00
|
|
|
"winmm.lib",
|
|
|
|
"ws2_32.lib",
|
|
|
|
]
|
2018-03-26 07:00:19 +00:00
|
|
|
|
2018-04-09 06:36:36 +00:00
|
|
|
data_deps += [ "//build/win:runtime_libs" ]
|
2014-06-30 13:25:46 +00:00
|
|
|
}
|
|
|
|
|
2018-03-26 11:29:32 +00:00
|
|
|
if (is_tsan && !build_with_chromium) {
|
|
|
|
data += [ "tools/sanitizers/tsan_suppressions.txt" ]
|
|
|
|
}
|
|
|
|
|
2014-06-30 13:25:46 +00:00
|
|
|
# TODO(jochen): Add support for qnx, freebsd, openbsd, netbsd, and solaris.
|
2014-05-05 11:06:26 +00:00
|
|
|
}
|
|
|
|
|
2016-10-10 08:51:48 +00:00
|
|
|
v8_component("v8_libplatform") {
|
2014-07-03 07:37:27 +00:00
|
|
|
sources = [
|
2016-08-02 17:12:20 +00:00
|
|
|
"//base/trace_event/common/trace_event_common.h",
|
2016-10-10 08:51:48 +00:00
|
|
|
"include/libplatform/libplatform-export.h",
|
2014-07-03 07:37:27 +00:00
|
|
|
"include/libplatform/libplatform.h",
|
2016-07-27 16:21:09 +00:00
|
|
|
"include/libplatform/v8-tracing.h",
|
2017-11-15 12:07:22 +00:00
|
|
|
"src/libplatform/default-foreground-task-runner.cc",
|
|
|
|
"src/libplatform/default-foreground-task-runner.h",
|
2014-07-03 07:37:27 +00:00
|
|
|
"src/libplatform/default-platform.cc",
|
|
|
|
"src/libplatform/default-platform.h",
|
2018-03-26 16:44:23 +00:00
|
|
|
"src/libplatform/default-worker-threads-task-runner.cc",
|
|
|
|
"src/libplatform/default-worker-threads-task-runner.h",
|
2014-07-03 07:37:27 +00:00
|
|
|
"src/libplatform/task-queue.cc",
|
|
|
|
"src/libplatform/task-queue.h",
|
2016-07-27 16:21:09 +00:00
|
|
|
"src/libplatform/tracing/trace-buffer.cc",
|
|
|
|
"src/libplatform/tracing/trace-buffer.h",
|
|
|
|
"src/libplatform/tracing/trace-config.cc",
|
|
|
|
"src/libplatform/tracing/trace-object.cc",
|
|
|
|
"src/libplatform/tracing/trace-writer.cc",
|
|
|
|
"src/libplatform/tracing/trace-writer.h",
|
|
|
|
"src/libplatform/tracing/tracing-controller.cc",
|
2014-07-03 07:37:27 +00:00
|
|
|
"src/libplatform/worker-thread.cc",
|
|
|
|
"src/libplatform/worker-thread.h",
|
|
|
|
]
|
|
|
|
|
2016-05-17 10:54:14 +00:00
|
|
|
configs = [ ":internal_config_base" ]
|
2014-07-03 07:37:27 +00:00
|
|
|
|
2016-10-10 08:51:48 +00:00
|
|
|
if (is_component_build) {
|
|
|
|
defines = [ "BUILDING_V8_PLATFORM_SHARED" ]
|
|
|
|
}
|
|
|
|
|
2016-05-17 10:54:14 +00:00
|
|
|
public_configs = [ ":libplatform_config" ]
|
2016-05-11 12:03:16 +00:00
|
|
|
|
2014-07-03 07:37:27 +00:00
|
|
|
deps = [
|
|
|
|
":v8_libbase",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-05-26 02:13:58 +00:00
|
|
|
v8_source_set("v8_libsampler") {
|
|
|
|
sources = [
|
2016-07-08 06:44:46 +00:00
|
|
|
"src/libsampler/sampler.cc",
|
|
|
|
"src/libsampler/sampler.h",
|
2016-05-26 02:13:58 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
configs = [ ":internal_config_base" ]
|
|
|
|
|
|
|
|
public_configs = [ ":libsampler_config" ]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":v8_libbase",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-05-11 10:17:37 +00:00
|
|
|
v8_source_set("fuzzer_support") {
|
2016-01-26 12:19:28 +00:00
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
"test/fuzzer/fuzzer-support.cc",
|
|
|
|
"test/fuzzer/fuzzer-support.h",
|
|
|
|
]
|
|
|
|
|
2016-05-17 10:54:14 +00:00
|
|
|
configs = [ ":internal_config_base" ]
|
2016-01-26 12:19:28 +00:00
|
|
|
|
2016-09-26 07:40:24 +00:00
|
|
|
deps = [
|
|
|
|
":v8",
|
|
|
|
]
|
|
|
|
|
|
|
|
public_deps = [
|
2016-10-10 08:51:48 +00:00
|
|
|
":v8_libbase",
|
2016-09-26 07:40:24 +00:00
|
|
|
":v8_libplatform",
|
|
|
|
]
|
2018-07-09 17:04:28 +00:00
|
|
|
|
|
|
|
if (v8_enable_i18n_support) {
|
|
|
|
public_deps += [ "//third_party/icu" ]
|
|
|
|
}
|
2016-09-26 07:40:24 +00:00
|
|
|
}
|
|
|
|
|
2017-11-27 09:36:01 +00:00
|
|
|
###############################################################################
|
|
|
|
# Produce a single static library for embedders
|
|
|
|
#
|
|
|
|
|
|
|
|
if (v8_monolithic) {
|
|
|
|
# A component build is not monolithic.
|
|
|
|
assert(!is_component_build)
|
|
|
|
|
|
|
|
# Using external startup data would produce separate files.
|
|
|
|
assert(!v8_use_external_startup_data)
|
|
|
|
v8_static_library("v8_monolith") {
|
|
|
|
deps = [
|
|
|
|
":v8",
|
|
|
|
":v8_libbase",
|
|
|
|
":v8_libplatform",
|
|
|
|
":v8_libsampler",
|
|
|
|
"//build/win:default_exe_manifest",
|
|
|
|
]
|
|
|
|
|
|
|
|
configs = [ ":internal_config" ]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-05-05 11:06:26 +00:00
|
|
|
###############################################################################
|
|
|
|
# Executables
|
|
|
|
#
|
|
|
|
|
2018-09-12 11:55:04 +00:00
|
|
|
if (current_toolchain == v8_generator_toolchain) {
|
2018-09-11 10:27:03 +00:00
|
|
|
v8_executable("bytecode_builtins_list_generator") {
|
2018-09-10 12:55:45 +00:00
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
|
|
|
|
|
|
|
include_dirs = [ "." ]
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
"src/builtins/generate-bytecodes-builtins-list.cc",
|
|
|
|
"src/interpreter/bytecode-operands.cc",
|
|
|
|
"src/interpreter/bytecode-operands.h",
|
|
|
|
"src/interpreter/bytecodes.cc",
|
|
|
|
"src/interpreter/bytecodes.h",
|
|
|
|
]
|
|
|
|
|
2018-09-11 10:27:03 +00:00
|
|
|
configs = [ ":internal_config" ]
|
|
|
|
|
2018-09-10 12:55:45 +00:00
|
|
|
deps = [
|
|
|
|
":v8_libbase",
|
|
|
|
"//build/win:default_exe_manifest",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-20 08:12:49 +00:00
|
|
|
if (v8_use_snapshot && current_toolchain == v8_snapshot_toolchain) {
|
2016-06-14 10:07:22 +00:00
|
|
|
v8_executable("mksnapshot") {
|
2014-09-09 08:57:29 +00:00
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
2014-06-03 06:50:46 +00:00
|
|
|
|
2014-06-05 08:45:24 +00:00
|
|
|
sources = [
|
2015-03-27 15:28:55 +00:00
|
|
|
"src/snapshot/mksnapshot.cc",
|
2014-06-05 08:45:24 +00:00
|
|
|
]
|
2014-05-05 11:06:26 +00:00
|
|
|
|
2016-06-20 05:51:37 +00:00
|
|
|
configs = [ ":internal_config" ]
|
2014-06-04 15:21:26 +00:00
|
|
|
|
2014-06-05 08:45:24 +00:00
|
|
|
deps = [
|
|
|
|
":v8_base",
|
2017-09-06 10:48:08 +00:00
|
|
|
":v8_init",
|
2016-10-07 07:56:43 +00:00
|
|
|
":v8_libbase",
|
2014-07-03 07:37:27 +00:00
|
|
|
":v8_libplatform",
|
2014-06-05 08:45:24 +00:00
|
|
|
":v8_nosnapshot",
|
2016-05-02 16:46:13 +00:00
|
|
|
"//build/win:default_exe_manifest",
|
2014-06-05 08:45:24 +00:00
|
|
|
]
|
2014-05-05 11:06:26 +00:00
|
|
|
}
|
2015-01-08 10:48:04 +00:00
|
|
|
}
|
|
|
|
|
2018-04-16 09:24:22 +00:00
|
|
|
if (current_toolchain == v8_snapshot_toolchain) {
|
|
|
|
v8_executable("torque") {
|
|
|
|
visibility = [ ":*" ] # Only targets in this file can depend on this.
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
"src/torque/torque.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
2018-07-24 13:16:38 +00:00
|
|
|
":torque_base",
|
2018-04-16 09:24:22 +00:00
|
|
|
"//build/win:default_exe_manifest",
|
|
|
|
]
|
|
|
|
|
2018-07-24 13:16:38 +00:00
|
|
|
configs = [ ":internal_config" ]
|
2018-04-16 09:24:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-01-08 13:21:52 +00:00
|
|
|
###############################################################################
|
|
|
|
# Public targets
|
|
|
|
#
|
2015-01-08 05:16:32 +00:00
|
|
|
|
2016-06-08 12:09:25 +00:00
|
|
|
want_v8_shell =
|
2016-06-01 12:28:57 +00:00
|
|
|
(current_toolchain == host_toolchain && v8_toolset_for_shell == "host") ||
|
|
|
|
(current_toolchain == v8_snapshot_toolchain &&
|
|
|
|
v8_toolset_for_shell == "host") ||
|
2016-06-08 12:09:25 +00:00
|
|
|
(current_toolchain != host_toolchain && v8_toolset_for_shell == "target")
|
2016-06-01 12:28:57 +00:00
|
|
|
|
|
|
|
group("gn_all") {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":d8",
|
2017-01-13 09:09:26 +00:00
|
|
|
":v8_fuzzers",
|
2016-06-22 13:36:44 +00:00
|
|
|
":v8_hello_world",
|
|
|
|
":v8_sample_process",
|
2016-06-03 13:46:08 +00:00
|
|
|
"test:gn_all",
|
|
|
|
"tools:gn_all",
|
2016-06-01 12:28:57 +00:00
|
|
|
]
|
|
|
|
|
2018-06-11 11:49:00 +00:00
|
|
|
if (v8_custom_deps != "") {
|
|
|
|
# Custom dependency from directory under v8/custom_deps.
|
|
|
|
deps += [ v8_custom_deps ]
|
|
|
|
}
|
|
|
|
|
2016-06-01 12:28:57 +00:00
|
|
|
if (want_v8_shell) {
|
2016-06-08 12:09:25 +00:00
|
|
|
deps += [ ":v8_shell" ]
|
2016-06-01 12:28:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-02-02 11:32:52 +00:00
|
|
|
group("v8_clusterfuzz") {
|
2017-10-31 13:14:41 +00:00
|
|
|
testonly = true
|
|
|
|
|
2017-02-02 11:32:52 +00:00
|
|
|
deps = [
|
|
|
|
":d8",
|
|
|
|
]
|
|
|
|
|
|
|
|
if (v8_multi_arch_build) {
|
|
|
|
deps += [
|
|
|
|
":d8(//build/toolchain/linux:clang_x64)",
|
2017-02-13 10:42:08 +00:00
|
|
|
":d8(//build/toolchain/linux:clang_x64_v8_arm64)",
|
2017-02-14 15:19:03 +00:00
|
|
|
":d8(//build/toolchain/linux:clang_x86)",
|
2017-02-13 10:42:08 +00:00
|
|
|
":d8(//build/toolchain/linux:clang_x86_v8_arm)",
|
2017-02-02 11:32:52 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-06-22 14:11:01 +00:00
|
|
|
group("v8_archive") {
|
|
|
|
deps = [
|
|
|
|
":d8",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2017-01-13 09:09:26 +00:00
|
|
|
group("v8_fuzzers") {
|
|
|
|
testonly = true
|
2018-03-26 13:12:27 +00:00
|
|
|
data_deps = [
|
2017-01-13 09:09:26 +00:00
|
|
|
":v8_simple_json_fuzzer",
|
2018-01-12 10:57:34 +00:00
|
|
|
":v8_simple_multi_return_fuzzer",
|
2017-01-13 09:09:26 +00:00
|
|
|
":v8_simple_parser_fuzzer",
|
2018-01-18 10:27:08 +00:00
|
|
|
":v8_simple_regexp_builtins_fuzzer",
|
2017-01-13 09:09:26 +00:00
|
|
|
":v8_simple_regexp_fuzzer",
|
2017-06-13 14:41:54 +00:00
|
|
|
":v8_simple_wasm_async_fuzzer",
|
2017-01-13 09:09:26 +00:00
|
|
|
":v8_simple_wasm_code_fuzzer",
|
2017-04-12 11:30:33 +00:00
|
|
|
":v8_simple_wasm_compile_fuzzer",
|
2017-01-13 09:09:26 +00:00
|
|
|
":v8_simple_wasm_data_section_fuzzer",
|
|
|
|
":v8_simple_wasm_function_sigs_section_fuzzer",
|
|
|
|
":v8_simple_wasm_fuzzer",
|
|
|
|
":v8_simple_wasm_globals_section_fuzzer",
|
|
|
|
":v8_simple_wasm_imports_section_fuzzer",
|
|
|
|
":v8_simple_wasm_memory_section_fuzzer",
|
|
|
|
":v8_simple_wasm_names_section_fuzzer",
|
|
|
|
":v8_simple_wasm_types_section_fuzzer",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2015-06-09 08:36:09 +00:00
|
|
|
if (is_component_build) {
|
2016-06-14 10:07:22 +00:00
|
|
|
v8_component("v8") {
|
2015-01-08 13:21:52 +00:00
|
|
|
sources = [
|
|
|
|
"src/v8dll-main.cc",
|
2015-01-08 10:48:04 +00:00
|
|
|
]
|
2015-01-08 13:21:52 +00:00
|
|
|
|
2015-09-18 09:32:30 +00:00
|
|
|
public_deps = [
|
|
|
|
":v8_base",
|
2016-06-01 12:28:57 +00:00
|
|
|
":v8_maybe_snapshot",
|
2015-09-18 09:32:30 +00:00
|
|
|
]
|
2015-01-08 13:21:52 +00:00
|
|
|
|
2016-06-20 05:51:37 +00:00
|
|
|
configs = [ ":internal_config" ]
|
2015-01-08 10:48:04 +00:00
|
|
|
|
2015-04-09 19:36:02 +00:00
|
|
|
public_configs = [ ":external_config" ]
|
2015-01-08 13:21:52 +00:00
|
|
|
}
|
2017-05-03 09:58:03 +00:00
|
|
|
|
|
|
|
v8_component("v8_for_testing") {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
sources = [
|
|
|
|
"src/v8dll-main.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
public_deps = [
|
2018-07-24 13:16:38 +00:00
|
|
|
":torque_base",
|
2017-05-03 09:58:03 +00:00
|
|
|
":v8_base",
|
|
|
|
":v8_maybe_snapshot",
|
|
|
|
]
|
|
|
|
|
|
|
|
if (v8_use_snapshot) {
|
2017-09-06 10:48:08 +00:00
|
|
|
public_deps += [ ":v8_initializers" ]
|
2017-05-03 09:58:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
configs = [ ":internal_config" ]
|
|
|
|
|
|
|
|
public_configs = [ ":external_config" ]
|
|
|
|
}
|
2015-01-08 13:21:52 +00:00
|
|
|
} else {
|
|
|
|
group("v8") {
|
2015-09-18 09:32:30 +00:00
|
|
|
public_deps = [
|
|
|
|
":v8_base",
|
2016-06-01 12:28:57 +00:00
|
|
|
":v8_maybe_snapshot",
|
2015-09-18 09:32:30 +00:00
|
|
|
]
|
2016-11-28 10:41:47 +00:00
|
|
|
|
2015-04-09 19:36:02 +00:00
|
|
|
public_configs = [ ":external_config" ]
|
2015-01-08 13:21:52 +00:00
|
|
|
}
|
2017-05-03 09:58:03 +00:00
|
|
|
|
|
|
|
group("v8_for_testing") {
|
|
|
|
testonly = true
|
|
|
|
|
|
|
|
public_deps = [
|
2018-07-24 13:16:38 +00:00
|
|
|
":torque_base",
|
2017-05-03 09:58:03 +00:00
|
|
|
":v8_base",
|
|
|
|
":v8_maybe_snapshot",
|
|
|
|
]
|
|
|
|
|
|
|
|
if (v8_use_snapshot) {
|
2017-09-06 10:48:08 +00:00
|
|
|
public_deps += [ ":v8_initializers" ]
|
2017-05-03 09:58:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public_configs = [ ":external_config" ]
|
|
|
|
}
|
2014-05-28 11:48:55 +00:00
|
|
|
}
|
2015-01-20 11:31:44 +00:00
|
|
|
|
2016-06-14 10:07:22 +00:00
|
|
|
v8_executable("d8") {
|
2016-05-13 16:11:24 +00:00
|
|
|
sources = [
|
2016-09-20 12:06:34 +00:00
|
|
|
"$target_gen_dir/d8-js.cc",
|
2018-07-04 15:02:09 +00:00
|
|
|
"src/async-hooks-wrapper.cc",
|
|
|
|
"src/async-hooks-wrapper.h",
|
2017-04-24 13:23:10 +00:00
|
|
|
"src/d8-console.cc",
|
|
|
|
"src/d8-console.h",
|
2016-05-13 16:11:24 +00:00
|
|
|
"src/d8.cc",
|
|
|
|
"src/d8.h",
|
|
|
|
]
|
2015-01-20 11:31:44 +00:00
|
|
|
|
2016-06-14 10:07:22 +00:00
|
|
|
configs = [
|
2016-05-13 16:11:24 +00:00
|
|
|
# Note: don't use :internal_config here because this target will get
|
|
|
|
# the :external_config applied to it by virtue of depending on :v8, and
|
|
|
|
# you can't have both applied to the same target.
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
2015-01-20 11:31:44 +00:00
|
|
|
|
2016-05-13 16:11:24 +00:00
|
|
|
deps = [
|
|
|
|
":d8_js2c",
|
|
|
|
":v8",
|
2016-10-07 07:56:43 +00:00
|
|
|
":v8_libbase",
|
2016-05-13 16:11:24 +00:00
|
|
|
":v8_libplatform",
|
|
|
|
"//build/win:default_exe_manifest",
|
|
|
|
]
|
2015-01-20 11:31:44 +00:00
|
|
|
|
2018-03-30 17:55:49 +00:00
|
|
|
if (is_posix || is_fuchsia) {
|
2016-05-13 16:11:24 +00:00
|
|
|
sources += [ "src/d8-posix.cc" ]
|
|
|
|
} else if (is_win) {
|
|
|
|
sources += [ "src/d8-windows.cc" ]
|
|
|
|
}
|
2015-01-20 11:31:44 +00:00
|
|
|
|
2017-01-10 10:19:21 +00:00
|
|
|
if (v8_correctness_fuzzer) {
|
2018-02-22 01:27:40 +00:00
|
|
|
deps += [ "tools/clusterfuzz:v8_correctness_fuzzer_resources" ]
|
2017-01-10 10:19:21 +00:00
|
|
|
}
|
|
|
|
|
2016-10-21 06:37:29 +00:00
|
|
|
defines = []
|
2017-02-13 02:54:05 +00:00
|
|
|
|
|
|
|
if (v8_enable_vtunejit) {
|
2018-03-27 16:22:47 +00:00
|
|
|
deps += [ "src/third_party/vtune:v8_vtune" ]
|
2017-02-13 02:54:05 +00:00
|
|
|
}
|
2015-01-20 11:31:44 +00:00
|
|
|
}
|
2016-01-26 12:19:28 +00:00
|
|
|
|
2016-06-22 13:36:44 +00:00
|
|
|
v8_executable("v8_hello_world") {
|
|
|
|
sources = [
|
|
|
|
"samples/hello-world.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
configs = [
|
|
|
|
# Note: don't use :internal_config here because this target will get
|
|
|
|
# the :external_config applied to it by virtue of depending on :v8, and
|
|
|
|
# you can't have both applied to the same target.
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":v8",
|
2016-10-07 07:56:43 +00:00
|
|
|
":v8_libbase",
|
2016-06-22 13:36:44 +00:00
|
|
|
":v8_libplatform",
|
|
|
|
"//build/win:default_exe_manifest",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_executable("v8_sample_process") {
|
|
|
|
sources = [
|
|
|
|
"samples/process.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
configs = [
|
|
|
|
# Note: don't use :internal_config here because this target will get
|
|
|
|
# the :external_config applied to it by virtue of depending on :v8, and
|
|
|
|
# you can't have both applied to the same target.
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
|
|
|
|
2016-06-27 11:55:33 +00:00
|
|
|
deps = [
|
2016-10-14 08:35:20 +00:00
|
|
|
":v8",
|
2016-10-07 07:56:43 +00:00
|
|
|
":v8_libbase",
|
2016-06-27 11:55:33 +00:00
|
|
|
":v8_libplatform",
|
|
|
|
"//build/win:default_exe_manifest",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-06-01 12:28:57 +00:00
|
|
|
if (want_v8_shell) {
|
2016-06-14 10:07:22 +00:00
|
|
|
v8_executable("v8_shell") {
|
2016-05-06 07:30:52 +00:00
|
|
|
sources = [
|
|
|
|
"samples/shell.cc",
|
|
|
|
]
|
|
|
|
|
2016-06-14 10:07:22 +00:00
|
|
|
configs = [
|
2016-05-06 07:30:52 +00:00
|
|
|
# Note: don't use :internal_config here because this target will get
|
|
|
|
# the :external_config applied to it by virtue of depending on :v8, and
|
|
|
|
# you can't have both applied to the same target.
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":v8",
|
2016-10-07 07:56:43 +00:00
|
|
|
":v8_libbase",
|
2016-05-06 07:30:52 +00:00
|
|
|
":v8_libplatform",
|
|
|
|
"//build/win:default_exe_manifest",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-06-03 13:09:52 +00:00
|
|
|
template("v8_fuzzer") {
|
|
|
|
name = target_name
|
|
|
|
forward_variables_from(invoker, "*")
|
2016-06-14 10:07:22 +00:00
|
|
|
v8_executable("v8_simple_" + name) {
|
2016-06-03 13:09:52 +00:00
|
|
|
deps = [
|
|
|
|
":" + name,
|
2016-06-04 06:28:01 +00:00
|
|
|
"//build/win:default_exe_manifest",
|
2016-06-03 13:09:52 +00:00
|
|
|
]
|
|
|
|
|
2017-01-05 09:27:40 +00:00
|
|
|
sources = [
|
|
|
|
"test/fuzzer/fuzzer.cc",
|
|
|
|
]
|
|
|
|
|
2016-06-14 10:07:22 +00:00
|
|
|
configs = [ ":external_config" ]
|
2016-06-03 13:09:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-05-11 10:17:37 +00:00
|
|
|
v8_source_set("json_fuzzer") {
|
2016-02-02 11:28:47 +00:00
|
|
|
sources = [
|
|
|
|
"test/fuzzer/json.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":fuzzer_support",
|
|
|
|
]
|
|
|
|
|
2016-09-26 07:40:24 +00:00
|
|
|
configs = [
|
|
|
|
":external_config",
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
2016-02-02 11:28:47 +00:00
|
|
|
}
|
|
|
|
|
2016-06-08 12:09:25 +00:00
|
|
|
v8_fuzzer("json_fuzzer") {
|
|
|
|
}
|
2016-06-03 13:09:52 +00:00
|
|
|
|
2018-01-12 10:57:34 +00:00
|
|
|
v8_source_set("multi_return_fuzzer") {
|
|
|
|
sources = [
|
|
|
|
"test/fuzzer/multi-return.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":fuzzer_support",
|
|
|
|
]
|
|
|
|
|
|
|
|
configs = [
|
|
|
|
":external_config",
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_fuzzer("multi_return_fuzzer") {
|
|
|
|
}
|
|
|
|
|
2016-05-11 10:17:37 +00:00
|
|
|
v8_source_set("parser_fuzzer") {
|
2016-01-26 12:19:28 +00:00
|
|
|
sources = [
|
|
|
|
"test/fuzzer/parser.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
2016-10-14 08:35:20 +00:00
|
|
|
":fuzzer_support",
|
2016-01-26 12:19:28 +00:00
|
|
|
]
|
|
|
|
|
2016-09-26 07:40:24 +00:00
|
|
|
configs = [
|
|
|
|
":external_config",
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
2016-01-26 12:19:28 +00:00
|
|
|
}
|
2016-02-01 14:00:12 +00:00
|
|
|
|
2016-06-08 12:09:25 +00:00
|
|
|
v8_fuzzer("parser_fuzzer") {
|
|
|
|
}
|
2016-06-03 13:09:52 +00:00
|
|
|
|
2018-01-18 10:27:08 +00:00
|
|
|
v8_source_set("regexp_builtins_fuzzer") {
|
|
|
|
sources = [
|
|
|
|
"test/fuzzer/regexp-builtins.cc",
|
|
|
|
"test/fuzzer/regexp_builtins/mjsunit.js.h",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":fuzzer_support",
|
|
|
|
]
|
|
|
|
|
|
|
|
configs = [
|
|
|
|
":external_config",
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_fuzzer("regexp_builtins_fuzzer") {
|
|
|
|
}
|
|
|
|
|
2016-05-11 10:17:37 +00:00
|
|
|
v8_source_set("regexp_fuzzer") {
|
2016-02-01 14:00:12 +00:00
|
|
|
sources = [
|
|
|
|
"test/fuzzer/regexp.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":fuzzer_support",
|
|
|
|
]
|
|
|
|
|
2016-09-26 07:40:24 +00:00
|
|
|
configs = [
|
|
|
|
":external_config",
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
2016-02-01 14:00:12 +00:00
|
|
|
}
|
2016-03-02 00:53:19 +00:00
|
|
|
|
2016-06-08 12:09:25 +00:00
|
|
|
v8_fuzzer("regexp_fuzzer") {
|
|
|
|
}
|
2016-06-03 13:09:52 +00:00
|
|
|
|
2016-09-14 10:31:23 +00:00
|
|
|
v8_source_set("wasm_module_runner") {
|
|
|
|
sources = [
|
|
|
|
"test/common/wasm/wasm-module-runner.cc",
|
|
|
|
"test/common/wasm/wasm-module-runner.h",
|
|
|
|
]
|
|
|
|
|
2018-04-16 09:24:22 +00:00
|
|
|
deps = [
|
2018-09-10 12:55:45 +00:00
|
|
|
":generate_bytecode_builtins_list",
|
2018-05-04 13:18:37 +00:00
|
|
|
":torque_generated_core",
|
2018-04-16 09:24:22 +00:00
|
|
|
]
|
|
|
|
|
2018-07-09 17:04:28 +00:00
|
|
|
if (v8_enable_i18n_support) {
|
|
|
|
public_deps = [
|
|
|
|
"//third_party/icu",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-09-26 07:40:24 +00:00
|
|
|
configs = [
|
|
|
|
":external_config",
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
2016-09-14 10:31:23 +00:00
|
|
|
}
|
|
|
|
|
2016-05-11 10:17:37 +00:00
|
|
|
v8_source_set("wasm_fuzzer") {
|
2016-03-02 00:53:19 +00:00
|
|
|
sources = [
|
|
|
|
"test/fuzzer/wasm.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":fuzzer_support",
|
2017-05-08 09:22:54 +00:00
|
|
|
":lib_wasm_fuzzer_common",
|
2016-09-14 10:31:23 +00:00
|
|
|
":wasm_module_runner",
|
2016-03-02 00:53:19 +00:00
|
|
|
]
|
|
|
|
|
2016-09-26 07:40:24 +00:00
|
|
|
configs = [
|
|
|
|
":external_config",
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
2016-03-02 00:53:19 +00:00
|
|
|
}
|
|
|
|
|
2016-06-08 12:09:25 +00:00
|
|
|
v8_fuzzer("wasm_fuzzer") {
|
|
|
|
}
|
2016-06-03 13:09:52 +00:00
|
|
|
|
2017-06-13 14:41:54 +00:00
|
|
|
v8_source_set("wasm_async_fuzzer") {
|
|
|
|
sources = [
|
|
|
|
"test/fuzzer/wasm-async.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":fuzzer_support",
|
|
|
|
":lib_wasm_fuzzer_common",
|
|
|
|
":wasm_module_runner",
|
|
|
|
]
|
|
|
|
|
|
|
|
configs = [
|
|
|
|
":external_config",
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_fuzzer("wasm_async_fuzzer") {
|
|
|
|
}
|
|
|
|
|
2016-08-29 13:55:41 +00:00
|
|
|
v8_source_set("wasm_code_fuzzer") {
|
|
|
|
sources = [
|
2017-03-30 09:18:23 +00:00
|
|
|
"test/common/wasm/test-signatures.h",
|
2016-08-29 13:55:41 +00:00
|
|
|
"test/fuzzer/wasm-code.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":fuzzer_support",
|
2017-05-08 09:22:54 +00:00
|
|
|
":lib_wasm_fuzzer_common",
|
2016-09-14 10:31:23 +00:00
|
|
|
":wasm_module_runner",
|
2016-08-29 13:55:41 +00:00
|
|
|
]
|
|
|
|
|
2016-09-26 07:40:24 +00:00
|
|
|
configs = [
|
|
|
|
":external_config",
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
2016-08-29 13:55:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
v8_fuzzer("wasm_code_fuzzer") {
|
|
|
|
}
|
[wasm] Write fuzzers for single wasm sections.
This CL adds fuzzers for the wasm module sections 'types', 'names',
'globals', 'imports', 'function signatures', 'memory', and 'data', one
fuzzer per section. No fuzzers are added for the other sections because
either there already exists a fuzzer (e.g. wasm-code), or there exist
inter-section dependencies.
To avoid introducing a bunch executables which would make compilation
with make slow, I introduce a single executable
'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above.
This executable is run by the trybots and ensures that the fuzzers
actually compile. For debugging I introduce commandline parameters which
allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'.
R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org
Review-Url: https://codereview.chromium.org/2336603002
Cr-Commit-Position: refs/heads/master@{#39413}
2016-09-14 11:17:11 +00:00
|
|
|
|
2017-05-08 09:22:54 +00:00
|
|
|
v8_source_set("lib_wasm_fuzzer_common") {
|
[wasm] Write fuzzers for single wasm sections.
This CL adds fuzzers for the wasm module sections 'types', 'names',
'globals', 'imports', 'function signatures', 'memory', and 'data', one
fuzzer per section. No fuzzers are added for the other sections because
either there already exists a fuzzer (e.g. wasm-code), or there exist
inter-section dependencies.
To avoid introducing a bunch executables which would make compilation
with make slow, I introduce a single executable
'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above.
This executable is run by the trybots and ensures that the fuzzers
actually compile. For debugging I introduce commandline parameters which
allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'.
R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org
Review-Url: https://codereview.chromium.org/2336603002
Cr-Commit-Position: refs/heads/master@{#39413}
2016-09-14 11:17:11 +00:00
|
|
|
sources = [
|
2017-05-08 09:22:54 +00:00
|
|
|
"test/fuzzer/wasm-fuzzer-common.cc",
|
|
|
|
"test/fuzzer/wasm-fuzzer-common.h",
|
[wasm] Write fuzzers for single wasm sections.
This CL adds fuzzers for the wasm module sections 'types', 'names',
'globals', 'imports', 'function signatures', 'memory', and 'data', one
fuzzer per section. No fuzzers are added for the other sections because
either there already exists a fuzzer (e.g. wasm-code), or there exist
inter-section dependencies.
To avoid introducing a bunch executables which would make compilation
with make slow, I introduce a single executable
'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above.
This executable is run by the trybots and ensures that the fuzzers
actually compile. For debugging I introduce commandline parameters which
allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'.
R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org
Review-Url: https://codereview.chromium.org/2336603002
Cr-Commit-Position: refs/heads/master@{#39413}
2016-09-14 11:17:11 +00:00
|
|
|
]
|
|
|
|
|
2018-04-16 09:24:22 +00:00
|
|
|
deps = [
|
2018-09-10 12:55:45 +00:00
|
|
|
":generate_bytecode_builtins_list",
|
2018-05-04 13:18:37 +00:00
|
|
|
":torque_generated_core",
|
2018-04-16 09:24:22 +00:00
|
|
|
]
|
|
|
|
|
2018-07-09 17:04:28 +00:00
|
|
|
if (v8_enable_i18n_support) {
|
|
|
|
public_deps = [
|
|
|
|
"//third_party/icu",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2016-09-26 07:40:24 +00:00
|
|
|
configs = [
|
|
|
|
":external_config",
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
[wasm] Write fuzzers for single wasm sections.
This CL adds fuzzers for the wasm module sections 'types', 'names',
'globals', 'imports', 'function signatures', 'memory', and 'data', one
fuzzer per section. No fuzzers are added for the other sections because
either there already exists a fuzzer (e.g. wasm-code), or there exist
inter-section dependencies.
To avoid introducing a bunch executables which would make compilation
with make slow, I introduce a single executable
'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above.
This executable is run by the trybots and ensures that the fuzzers
actually compile. For debugging I introduce commandline parameters which
allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'.
R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org
Review-Url: https://codereview.chromium.org/2336603002
Cr-Commit-Position: refs/heads/master@{#39413}
2016-09-14 11:17:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
v8_source_set("wasm_types_section_fuzzer") {
|
|
|
|
sources = [
|
|
|
|
"test/fuzzer/wasm-types-section.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":fuzzer_support",
|
2017-05-08 09:22:54 +00:00
|
|
|
":lib_wasm_fuzzer_common",
|
[wasm] Write fuzzers for single wasm sections.
This CL adds fuzzers for the wasm module sections 'types', 'names',
'globals', 'imports', 'function signatures', 'memory', and 'data', one
fuzzer per section. No fuzzers are added for the other sections because
either there already exists a fuzzer (e.g. wasm-code), or there exist
inter-section dependencies.
To avoid introducing a bunch executables which would make compilation
with make slow, I introduce a single executable
'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above.
This executable is run by the trybots and ensures that the fuzzers
actually compile. For debugging I introduce commandline parameters which
allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'.
R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org
Review-Url: https://codereview.chromium.org/2336603002
Cr-Commit-Position: refs/heads/master@{#39413}
2016-09-14 11:17:11 +00:00
|
|
|
":wasm_module_runner",
|
|
|
|
]
|
|
|
|
|
2016-09-26 07:40:24 +00:00
|
|
|
configs = [
|
|
|
|
":external_config",
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
[wasm] Write fuzzers for single wasm sections.
This CL adds fuzzers for the wasm module sections 'types', 'names',
'globals', 'imports', 'function signatures', 'memory', and 'data', one
fuzzer per section. No fuzzers are added for the other sections because
either there already exists a fuzzer (e.g. wasm-code), or there exist
inter-section dependencies.
To avoid introducing a bunch executables which would make compilation
with make slow, I introduce a single executable
'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above.
This executable is run by the trybots and ensures that the fuzzers
actually compile. For debugging I introduce commandline parameters which
allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'.
R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org
Review-Url: https://codereview.chromium.org/2336603002
Cr-Commit-Position: refs/heads/master@{#39413}
2016-09-14 11:17:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
v8_fuzzer("wasm_types_section_fuzzer") {
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_source_set("wasm_names_section_fuzzer") {
|
|
|
|
sources = [
|
|
|
|
"test/fuzzer/wasm-names-section.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":fuzzer_support",
|
2017-05-08 09:22:54 +00:00
|
|
|
":lib_wasm_fuzzer_common",
|
[wasm] Write fuzzers for single wasm sections.
This CL adds fuzzers for the wasm module sections 'types', 'names',
'globals', 'imports', 'function signatures', 'memory', and 'data', one
fuzzer per section. No fuzzers are added for the other sections because
either there already exists a fuzzer (e.g. wasm-code), or there exist
inter-section dependencies.
To avoid introducing a bunch executables which would make compilation
with make slow, I introduce a single executable
'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above.
This executable is run by the trybots and ensures that the fuzzers
actually compile. For debugging I introduce commandline parameters which
allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'.
R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org
Review-Url: https://codereview.chromium.org/2336603002
Cr-Commit-Position: refs/heads/master@{#39413}
2016-09-14 11:17:11 +00:00
|
|
|
":wasm_module_runner",
|
|
|
|
]
|
|
|
|
|
2016-09-26 07:40:24 +00:00
|
|
|
configs = [
|
|
|
|
":external_config",
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
[wasm] Write fuzzers for single wasm sections.
This CL adds fuzzers for the wasm module sections 'types', 'names',
'globals', 'imports', 'function signatures', 'memory', and 'data', one
fuzzer per section. No fuzzers are added for the other sections because
either there already exists a fuzzer (e.g. wasm-code), or there exist
inter-section dependencies.
To avoid introducing a bunch executables which would make compilation
with make slow, I introduce a single executable
'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above.
This executable is run by the trybots and ensures that the fuzzers
actually compile. For debugging I introduce commandline parameters which
allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'.
R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org
Review-Url: https://codereview.chromium.org/2336603002
Cr-Commit-Position: refs/heads/master@{#39413}
2016-09-14 11:17:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
v8_fuzzer("wasm_names_section_fuzzer") {
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_source_set("wasm_globals_section_fuzzer") {
|
|
|
|
sources = [
|
|
|
|
"test/fuzzer/wasm-globals-section.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":fuzzer_support",
|
2017-05-08 09:22:54 +00:00
|
|
|
":lib_wasm_fuzzer_common",
|
[wasm] Write fuzzers for single wasm sections.
This CL adds fuzzers for the wasm module sections 'types', 'names',
'globals', 'imports', 'function signatures', 'memory', and 'data', one
fuzzer per section. No fuzzers are added for the other sections because
either there already exists a fuzzer (e.g. wasm-code), or there exist
inter-section dependencies.
To avoid introducing a bunch executables which would make compilation
with make slow, I introduce a single executable
'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above.
This executable is run by the trybots and ensures that the fuzzers
actually compile. For debugging I introduce commandline parameters which
allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'.
R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org
Review-Url: https://codereview.chromium.org/2336603002
Cr-Commit-Position: refs/heads/master@{#39413}
2016-09-14 11:17:11 +00:00
|
|
|
":wasm_module_runner",
|
|
|
|
]
|
|
|
|
|
2016-09-26 07:40:24 +00:00
|
|
|
configs = [
|
|
|
|
":external_config",
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
[wasm] Write fuzzers for single wasm sections.
This CL adds fuzzers for the wasm module sections 'types', 'names',
'globals', 'imports', 'function signatures', 'memory', and 'data', one
fuzzer per section. No fuzzers are added for the other sections because
either there already exists a fuzzer (e.g. wasm-code), or there exist
inter-section dependencies.
To avoid introducing a bunch executables which would make compilation
with make slow, I introduce a single executable
'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above.
This executable is run by the trybots and ensures that the fuzzers
actually compile. For debugging I introduce commandline parameters which
allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'.
R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org
Review-Url: https://codereview.chromium.org/2336603002
Cr-Commit-Position: refs/heads/master@{#39413}
2016-09-14 11:17:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
v8_fuzzer("wasm_globals_section_fuzzer") {
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_source_set("wasm_imports_section_fuzzer") {
|
|
|
|
sources = [
|
|
|
|
"test/fuzzer/wasm-imports-section.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":fuzzer_support",
|
2017-05-08 09:22:54 +00:00
|
|
|
":lib_wasm_fuzzer_common",
|
[wasm] Write fuzzers for single wasm sections.
This CL adds fuzzers for the wasm module sections 'types', 'names',
'globals', 'imports', 'function signatures', 'memory', and 'data', one
fuzzer per section. No fuzzers are added for the other sections because
either there already exists a fuzzer (e.g. wasm-code), or there exist
inter-section dependencies.
To avoid introducing a bunch executables which would make compilation
with make slow, I introduce a single executable
'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above.
This executable is run by the trybots and ensures that the fuzzers
actually compile. For debugging I introduce commandline parameters which
allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'.
R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org
Review-Url: https://codereview.chromium.org/2336603002
Cr-Commit-Position: refs/heads/master@{#39413}
2016-09-14 11:17:11 +00:00
|
|
|
":wasm_module_runner",
|
|
|
|
]
|
|
|
|
|
2016-09-26 07:40:24 +00:00
|
|
|
configs = [
|
|
|
|
":external_config",
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
[wasm] Write fuzzers for single wasm sections.
This CL adds fuzzers for the wasm module sections 'types', 'names',
'globals', 'imports', 'function signatures', 'memory', and 'data', one
fuzzer per section. No fuzzers are added for the other sections because
either there already exists a fuzzer (e.g. wasm-code), or there exist
inter-section dependencies.
To avoid introducing a bunch executables which would make compilation
with make slow, I introduce a single executable
'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above.
This executable is run by the trybots and ensures that the fuzzers
actually compile. For debugging I introduce commandline parameters which
allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'.
R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org
Review-Url: https://codereview.chromium.org/2336603002
Cr-Commit-Position: refs/heads/master@{#39413}
2016-09-14 11:17:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
v8_fuzzer("wasm_imports_section_fuzzer") {
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_source_set("wasm_function_sigs_section_fuzzer") {
|
|
|
|
sources = [
|
|
|
|
"test/fuzzer/wasm-function-sigs-section.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":fuzzer_support",
|
2017-05-08 09:22:54 +00:00
|
|
|
":lib_wasm_fuzzer_common",
|
[wasm] Write fuzzers for single wasm sections.
This CL adds fuzzers for the wasm module sections 'types', 'names',
'globals', 'imports', 'function signatures', 'memory', and 'data', one
fuzzer per section. No fuzzers are added for the other sections because
either there already exists a fuzzer (e.g. wasm-code), or there exist
inter-section dependencies.
To avoid introducing a bunch executables which would make compilation
with make slow, I introduce a single executable
'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above.
This executable is run by the trybots and ensures that the fuzzers
actually compile. For debugging I introduce commandline parameters which
allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'.
R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org
Review-Url: https://codereview.chromium.org/2336603002
Cr-Commit-Position: refs/heads/master@{#39413}
2016-09-14 11:17:11 +00:00
|
|
|
":wasm_module_runner",
|
|
|
|
]
|
|
|
|
|
2016-09-26 07:40:24 +00:00
|
|
|
configs = [
|
|
|
|
":external_config",
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
[wasm] Write fuzzers for single wasm sections.
This CL adds fuzzers for the wasm module sections 'types', 'names',
'globals', 'imports', 'function signatures', 'memory', and 'data', one
fuzzer per section. No fuzzers are added for the other sections because
either there already exists a fuzzer (e.g. wasm-code), or there exist
inter-section dependencies.
To avoid introducing a bunch executables which would make compilation
with make slow, I introduce a single executable
'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above.
This executable is run by the trybots and ensures that the fuzzers
actually compile. For debugging I introduce commandline parameters which
allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'.
R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org
Review-Url: https://codereview.chromium.org/2336603002
Cr-Commit-Position: refs/heads/master@{#39413}
2016-09-14 11:17:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
v8_fuzzer("wasm_function_sigs_section_fuzzer") {
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_source_set("wasm_memory_section_fuzzer") {
|
|
|
|
sources = [
|
|
|
|
"test/fuzzer/wasm-memory-section.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":fuzzer_support",
|
2017-05-08 09:22:54 +00:00
|
|
|
":lib_wasm_fuzzer_common",
|
[wasm] Write fuzzers for single wasm sections.
This CL adds fuzzers for the wasm module sections 'types', 'names',
'globals', 'imports', 'function signatures', 'memory', and 'data', one
fuzzer per section. No fuzzers are added for the other sections because
either there already exists a fuzzer (e.g. wasm-code), or there exist
inter-section dependencies.
To avoid introducing a bunch executables which would make compilation
with make slow, I introduce a single executable
'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above.
This executable is run by the trybots and ensures that the fuzzers
actually compile. For debugging I introduce commandline parameters which
allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'.
R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org
Review-Url: https://codereview.chromium.org/2336603002
Cr-Commit-Position: refs/heads/master@{#39413}
2016-09-14 11:17:11 +00:00
|
|
|
":wasm_module_runner",
|
|
|
|
]
|
|
|
|
|
2016-09-26 07:40:24 +00:00
|
|
|
configs = [
|
|
|
|
":external_config",
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
[wasm] Write fuzzers for single wasm sections.
This CL adds fuzzers for the wasm module sections 'types', 'names',
'globals', 'imports', 'function signatures', 'memory', and 'data', one
fuzzer per section. No fuzzers are added for the other sections because
either there already exists a fuzzer (e.g. wasm-code), or there exist
inter-section dependencies.
To avoid introducing a bunch executables which would make compilation
with make slow, I introduce a single executable
'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above.
This executable is run by the trybots and ensures that the fuzzers
actually compile. For debugging I introduce commandline parameters which
allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'.
R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org
Review-Url: https://codereview.chromium.org/2336603002
Cr-Commit-Position: refs/heads/master@{#39413}
2016-09-14 11:17:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
v8_fuzzer("wasm_memory_section_fuzzer") {
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_source_set("wasm_data_section_fuzzer") {
|
|
|
|
sources = [
|
|
|
|
"test/fuzzer/wasm-data-section.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":fuzzer_support",
|
2017-05-08 09:22:54 +00:00
|
|
|
":lib_wasm_fuzzer_common",
|
[wasm] Write fuzzers for single wasm sections.
This CL adds fuzzers for the wasm module sections 'types', 'names',
'globals', 'imports', 'function signatures', 'memory', and 'data', one
fuzzer per section. No fuzzers are added for the other sections because
either there already exists a fuzzer (e.g. wasm-code), or there exist
inter-section dependencies.
To avoid introducing a bunch executables which would make compilation
with make slow, I introduce a single executable
'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above.
This executable is run by the trybots and ensures that the fuzzers
actually compile. For debugging I introduce commandline parameters which
allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'.
R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org
Review-Url: https://codereview.chromium.org/2336603002
Cr-Commit-Position: refs/heads/master@{#39413}
2016-09-14 11:17:11 +00:00
|
|
|
":wasm_module_runner",
|
|
|
|
]
|
|
|
|
|
2016-09-26 07:40:24 +00:00
|
|
|
configs = [
|
|
|
|
":external_config",
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
[wasm] Write fuzzers for single wasm sections.
This CL adds fuzzers for the wasm module sections 'types', 'names',
'globals', 'imports', 'function signatures', 'memory', and 'data', one
fuzzer per section. No fuzzers are added for the other sections because
either there already exists a fuzzer (e.g. wasm-code), or there exist
inter-section dependencies.
To avoid introducing a bunch executables which would make compilation
with make slow, I introduce a single executable
'v8_simple_wasm_section_fuzzer' which calls the fuzzers mentioned above.
This executable is run by the trybots and ensures that the fuzzers
actually compile. For debugging I introduce commandline parameters which
allow to execute the specific fuzzers from 'v8_simple_wasm_section_fuzzer'.
R=titzer@chromium.org, jochen@chromium.org, mstarzinger@chromium.org
Review-Url: https://codereview.chromium.org/2336603002
Cr-Commit-Position: refs/heads/master@{#39413}
2016-09-14 11:17:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
v8_fuzzer("wasm_data_section_fuzzer") {
|
|
|
|
}
|
[wasm] Syntax- and Type-aware Fuzzer
This is the beginning of a new fuzzer that generates
correct-by-construction Wasm modules. This should allow us to better
exercise the compiler and correctness aspects of fuzzing. It is based off
of ahaas' original Wasm fuzzer.
At the moment, it can generate expressions made up of most binops, and
also nested blocks with unconditional breaks. Future CLs will add
additional constructs, such as br_if, loops, memory access, etc.
The way the fuzzer works is that it starts with an array of arbitrary
data provided by libfuzzer. It uses the data to generate an expression.
Care is taken to make use of the entire string. Basically, the
generator has a bunch of grammar-like rules for how to construct an
expression of a given type. For example, an i32 can be made by adding
two other i32s, or by wrapping an i64. The process then continues
recursively until all the data is consumed.
We generate an expression from a slice of data as follows:
* If the slice is less than or equal to the size of the type (e.g. 4
bytes for i32), then it will emit the entire slice as a constant.
* Otherwise, it will consume the first 4 bytes of the slice and use
this to select which rule to apply. Each rule then consumes the
remainder of the slice in an appropriate way. For example:
* Unary ops use the remainder of the slice to generate the argument.
* Binary ops consume another four bytes and mod this with the length
of the remaining slice to split the slice into two parts. Each of
these subslices are then used to generate one of the arguments to
the binop.
* Blocks are basically like a unary op, but a stack of block types is
maintained to facilitate branches. For blocks that end in a break,
the first four bytes of a slice are used to select the break depth
and the stack determines what type of expression to generate.
The goal is that once this generator is complete, it will provide a one
to one mapping between binary strings and valid Wasm modules.
Review-Url: https://codereview.chromium.org/2658723006
Cr-Commit-Position: refs/heads/master@{#43289}
2017-02-17 17:06:29 +00:00
|
|
|
|
|
|
|
v8_source_set("wasm_compile_fuzzer") {
|
|
|
|
sources = [
|
2017-03-30 09:18:23 +00:00
|
|
|
"test/common/wasm/test-signatures.h",
|
[wasm] Syntax- and Type-aware Fuzzer
This is the beginning of a new fuzzer that generates
correct-by-construction Wasm modules. This should allow us to better
exercise the compiler and correctness aspects of fuzzing. It is based off
of ahaas' original Wasm fuzzer.
At the moment, it can generate expressions made up of most binops, and
also nested blocks with unconditional breaks. Future CLs will add
additional constructs, such as br_if, loops, memory access, etc.
The way the fuzzer works is that it starts with an array of arbitrary
data provided by libfuzzer. It uses the data to generate an expression.
Care is taken to make use of the entire string. Basically, the
generator has a bunch of grammar-like rules for how to construct an
expression of a given type. For example, an i32 can be made by adding
two other i32s, or by wrapping an i64. The process then continues
recursively until all the data is consumed.
We generate an expression from a slice of data as follows:
* If the slice is less than or equal to the size of the type (e.g. 4
bytes for i32), then it will emit the entire slice as a constant.
* Otherwise, it will consume the first 4 bytes of the slice and use
this to select which rule to apply. Each rule then consumes the
remainder of the slice in an appropriate way. For example:
* Unary ops use the remainder of the slice to generate the argument.
* Binary ops consume another four bytes and mod this with the length
of the remaining slice to split the slice into two parts. Each of
these subslices are then used to generate one of the arguments to
the binop.
* Blocks are basically like a unary op, but a stack of block types is
maintained to facilitate branches. For blocks that end in a break,
the first four bytes of a slice are used to select the break depth
and the stack determines what type of expression to generate.
The goal is that once this generator is complete, it will provide a one
to one mapping between binary strings and valid Wasm modules.
Review-Url: https://codereview.chromium.org/2658723006
Cr-Commit-Position: refs/heads/master@{#43289}
2017-02-17 17:06:29 +00:00
|
|
|
"test/fuzzer/wasm-compile.cc",
|
|
|
|
]
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
":fuzzer_support",
|
2017-05-08 09:22:54 +00:00
|
|
|
":lib_wasm_fuzzer_common",
|
[wasm] Syntax- and Type-aware Fuzzer
This is the beginning of a new fuzzer that generates
correct-by-construction Wasm modules. This should allow us to better
exercise the compiler and correctness aspects of fuzzing. It is based off
of ahaas' original Wasm fuzzer.
At the moment, it can generate expressions made up of most binops, and
also nested blocks with unconditional breaks. Future CLs will add
additional constructs, such as br_if, loops, memory access, etc.
The way the fuzzer works is that it starts with an array of arbitrary
data provided by libfuzzer. It uses the data to generate an expression.
Care is taken to make use of the entire string. Basically, the
generator has a bunch of grammar-like rules for how to construct an
expression of a given type. For example, an i32 can be made by adding
two other i32s, or by wrapping an i64. The process then continues
recursively until all the data is consumed.
We generate an expression from a slice of data as follows:
* If the slice is less than or equal to the size of the type (e.g. 4
bytes for i32), then it will emit the entire slice as a constant.
* Otherwise, it will consume the first 4 bytes of the slice and use
this to select which rule to apply. Each rule then consumes the
remainder of the slice in an appropriate way. For example:
* Unary ops use the remainder of the slice to generate the argument.
* Binary ops consume another four bytes and mod this with the length
of the remaining slice to split the slice into two parts. Each of
these subslices are then used to generate one of the arguments to
the binop.
* Blocks are basically like a unary op, but a stack of block types is
maintained to facilitate branches. For blocks that end in a break,
the first four bytes of a slice are used to select the break depth
and the stack determines what type of expression to generate.
The goal is that once this generator is complete, it will provide a one
to one mapping between binary strings and valid Wasm modules.
Review-Url: https://codereview.chromium.org/2658723006
Cr-Commit-Position: refs/heads/master@{#43289}
2017-02-17 17:06:29 +00:00
|
|
|
":wasm_module_runner",
|
|
|
|
]
|
|
|
|
|
|
|
|
configs = [
|
|
|
|
":external_config",
|
|
|
|
":internal_config_base",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
v8_fuzzer("wasm_compile_fuzzer") {
|
|
|
|
}
|