[webkit-changes] [WebKit/WebKit] ebaf43: [JSC] Tweak parseMemberExpression() to get rid of ...
Commit Queue
noreply at github.com
Thu Feb 1 18:59:20 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ebaf43b6e7ad0dbb1b8e57c55c8121ab456285ae
https://github.com/WebKit/WebKit/commit/ebaf43b6e7ad0dbb1b8e57c55c8121ab456285ae
Author: Alexey Shvayka <ashvayka at apple.com>
Date: 2024-02-01 (Thu, 01 Feb 2024)
Changed paths:
M Source/JavaScriptCore/parser/Parser.cpp
Log Message:
-----------
[JSC] Tweak parseMemberExpression() to get rid of `baseIsNewTarget`
https://bugs.webkit.org/show_bug.cgi?id=268575
<rdar://problem/122131541>
Reviewed by Justin Michaud and Yusuke Suzuki.
Only one of `match(DOT)`, `baseIsSuper`, and `baseIsImport` can be true since they all call match()
in the same location. Given that, we can leverage `else if` to get rid of `baseIsNewTarget`.
This change is non-observable code tweak.
* Source/JavaScriptCore/parser/Parser.cpp:
(JSC::Parser<LexerType>::parseMemberExpression):
Canonical link: https://commits.webkit.org/273967@main
More information about the webkit-changes
mailing list