mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:07:36 +00:00
LibJS: Make more use of Token::flystring_value()
This patch makes check_identifier_name_for_assignment_validity() take a FlyString instead of a StringView. We then exploit this by passing FlyString in more places via flystring_value(). This gives a ~1% speedup when parsing the largest Discord JS file.
This commit is contained in:
parent
0cb0979990
commit
50a446a5d1
2 changed files with 13 additions and 13 deletions
|
@ -216,7 +216,7 @@ private:
|
|||
|
||||
Token next_token(size_t steps = 1) const;
|
||||
|
||||
void check_identifier_name_for_assignment_validity(StringView, bool force_strict = false);
|
||||
void check_identifier_name_for_assignment_validity(FlyString const&, bool force_strict = false);
|
||||
|
||||
bool try_parse_arrow_function_expression_failed_at_position(const Position&) const;
|
||||
void set_try_parse_arrow_function_expression_failed_at_position(const Position&, bool);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue