RESOLVED FIXED 238928
[JSC] Reduce Baseline JIT code size in debug builds
https://bugs.webkit.org/show_bug.cgi?id=238928
Summary [JSC] Reduce Baseline JIT code size in debug builds
Geza Lore
Reported 2022-04-07 06:05:38 PDT
[JSC] Reduce Baseline JIT code size in debug builds
Attachments
Patch (7.18 KB, patch)
2022-04-07 06:34 PDT, Geza Lore
no flags
Patch (8.09 KB, patch)
2022-04-07 10:36 PDT, Geza Lore
no flags
Patch (8.20 KB, patch)
2022-04-11 02:55 PDT, Geza Lore
no flags
Patch (8.19 KB, patch)
2022-04-11 04:34 PDT, Geza Lore
no flags
Geza Lore
Comment 1 2022-04-07 06:34:40 PDT
Geza Lore
Comment 2 2022-04-07 10:36:15 PDT
Yusuke Suzuki
Comment 3 2022-04-10 01:45:41 PDT
Comment on attachment 456940 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=456940&action=review > Source/JavaScriptCore/jit/JIT.cpp:682 > +#if CPU(X86_64) > + jit.subPtr(TrustedImm32(sizeof(void*)), expectedStackPointerGPR); // Call instruction pushed to stack > +#endif You can use prologueStackPointerDelta() and sizeof(CallerFrameAndPC) to compute it for all architectures.
Geza Lore
Comment 4 2022-04-11 02:55:41 PDT
Geza Lore
Comment 5 2022-04-11 02:56:17 PDT
(In reply to Yusuke Suzuki from comment #3) > Comment on attachment 456940 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=456940&action=review > > > Source/JavaScriptCore/jit/JIT.cpp:682 > > +#if CPU(X86_64) > > + jit.subPtr(TrustedImm32(sizeof(void*)), expectedStackPointerGPR); // Call instruction pushed to stack > > +#endif > > You can use prologueStackPointerDelta() and sizeof(CallerFrameAndPC) to > compute it for all architectures. Neat, thanks. r?
Geza Lore
Comment 6 2022-04-11 04:34:41 PDT
Saam Barati
Comment 7 2022-04-11 09:07:55 PDT
Comment on attachment 457245 [details] Patch r=me
EWS
Comment 8 2022-04-12 00:52:39 PDT
Committed r292767 (249551@main): <https://commits.webkit.org/249551@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 457245 [details].
Radar WebKit Bug Importer
Comment 9 2022-04-12 00:53:14 PDT
Note You need to log in before you can comment on or make changes to this bug.