CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 20:38:01 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/"45c52835e2d8c683204fc2ebca71a230"
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=HU1nJtmamI%2B%2FKvO5ng%2FRU%2FUzFJUDHzVfRQxq2%2ByF3wBuVH5l2mb%2Fkgwp%2FOiBJoWe8pGrl31mQmK3JqVixHW4cG8CKLXIYtay2935Bpyog%2Fj3EMZtL3ABiKg9E3y2IKyL7Cf7zeqfo%2BCpw7DrmamPXccqggqv478TMzaxHhj5vB5dVypYG3mS9Cw5vI9rW%2FGD4O8qSiSA8T2FosYXl3mF%2BEHKerOcjzBt%2FUN9kGdQl6zS%2B8gpLJegt16gH9vdynf2Tc60pBfd27Gia6qsFqv5mA%3D%3D--PIsrEiARljeVa0nb--dpB89KkB%2FE%2BAUG7nplynCA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.880850329.1753303079; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 20:37:59 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 20:37:59 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A8C2:3CFE7:DD3C4:11FE24:68814827
Defer functions enclosed in all contexts. Support deferral of functio… · chakra-core/ChakraCore@61cafb8 · GitHub
Copy file name to clipboardExpand all lines: lib/Runtime/ByteCode/ByteCodeEmitter.cpp
Copy file name to clipboardExpand all lines: lib/Runtime/ByteCode/ByteCodeGenerator.cpp
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit 61cafb8
committed
Defer functions enclosed in all contexts. Support deferral of functions enclosed in scopes other than function body and function expression scope -- in particular, ES6-style lexical scopes and parameter scopes. This requires changing ScopeInfo so that it is associated with a single scope rather than a function body. Instead of carrying per-function information for body/var scope, parameter scope, and function expression scope, ScopeInfo will describe one scope, with a value identifying the scope type, a pointer to the FunctionInfo that contains it, and a pointer to the enclosing ScopeInfo.. A FunctionProxy will point to the ScopeInfo that is the nearest enclosing scope. At parse time, we will reconstitute the closure environment by walking the list of enclosing ScopeInfo's. The code that allowed redeferral to work around the context limitation of deferring parsing is deleted, and the OptimizeBlockScope feature is off by default, as it doesn't play well with this new logic and isn't required to make (re-)deferral effective. (We will want to revisit it.)
1 parent 4df783c commit 61cafb8Copy full SHA for 61cafb8
File tree
Expand file treeCollapse file tree
17 files changed
+377
-436
lines changedFilter options
- lib
- Parser
- Runtime/ByteCode
- test
- DebuggerCommon
- stackfunc
Expand file treeCollapse file tree
17 files changed
+377
-436
lines changed+10Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
147 | 157 |
| |
148 | 158 |
| |
149 | 159 |
| |
|
+122-152Lines changed: 122 additions & 152 deletions
Large diffs are not rendered by default.
+8-4Lines changed: 8 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
9 | 14 |
| |
10 | 15 |
| |
11 | 16 |
| |
| |||
369 | 374 |
| |
370 | 375 |
| |
371 | 376 |
| |
372 |
| - | |
373 | 377 |
| |
374 | 378 |
| |
375 | 379 |
| |
| |||
976 | 980 |
| |
977 | 981 |
| |
978 | 982 |
| |
979 |
| - | |
980 |
| - | |
| 983 | + | |
| 984 | + | |
981 | 985 |
| |
982 | 986 |
| |
983 | 987 |
| |
| |||
1011 | 1015 |
| |
1012 | 1016 |
| |
1013 | 1017 |
| |
1014 |
| - | |
| 1018 | + | |
1015 | 1019 |
| |
1016 | 1020 |
| |
1017 | 1021 |
| |
|
-4Lines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
247 | 247 |
| |
248 | 248 |
| |
249 | 249 |
| |
250 |
| - | |
251 | 250 |
| |
252 | 251 |
| |
253 | 252 |
| |
| |||
286 | 285 |
| |
287 | 286 |
| |
288 | 287 |
| |
289 |
| - | |
290 | 288 |
| |
291 | 289 |
| |
292 | 290 |
| |
| |||
323 | 321 |
| |
324 | 322 |
| |
325 | 323 |
| |
326 |
| - | |
327 | 324 |
| |
328 | 325 |
| |
329 | 326 |
| |
| |||
362 | 359 |
| |
363 | 360 |
| |
364 | 361 |
| |
365 |
| - | |
366 | 362 |
| |
367 | 363 |
| |
368 | 364 |
| |
|
lib/Runtime/ByteCode/ByteCodeEmitter.cpp
Copy file name to clipboardExpand all lines: lib/Runtime/ByteCode/ByteCodeEmitter.cpp+6-22Lines changed: 6 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2993 | 2993 |
| |
2994 | 2994 |
| |
2995 | 2995 |
| |
| 2996 | + | |
| 2997 | + | |
| 2998 | + | |
| 2999 | + | |
| 3000 | + | |
2996 | 3001 |
| |
2997 | 3002 |
| |
2998 | 3003 |
| |
| |||
3658 | 3663 |
| |
3659 | 3664 |
| |
3660 | 3665 |
| |
3661 |
| - | |
3662 |
| - | |
3663 |
| - | |
3664 |
| - | |
3665 |
| - | |
3666 |
| - | |
3667 |
| - | |
| 3666 | + | |
3668 | 3667 |
| |
3669 | 3668 |
| |
3670 | 3669 |
| |
| |||
3842 | 3841 |
| |
3843 | 3842 |
| |
3844 | 3843 |
| |
3845 |
| - | |
3846 |
| - | |
3847 |
| - | |
3848 |
| - | |
3849 |
| - | |
3850 |
| - | |
3851 |
| - | |
3852 |
| - | |
3853 |
| - | |
3854 |
| - | |
3855 |
| - | |
3856 |
| - | |
3857 |
| - | |
3858 |
| - | |
3859 |
| - | |
3860 | 3844 |
| |
3861 | 3845 |
| |
3862 | 3846 |
| |
|
lib/Runtime/ByteCode/ByteCodeGenerator.cpp
Copy file name to clipboardExpand all lines: lib/Runtime/ByteCode/ByteCodeGenerator.cpp+92-57Lines changed: 92 additions & 57 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
968 | 968 |
| |
969 | 969 |
| |
970 | 970 |
| |
971 |
| - | |
| 971 | + | |
972 | 972 |
| |
973 |
| - | |
| 973 | + | |
974 | 974 |
| |
975 | 975 |
| |
976 | 976 |
| |
977 |
| - | |
978 |
| - | |
| 977 | + | |
| 978 | + | |
979 | 979 |
| |
980 |
| - | |
981 |
| - | |
982 |
| - | |
| 980 | + | |
983 | 981 |
| |
984 |
| - | |
985 |
| - | |
986 |
| - | |
987 |
| - | |
988 |
| - | |
989 |
| - | |
990 |
| - | |
991 |
| - | |
992 |
| - | |
993 |
| - | |
994 |
| - | |
995 |
| - | |
996 |
| - | |
997 |
| - | |
998 |
| - | |
999 |
| - | |
1000 |
| - | |
1001 |
| - | |
1002 |
| - | |
| 982 | + | |
| 983 | + | |
1003 | 984 |
| |
1004 |
| - | |
1005 | 985 |
| |
1006 |
| - | |
1007 |
| - | |
1008 |
| - | |
1009 |
| - | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
1010 | 989 |
| |
1011 |
| - | |
1012 |
| - | |
| 990 | + | |
1013 | 991 |
| |
1014 |
| - | |
1015 |
| - | |
1016 |
| - | |
1017 |
| - | |
1018 |
| - | |
1019 |
| - | |
1020 |
| - | |
1021 |
| - | |
1022 |
| - | |
1023 |
| - | |
1024 |
| - | |
1025 |
| - | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
1026 | 997 |
| |
1027 |
| - | |
1028 | 998 |
| |
1029 | 999 |
| |
1030 | 1000 |
| |
1031 | 1001 |
| |
1032 | 1002 |
| |
| 1003 | + | |
1033 | 1004 |
| |
1034 | 1005 |
| |
1035 | 1006 |
| |
1036 |
| - | |
1037 |
| - | |
1038 |
| - | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
1039 | 1014 |
| |
1040 | 1015 |
| |
1041 | 1016 |
| |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
1042 | 1059 |
| |
1043 | 1060 |
| |
1044 |
| - | |
| 1061 | + | |
1045 | 1062 |
| |
1046 | 1063 |
| |
1047 | 1064 |
| |
1048 |
| - | |
| 1065 | + | |
1049 | 1066 |
| |
1050 | 1067 |
| |
1051 | 1068 |
| |
| |||
1211 | 1228 |
| |
1212 | 1229 |
| |
1213 | 1230 |
| |
1214 |
| - | |
| 1231 | + | |
1215 | 1232 |
| |
1216 | 1233 |
| |
1217 | 1234 |
| |
| |||
1632 | 1649 |
| |
1633 | 1650 |
| |
1634 | 1651 |
| |
1635 |
| - | |
| 1652 | + | |
| 1653 | + | |
1636 | 1654 |
| |
1637 | 1655 |
| |
1638 | 1656 |
| |
| |||
1755 | 1773 |
| |
1756 | 1774 |
| |
1757 | 1775 |
| |
1758 |
| - | |
| 1776 | + | |
1759 | 1777 |
| |
1760 | 1778 |
| |
1761 | 1779 |
| |
| |||
1995 | 2013 |
| |
1996 | 2014 |
| |
1997 | 2015 |
| |
1998 |
| - | |
| 2016 | + | |
1999 | 2017 |
| |
2000 | 2018 |
| |
2001 | 2019 |
| |
| |||
2023 | 2041 |
| |
2024 | 2042 |
| |
2025 | 2043 |
| |
2026 |
| - | |
| 2044 | + | |
2027 | 2045 |
| |
2028 | 2046 |
| |
2029 | 2047 |
| |
| |||
2040 | 2058 |
| |
2041 | 2059 |
| |
2042 | 2060 |
| |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
| 2065 | + | |
2043 | 2066 |
| |
2044 | 2067 |
| |
2045 | 2068 |
| |
| |||
3247 | 3270 |
| |
3248 | 3271 |
| |
3249 | 3272 |
| |
| 3273 | + | |
3250 | 3274 |
| |
3251 | 3275 |
| |
3252 | 3276 |
| |
| |||
3629 | 3653 |
| |
3630 | 3654 |
| |
3631 | 3655 |
| |
| 3656 | + | |
| 3657 | + | |
3632 | 3658 |
| |
3633 | 3659 |
| |
3634 |
| - | |
3635 | 3660 |
| |
3636 | 3661 |
| |
3637 | 3662 |
| |
3638 | 3663 |
| |
3639 | 3664 |
| |
3640 | 3665 |
| |
| 3666 | + | |
| 3667 | + | |
| 3668 | + | |
| 3669 | + | |
| 3670 | + | |
3641 | 3671 |
| |
3642 | 3672 |
| |
3643 | 3673 |
| |
| |||
3686 | 3716 |
| |
3687 | 3717 |
| |
3688 | 3718 |
| |
| 3719 | + | |
| 3720 | + | |
| 3721 | + | |
| 3722 | + | |
| 3723 | + | |
3689 | 3724 |
| |
3690 | 3725 |
| |
3691 | 3726 |
| |
|
You can’t perform that action at this time.
0 commit comments