Commit f3214885 authored by Anton Bershanskiy's avatar Anton Bershanskiy Committed by V8 LUCI CQ

Fix gen-keywords-gen-h.py

Commit 84f3877c moved IsInRange to
base::IsInRange and updated src/parsing/keywords-gen.h, but did not
update tools/gen-keywords-gen-h.py.

Bug: v8:12507
Change-Id: I914ba73feac3bac6fd5d08d14d17149faf6c5c76
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3356200Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/main@{#78467}
parent 2ffc79b7
...@@ -61,6 +61,7 @@ Andrei Kashcha <anvaka@gmail.com> ...@@ -61,6 +61,7 @@ Andrei Kashcha <anvaka@gmail.com>
Andrew Paprocki <andrew@ishiboo.com> Andrew Paprocki <andrew@ishiboo.com>
Anna Henningsen <anna@addaleax.net> Anna Henningsen <anna@addaleax.net>
Antoine du Hamel <duhamelantoine1995@gmail.com> Antoine du Hamel <duhamelantoine1995@gmail.com>
Anton Bershanskiy <8knots@protonmail.com>
Anton Bikineev <ant.bikineev@gmail.com> Anton Bikineev <ant.bikineev@gmail.com>
Archil Sharashenidze <achosharashenidze@gmail.com> Archil Sharashenidze <achosharashenidze@gmail.com>
Bangfu Tao <bangfu.tao@samsung.com> Bangfu Tao <bangfu.tao@samsung.com>
......
...@@ -83,7 +83,8 @@ def trim_and_dcheck_char_table(out): ...@@ -83,7 +83,8 @@ def trim_and_dcheck_char_table(out):
def use_isinrange(out): def use_isinrange(out):
# Our IsInRange method is more efficient than checking for min/max length # Our IsInRange method is more efficient than checking for min/max length
return checked_sub(r'if \(len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH\)', return checked_sub(r'if \(len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH\)',
r'if (IsInRange(len, MIN_WORD_LENGTH, MAX_WORD_LENGTH))', r'if (base::IsInRange(len, MIN_WORD_LENGTH, '
+ r'MAX_WORD_LENGTH))',
out) out)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment