Open Bug 1688187 Opened 3 years ago Updated 9 months ago

Use inline assembly to optimize ToInt32 on Aarch64 Apple.

Categories

(Core :: JavaScript Engine, enhancement, P2)

ARM64
macOS
enhancement

Tracking

()

People

(Reporter: nbp, Unassigned)

References

(Blocks 1 open bug)

Details

WebKit implemented ToInt32 function using the FJCVTZS instruction provided by the Aarch64 architecture. Given how specific this instruction is to JavaScript, it is unlikely to be part of what C++ compiler would attempt to infer.

Recently, Bug 1679922 added the MOZ_AARCH64_JSCVT marco, which can be used to guard the implementation of the ToInt32 using inline assembly within SpiderMonkey.

OS: Unspecified → macOS
Hardware: Unspecified → ARM64
Blocks: sm-runtime
You need to log in before you can comment on or make changes to this bug.