Bug 234402 - [JSC] only emit pointer validation for ARM64E
Summary: [JSC] only emit pointer validation for ARM64E
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Caitlin Potter (:caitp)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-12-16 11:55 PST by Caitlin Potter (:caitp)
Modified: 2021-12-16 13:08 PST (History)
8 users (show)

See Also:


Attachments
Patch (1.56 KB, patch)
2021-12-16 11:58 PST, Caitlin Potter (:caitp)
ews-feeder: commit-queue-
Details | Formatted Diff | Diff
Patch for landing (1.77 KB, patch)
2021-12-16 12:23 PST, Caitlin Potter (:caitp)
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Caitlin Potter (:caitp) 2021-12-16 11:55:24 PST
[JSC] only emit save/restore register for JIT thunks on ARM64
Comment 1 Caitlin Potter (:caitp) 2021-12-16 11:58:13 PST
Created attachment 447378 [details]
Patch
Comment 2 Yusuke Suzuki 2021-12-16 12:02:49 PST
Comment on attachment 447378 [details]
Patch

r=me if EWS is green.
Probably need to have UNUSED_PARAM for parameters.
Comment 3 Mark Lam 2021-12-16 12:04:45 PST
Comment on attachment 447378 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=447378&action=review

> Source/JavaScriptCore/ChangeLog:3
> +        [JSC] only emit save/restore register for JIT thunks on ARM64

A better description is “Only emit pointer validation for ARM64E.”

> Source/JavaScriptCore/jit/ThunkGenerators.cpp:163
> +#endif

You’ll need to add UNUSED_PARAM for the arguments that are not used for non-ARM64E ports.
Comment 4 Mark Lam 2021-12-16 12:06:02 PST
Comment on attachment 447378 [details]
Patch

Oops, didn’t mean to negate Yusuke’s r+.  But please apply the fixes.
Comment 5 Caitlin Potter (:caitp) 2021-12-16 12:11:22 PST
(In reply to Mark Lam from comment #3)
> Comment on attachment 447378 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=447378&action=review
> 
> > Source/JavaScriptCore/ChangeLog:3
> > +        [JSC] only emit save/restore register for JIT thunks on ARM64
> 
> A better description is “Only emit pointer validation for ARM64E.”
> 
> > Source/JavaScriptCore/jit/ThunkGenerators.cpp:163
> > +#endif
> 
> You’ll need to add UNUSED_PARAM for the arguments that are not used for
> non-ARM64E ports.

Done and done, just waiting on EWS
Comment 6 Caitlin Potter (:caitp) 2021-12-16 12:23:29 PST
Created attachment 447382 [details]
Patch for landing
Comment 7 EWS 2021-12-16 13:07:00 PST
Committed r287154 (245332@main): <https://commits.webkit.org/245332@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 447382 [details].
Comment 8 Radar WebKit Bug Importer 2021-12-16 13:08:17 PST
<rdar://problem/86591795>