Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Pack RegisterAtOffset harder.
<https://webkit.org/b/152501> Reviewed by Michael Saboff. Pack the register index and the offset into a single pointer-sized word instead of two. This reduces memory consumption by 620 kB on mobile theverge.com. The packing doesn't succeed on MSVC for some reason, so I've left out the static assertion about class size in those builds. * jit/RegisterAtOffset.cpp: * jit/RegisterAtOffset.h: Canonical link: https://commits.webkit.org/171355@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195365 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
21 additions
and 1 deletion.
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
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
@@ -70,7 +70,7 @@ class RegisterAtOffset { | ||
|
||
private: | ||
Reg m_reg; | ||
ptrdiff_t m_offset : sizeof(ptrdiff_t) * 8 - sizeof(Reg) * 8; | ||
}; | ||
|
||
} // namespace JSC | ||