Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] Use Identifier::from in IdentifierArena::makeNumericIdentifier
https://bugs.webkit.org/show_bug.cgi?id=259959 rdar://113598301 Reviewed by Keith Miller. We should just use Identifier::from from IdentifierArena::makeNumericIdentifier, which can have some optimization additionally via per-VM string cache. Also, we can use `canBeInt32` to check wether we can stringify it as int32_t instead of double, which is much faster. * Source/JavaScriptCore/parser/ParserArena.h: (JSC::IdentifierArena::makeNumericIdentifier): Canonical link: https://commits.webkit.org/266743@main
- Loading branch information