From 7c8ac5a01b4ba5d4c7060875ea024e6efbc12893 Mon Sep 17 00:00:00 2001 From: Yang Guo Date: Thu, 10 Jan 2019 12:39:59 +0100 Subject: deps: cherry-pick c736883 from upstream V8 Original commit message: Optionally use halfsiphash for integer hashing. Change-Id: Ibd14f7b3fe78635675c76ae864112e3a3a7bc701 Reviewed-on: https://chromium-review.googlesource.com/c/1382463 Commit-Queue: Yang Guo Reviewed-by: Benedikt Meurer Cr-Commit-Position: refs/heads/master@{#58674} Refs: https://github.com/v8/v8/commit/c736883ed4e3ff92d1fd5a60497cec5311df9a25 --- deps/v8/PRESUBMIT.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'deps/v8/PRESUBMIT.py') diff --git a/deps/v8/PRESUBMIT.py b/deps/v8/PRESUBMIT.py index 88a64e727b..e48d51d8e5 100644 --- a/deps/v8/PRESUBMIT.py +++ b/deps/v8/PRESUBMIT.py @@ -43,6 +43,9 @@ _EXCLUDED_PATHS = ( r"^tools[\\\/].*", ) +_LICENSE_FILE = ( + r"LICENSE" +) # Regular expression that matches code which should not be run through cpplint. _NO_LINT_PATHS = ( @@ -311,8 +314,13 @@ def _CommonChecks(input_api, output_api): results.extend(_CheckCommitMessageBugEntry(input_api, output_api)) results.extend(input_api.canned_checks.CheckPatchFormatted( input_api, output_api)) + + # License files are taken as is, even if they include gendered pronouns. + license_filter = lambda path: input_api.FilterSourceFile( + path, black_list=_LICENSE_FILE) results.extend(input_api.canned_checks.CheckGenderNeutral( - input_api, output_api)) + input_api, output_api, source_file_filter=license_filter)) + results.extend(_V8PresubmitChecks(input_api, output_api)) results.extend(_CheckUnwantedDependencies(input_api, output_api)) results.extend( -- cgit v1.2.3