-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] JSCell::toX should use jsDynamicCast/jsSecureCast
https://bugs.webkit.org/show_bug.cgi?id=270797 rdar://124119022 Reviewed by Mark Lam. General code quality improvement. We also might as well add a release assert that the final case is correct as it doesn't seem to be a perf regression. * Source/JavaScriptCore/runtime/JSCell.cpp: (JSC::JSCell::toPrimitive const): (JSC::JSCell::toNumber const): (JSC::JSCell::toObjectSlow const): Canonical link: https://commits.webkit.org/275948@main
- Loading branch information
Showing
1 changed file
with
19 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters