summaryrefslogtreecommitdiff
path: root/deps/v8/PRESUBMIT.py
diff options
context:
space:
mode:
authorYang Guo <yangguo@chromium.org>2019-01-10 12:39:59 +0100
committerYang Guo <yangguo@chromium.org>2019-02-01 15:09:33 +0100
commit7c8ac5a01b4ba5d4c7060875ea024e6efbc12893 (patch)
tree21f3aaa8ab86ccd063217bb2629b20a3a042b077 /deps/v8/PRESUBMIT.py
parentf4510c4148b50b47ac22fdb5331ce726b63b8525 (diff)
downloadandroid-node-v8-7c8ac5a01b4ba5d4c7060875ea024e6efbc12893.tar.gz
android-node-v8-7c8ac5a01b4ba5d4c7060875ea024e6efbc12893.tar.bz2
android-node-v8-7c8ac5a01b4ba5d4c7060875ea024e6efbc12893.zip
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 <yangguo@chromium.org> Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Cr-Commit-Position: refs/heads/master@{#58674} Refs: https://github.com/v8/v8/commit/c736883ed4e3ff92d1fd5a60497cec5311df9a25
Diffstat (limited to 'deps/v8/PRESUBMIT.py')
-rw-r--r--deps/v8/PRESUBMIT.py10
1 files changed, 9 insertions, 1 deletions
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(