-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Byte code size and serialized byte code size optimizations (15-20% se…
…rialized byte code size reduction) Byte code size reductions: - Variable slot index size in layout Serialized byte code size reductions: - Move has loopHeaderArray and has asmJsInfo into the bit field (instead of a byte) - Don't emit field that has non-zero default value. - Use the defined fields to indicate existing of more field to reduce serialized byte code size - Use constant type to indicate whether it is property string or not instead of an extra boolean - Add int8 and int16 constant type for small int encoding in the constant table - Separate out the byte offset from the character offset in the LineOffsetCache so that we can omit them if the source is purely ASCII-7 -Reduce by half the memory used by the LineOffsetCache for ASCII-7 sources, and it reduces the serialized byte code size as well. - Remove unused sourceSpans from byte code serialization. - Serialize the bit flag with constant encoding (since the bit flag always as a large value) Also: - Clean up unused Reg2WithICIndex and REg1Int2 layout - Move LineOffsetCache to Runtime/Base instead of Common/DataStructures, and de-templatize it as we only use Recycler as the allocator anyway.
- Loading branch information
Showing
32 changed files
with
13,333 additions
and
16,804 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
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
Oops, something went wrong.