mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibJS: Always inline Lexer::current_code_point()
This gives a ~1% speedup when parsing the largest Discord JS file.
This commit is contained in:
parent
50a446a5d1
commit
92e0378dbd
Notes:
sideshowbarker
2024-07-17 18:55:38 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/92e0378dbd
1 changed files with 1 additions and 1 deletions
|
@ -358,7 +358,7 @@ ALWAYS_INLINE bool Lexer::is_unicode_character() const
|
|||
return (m_current_char & 128) != 0;
|
||||
}
|
||||
|
||||
u32 Lexer::current_code_point() const
|
||||
ALWAYS_INLINE u32 Lexer::current_code_point() const
|
||||
{
|
||||
static constexpr const u32 REPLACEMENT_CHARACTER = 0xFFFD;
|
||||
if (m_position == 0)
|
||||
|
|
Loading…
Reference in a new issue