Skip to content

Commit

Permalink
Update V8 to 735875f82c
Browse files Browse the repository at this point in the history
  • Loading branch information
hashseed committed Apr 30, 2018
1 parent cd7b1c5 commit bf3bc19
Show file tree
Hide file tree
Showing 407 changed files with 13,235 additions and 9,277 deletions.
36 changes: 11 additions & 25 deletions deps/v8/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@ action("run_torque") {
inputs = [
"src/builtins/base.tq",
"src/builtins/array.tq",
"src/builtins/typed-array.tq",
]

outputs = [
Expand All @@ -873,6 +874,8 @@ action("run_torque") {
"$target_gen_dir/builtins-array-from-dsl-gen.h",
"$target_gen_dir/builtins-base-from-dsl-gen.cc",
"$target_gen_dir/builtins-base-from-dsl-gen.h",
"$target_gen_dir/builtins-typed-array-from-dsl-gen.cc",
"$target_gen_dir/builtins-typed-array-from-dsl-gen.h",
]

args = [
Expand All @@ -883,6 +886,7 @@ action("run_torque") {
rebase_path("$target_gen_dir", root_build_dir),
rebase_path("src/builtins/base.tq", root_build_dir),
rebase_path("src/builtins/array.tq", root_build_dir),
rebase_path("src/builtins/typed-array.tq", root_build_dir),
]
}

Expand Down Expand Up @@ -1196,6 +1200,7 @@ v8_source_set("v8_initializers") {
sources = [
"$target_gen_dir/builtins-array-from-dsl-gen.cc",
"$target_gen_dir/builtins-base-from-dsl-gen.cc",
"$target_gen_dir/builtins-typed-array-from-dsl-gen.cc",

### gcmole(all) ###
"src/builtins/builtins-arguments-gen.cc",
Expand Down Expand Up @@ -1415,6 +1420,7 @@ v8_source_set("v8_base") {
"src/asmjs/asm-types.h",
"src/asmjs/switch-logic.cc",
"src/asmjs/switch-logic.h",
"src/assembler-arch.h",
"src/assembler-inl.h",
"src/assembler.cc",
"src/assembler.h",
Expand Down Expand Up @@ -1605,8 +1611,6 @@ v8_source_set("v8_base") {
"src/compiler/instruction.h",
"src/compiler/int64-lowering.cc",
"src/compiler/int64-lowering.h",
"src/compiler/js-builtin-reducer.cc",
"src/compiler/js-builtin-reducer.h",
"src/compiler/js-call-reducer.cc",
"src/compiler/js-call-reducer.h",
"src/compiler/js-context-specialization.cc",
Expand Down Expand Up @@ -1726,7 +1730,6 @@ v8_source_set("v8_base") {
"src/compiler/verifier.h",
"src/compiler/wasm-compiler.cc",
"src/compiler/wasm-compiler.h",
"src/compiler/wasm-linkage.cc",
"src/compiler/zone-stats.cc",
"src/compiler/zone-stats.h",
"src/contexts-inl.h",
Expand Down Expand Up @@ -1991,7 +1994,6 @@ v8_source_set("v8_base") {
"src/machine-type.h",
"src/macro-assembler-inl.h",
"src/macro-assembler.h",
"src/managed.h",
"src/map-updater.cc",
"src/map-updater.h",
"src/messages.cc",
Expand Down Expand Up @@ -2038,6 +2040,8 @@ v8_source_set("v8_base") {
"src/objects/literal-objects-inl.h",
"src/objects/literal-objects.cc",
"src/objects/literal-objects.h",
"src/objects/managed.cc",
"src/objects/managed.h",
"src/objects/map-inl.h",
"src/objects/map.h",
"src/objects/maybe-object-inl.h",
Expand Down Expand Up @@ -2067,6 +2071,8 @@ v8_source_set("v8_base") {
"src/objects/string.h",
"src/objects/template-objects.cc",
"src/objects/template-objects.h",
"src/objects/templates-inl.h",
"src/objects/templates.h",
"src/optimized-compilation-info.cc",
"src/optimized-compilation-info.h",
"src/ostreams.cc",
Expand Down Expand Up @@ -2352,6 +2358,7 @@ v8_source_set("v8_base") {
"src/wasm/wasm-js.cc",
"src/wasm/wasm-js.h",
"src/wasm/wasm-limits.h",
"src/wasm/wasm-linkage.h",
"src/wasm/wasm-memory.cc",
"src/wasm/wasm-memory.h",
"src/wasm/wasm-module-builder.cc",
Expand Down Expand Up @@ -3388,7 +3395,6 @@ group("gn_all") {
":d8",
":v8_fuzzers",
":v8_hello_world",
":v8_parser_shell",
":v8_sample_process",
"test:gn_all",
"tools:gn_all",
Expand Down Expand Up @@ -3590,26 +3596,6 @@ v8_executable("v8_sample_process") {
]
}

v8_executable("v8_parser_shell") {
sources = [
"tools/parser-shell.cc",
"tools/shell-utils.h",
]

configs = [
":external_config",
":internal_config_base",
]

deps = [
":v8",
":v8_libbase",
":v8_libplatform",
"//build/config:exe_and_shlib_deps",
"//build/win:default_exe_manifest",
]
}

if (want_v8_shell) {
v8_executable("v8_shell") {
sources = [
Expand Down
14 changes: 7 additions & 7 deletions deps/v8/DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ vars = {

deps = {
'v8/build':
Var('chromium_url') + '/chromium/src/build.git' + '@' + '80b7a3c6ca9134af722e9ae8a42691fb0f866f65',
Var('chromium_url') + '/chromium/src/build.git' + '@' + '725734cd9c9fef3258b1ce28552c3ab144c093eb',
'v8/tools/gyp':
Var('chromium_url') + '/external/gyp.git' + '@' + 'd61a9397e668fa9843c4aa7da9e79460fe590bfb',
'v8/third_party/icu':
Var('chromium_url') + '/chromium/deps/icu.git' + '@' + 'aff99f5c22aded55ee29753ce049e61570294967',
Var('chromium_url') + '/chromium/deps/icu.git' + '@' + 'e4194dc7bbb3305d84cbb1b294274ca70d230721',
'v8/third_party/instrumented_libraries':
Var('chromium_url') + '/chromium/src/third_party/instrumented_libraries.git' + '@' + '323cf32193caecbf074d1a0cb5b02b905f163e0f',
'v8/buildtools':
Var('chromium_url') + '/chromium/buildtools.git' + '@' + '8febfea9bc7e7d9a7c6105f06f18f7f0e50cfef9',
Var('chromium_url') + '/chromium/buildtools.git' + '@' + 'b7d53a93026d04002ca0705b5bf002de79c72165',
'v8/base/trace_event/common':
Var('chromium_url') + '/chromium/src/base/trace_event/common.git' + '@' + '211b3ed9d0481b4caddbee1322321b86a483ca1f',
'v8/third_party/android_ndk': {
Expand All @@ -32,15 +32,15 @@ deps = {
'condition': 'checkout_android',
},
'v8/third_party/catapult': {
'url': Var('chromium_url') + '/catapult.git' + '@' + 'f718fb12b8cfd16b07509674747abf56cf330ac8',
'url': Var('chromium_url') + '/catapult.git' + '@' + 'a4814ecb93e64cd71a91d38bb1cb55930365a6e3',
'condition': 'checkout_android',
},
'v8/third_party/colorama/src': {
'url': Var('chromium_url') + '/external/colorama.git' + '@' + '799604a1041e9b3bc5d2789ecbd7e8db2e18e6b8',
'condition': 'checkout_android',
},
'v8/third_party/googletest/src':
Var('chromium_url') + '/external/github.com/google/googletest.git' + '@' + 'b640d8743d85f5e69c16679e7ead3f31d94e31ff',
Var('chromium_url') + '/external/github.com/google/googletest.git' + '@' + 'a6f06bf2fd3b832822cd4e9e554b7d47f32ec084',
'v8/third_party/jinja2':
Var('chromium_url') + '/chromium/src/third_party/jinja2.git' + '@' + '45571de473282bd1d8b63a8dfcb1fd268d0635d2',
'v8/third_party/markupsafe':
Expand All @@ -56,11 +56,11 @@ deps = {
'v8/test/test262/harness':
Var('chromium_url') + '/external/github.com/test262-utils/test262-harness-py.git' + '@' + '0f2acdd882c84cff43b9d60df7574a1901e2cdcd',
'v8/tools/clang':
Var('chromium_url') + '/chromium/src/tools/clang.git' + '@' + '5395a74f7a6581df9a56fd14249fea7f52f77ecb',
Var('chromium_url') + '/chromium/src/tools/clang.git' + '@' + 'ec200e7a8308f301ade483408bcc79ca17ceb11e',
'v8/tools/luci-go':
Var('chromium_url') + '/chromium/src/tools/luci-go.git' + '@' + 'ff0709d4283b1f233dcf0c9fec1672c6ecaed2f1',
'v8/test/wasm-js':
Var('chromium_url') + '/external/github.com/WebAssembly/spec.git' + '@' + '586d34770c6445bfb93c9bae8ac50baade7ee168',
Var('chromium_url') + '/external/github.com/WebAssembly/spec.git' + '@' + '1726d9694b3aab918f99e6e454b3914c0624aecb',
}

recursedeps = [
Expand Down
7 changes: 7 additions & 0 deletions deps/v8/PRESUBMIT.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,13 @@ def FilterFile(affected_file):
def _CommonChecks(input_api, output_api):
"""Checks common to both upload and commit."""
results = []
# TODO(machenbach): Replace some of those checks, e.g. owners and copyright,
# with the canned PanProjectChecks. Need to make sure that the checks all
# pass on all existing files.
results.extend(input_api.canned_checks.CheckOwnersFormat(
input_api, output_api))
results.extend(input_api.canned_checks.CheckOwners(
input_api, output_api))
results.extend(_CheckCommitMessageBugEntry(input_api, output_api))
results.extend(input_api.canned_checks.CheckPatchFormatted(
input_api, output_api))
Expand Down
38 changes: 31 additions & 7 deletions deps/v8/include/v8.h
Original file line number Diff line number Diff line change
Expand Up @@ -1580,9 +1580,9 @@ class V8_EXPORT ScriptCompiler {
*/
static CachedData* CreateCodeCache(Local<UnboundScript> unbound_script);

// Deprecated.
static CachedData* CreateCodeCache(Local<UnboundScript> unbound_script,
Local<String> source);
V8_DEPRECATED("Source string is no longer required",
static CachedData* CreateCodeCache(
Local<UnboundScript> unbound_script, Local<String> source));

/**
* Creates and returns code cache for the specified function that was
Expand All @@ -1592,9 +1592,9 @@ class V8_EXPORT ScriptCompiler {
*/
static CachedData* CreateCodeCacheForFunction(Local<Function> function);

// Deprecated.
static CachedData* CreateCodeCacheForFunction(Local<Function> function,
Local<String> source);
V8_DEPRECATED("Source string is no longer required",
static CachedData* CreateCodeCacheForFunction(
Local<Function> function, Local<String> source));

private:
static V8_WARN_UNUSED_RESULT MaybeLocal<UnboundScript> CompileUnboundInternal(
Expand Down Expand Up @@ -6896,7 +6896,8 @@ class V8_EXPORT Isolate {
add_histogram_sample_callback(nullptr),
array_buffer_allocator(nullptr),
external_references(nullptr),
allow_atomics_wait(true) {}
allow_atomics_wait(true),
only_terminate_in_safe_scope(false) {}

/**
* The optional entry_hook allows the host application to provide the
Expand Down Expand Up @@ -6959,6 +6960,11 @@ class V8_EXPORT Isolate {
* this isolate. This can also be configured via SetAllowAtomicsWait.
*/
bool allow_atomics_wait;

/**
* Termination is postponed when there is no active SafeForTerminationScope.
*/
bool only_terminate_in_safe_scope;
};


Expand Down Expand Up @@ -7043,6 +7049,24 @@ class V8_EXPORT Isolate {
internal::Isolate* const isolate_;
};

/**
* This scope allows terminations inside direct V8 API calls and forbid them
* inside any recursice API calls without explicit SafeForTerminationScope.
*/
class V8_EXPORT SafeForTerminationScope {
public:
explicit SafeForTerminationScope(v8::Isolate* isolate);
~SafeForTerminationScope();

// Prevent copying of Scope objects.
SafeForTerminationScope(const SafeForTerminationScope&) = delete;
SafeForTerminationScope& operator=(const SafeForTerminationScope&) = delete;

private:
internal::Isolate* isolate_;
bool prev_value_;
};

/**
* Types of garbage collections that can be requested via
* RequestGarbageCollectionForTesting.
Expand Down
6 changes: 6 additions & 0 deletions deps/v8/include/v8config.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@
// V8_HAS_ATTRIBUTE_VISIBILITY - __attribute__((visibility)) supported
// V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT - __attribute__((warn_unused_result))
// supported
// V8_HAS_BUILTIN_BSWAP16 - __builtin_bswap16() supported
// V8_HAS_BUILTIN_BSWAP32 - __builtin_bswap32() supported
// V8_HAS_BUILTIN_BSWAP64 - __builtin_bswap64() supported
// V8_HAS_BUILTIN_CLZ - __builtin_clz() supported
// V8_HAS_BUILTIN_CTZ - __builtin_ctz() supported
// V8_HAS_BUILTIN_EXPECT - __builtin_expect() supported
Expand Down Expand Up @@ -217,6 +220,9 @@
# define V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT \
(__has_attribute(warn_unused_result))

# define V8_HAS_BUILTIN_BSWAP16 (__has_builtin(__builtin_bswap16))
# define V8_HAS_BUILTIN_BSWAP32 (__has_builtin(__builtin_bswap32))
# define V8_HAS_BUILTIN_BSWAP64 (__has_builtin(__builtin_bswap64))
# define V8_HAS_BUILTIN_CLZ (__has_builtin(__builtin_clz))
# define V8_HAS_BUILTIN_CTZ (__has_builtin(__builtin_ctz))
# define V8_HAS_BUILTIN_EXPECT (__has_builtin(__builtin_expect))
Expand Down
Loading

0 comments on commit bf3bc19

Please sign in to comment.