CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 20:48:45 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/chakra-core/ChakraCore.git
etag: W/"dfb8098f061d4480e29d1564385f4213"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=lvBVqDWkPGMTYJDeGbgxh1QiQtT8LgNqdHVDIWx7CWZxOeJDFqbgtmzYGzdW86CGtGAidonAGls%2BYoPbLyQ3GRTsjVVucXt%2FCqqSjhe9DISR1SgwpGLzpaaVL%2FcEbQnihwObA60L%2BIVE8xM20%2BKCR%2F%2FPgdp%2FHRGqip6koVichPLLhABxMZTvHaZDb66bVpFDpTQM0kvuoGk4Vz2N5N8dADWpiduOhbQGQ4OUX4q7Tc22tvftkdHrLbpft0jIkb1UzSoKTba8DjQ5oXEeQYRUow%3D%3D--hCZbYND3umAdj3tu--0JHLs3XsGgHyhR8UcXcp5g%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.612220091.1753303723; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 20:48:43 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 20:48:43 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: C942:D3350:10BDD87:13E9FF8:68814AAB
Byte code size and serialized byte code size optimizations (15-20% se… · chakra-core/ChakraCore@6eb4457 · GitHub
Copy file name to clipboardExpand all lines: lib/Common/DataStructures/Chakra.Common.DataStructures.vcxproj
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit 6eb4457
committed
Byte code size and serialized byte code size optimizations (15-20% serialized 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.1 parent 88a2c3a commit 6eb4457Copy full SHA for 6eb4457
File tree
Expand file treeCollapse file tree
32 files changed
+13342
-16813
lines changedFilter options
- lib
- Backend
- Common
- DataStructures
- Runtime
- Base
- ByteCode
- Language
- Library
- InJavascript
- WasmReader
Expand file treeCollapse file tree
32 files changed
+13342
-16813
lines changed+1-56Lines changed: 1 addition & 56 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1988 | 1988 |
| |
1989 | 1989 |
| |
1990 | 1990 |
| |
1991 |
| - | |
1992 |
| - | |
1993 |
| - | |
1994 |
| - | |
1995 |
| - | |
1996 |
| - | |
1997 |
| - | |
1998 |
| - | |
1999 |
| - | |
2000 |
| - | |
2001 |
| - | |
2002 |
| - | |
2003 |
| - | |
2004 |
| - | |
2005 |
| - | |
2006 |
| - | |
2007 |
| - | |
2008 |
| - | |
2009 |
| - | |
2010 |
| - | |
2011 |
| - | |
2012 |
| - | |
2013 |
| - | |
2014 |
| - | |
2015 |
| - | |
2016 |
| - | |
2017 |
| - | |
2018 |
| - | |
2019 |
| - | |
2020 |
| - | |
2021 | 1991 |
| |
2022 | 1992 |
| |
2023 | 1993 |
| |
| |||
2043 | 2013 |
| |
2044 | 2014 |
| |
2045 | 2015 |
| |
2046 |
| - | |
| 2016 | + | |
2047 | 2017 |
| |
2048 | 2018 |
| |
2049 | 2019 |
| |
| |||
2112 | 2082 |
| |
2113 | 2083 |
| |
2114 | 2084 |
| |
2115 |
| - | |
2116 | 2085 |
| |
2117 | 2086 |
| |
2118 | 2087 |
| |
| |||
2834 | 2803 |
| |
2835 | 2804 |
| |
2836 | 2805 |
| |
2837 |
| - | |
2838 |
| - | |
2839 |
| - | |
2840 |
| - | |
2841 |
| - | |
2842 |
| - | |
2843 |
| - | |
2844 |
| - | |
2845 |
| - | |
2846 |
| - | |
2847 |
| - | |
2848 |
| - | |
2849 |
| - | |
2850 |
| - | |
2851 |
| - | |
2852 |
| - | |
2853 |
| - | |
2854 |
| - | |
2855 |
| - | |
2856 |
| - | |
2857 |
| - | |
2858 |
| - | |
2859 |
| - | |
2860 |
| - | |
2861 | 2806 |
| |
2862 | 2807 |
| |
2863 | 2808 |
| |
|
+1-2Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
130 | 130 |
| |
131 | 131 |
| |
132 | 132 |
| |
133 |
| - | |
134 |
| - | |
| 133 | + | |
135 | 134 |
| |
136 | 135 |
| |
137 | 136 |
| |
|
+1-3Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8130 | 8130 |
| |
8131 | 8131 |
| |
8132 | 8132 |
| |
8133 |
| - | |
| 8133 | + | |
8134 | 8134 |
| |
8135 | 8135 |
| |
8136 | 8136 |
| |
| |||
8217 | 8217 |
| |
8218 | 8218 |
| |
8219 | 8219 |
| |
8220 |
| - | |
8221 | 8220 |
| |
8222 | 8221 |
| |
8223 | 8222 |
| |
| |||
8241 | 8240 |
| |
8242 | 8241 |
| |
8243 | 8242 |
| |
8244 |
| - | |
8245 | 8243 |
| |
8246 | 8244 |
| |
8247 | 8245 |
| |
|
-1Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
118 | 118 |
| |
119 | 119 |
| |
120 | 120 |
| |
121 |
| - | |
122 | 121 |
| |
123 | 122 |
| |
124 | 123 |
| |
|
lib/Common/DataStructures/Chakra.Common.DataStructures.vcxproj
Copy file name to clipboardExpand all lines: lib/Common/DataStructures/Chakra.Common.DataStructures.vcxproj-1Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
63 |
| - | |
64 | 63 |
| |
65 | 64 |
| |
66 | 65 |
| |
|
You can’t perform that action at this time.
0 commit comments