Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[JSC] Improve the absThunkGenerator() for 64bit
https://bugs.webkit.org/show_bug.cgi?id=156888 Reviewed by Michael Saboff. A few tests spend a lot of time in this abs() with double argument. This patch adds custom handling for the JSValue64 representation. In particular: -Do not load the value twice. Unbox the GPR if it is not an Int32. -Deal with IntMin inline instead of falling back to the C function call. -Box the values ourself to avoid a duplicate function tail and return. * jit/ThunkGenerators.cpp: (JSC::absThunkGenerator): Canonical link: https://commits.webkit.org/174995@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@199865 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
55 additions
and 0 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
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