Bug 237773

Summary: [JSC] Use addressTempRegister in loadValue(void *) on 32 bits
Product: WebKit Reporter: Angelos Oikonomopoulos <angelos>
Component: New BugsAssignee: Angelos Oikonomopoulos <angelos>
Status: RESOLVED FIXED    
Severity: Normal CC: ews-watchlist, glore, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer, ysuzuki, zdobersek
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Angelos Oikonomopoulos 2022-03-11 05:11:18 PST
[JSC] Use addressTempRegister in loadValue(void *) on 32 bits
Comment 1 Angelos Oikonomopoulos 2022-03-11 05:25:25 PST
Created attachment 454471 [details]
Patch
Comment 2 Zan Dobersek (Reviews) 2022-03-12 09:27:52 PST
Comment on attachment 454471 [details]
Patch

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

> Source/JavaScriptCore/assembler/MacroAssemblerARMv7.h:76
> +    struct BoundsNonDoubleWordOffset {
> +        static bool within(intptr_t value)
> +        {
> +            return (value >= -0xff) && (value <= 0xfff);
> +        }
> +    };
> +    struct BoundsDoubleWordOffset {
> +        static bool within(intptr_t value)
> +        {
> +            if (value < 0)
> +                value = -value;
> +            return !(value & ~0x3fc);
> +        }
> +    };

We could argue about these types' names, but let's not.
Comment 3 Angelos Oikonomopoulos 2022-03-13 06:23:38 PDT
Created attachment 454554 [details]
Patch
Comment 4 Angelos Oikonomopoulos 2022-03-13 06:26:41 PDT
(In reply to Zan Dobersek (Reviews) from comment #2)
[...]
> We could argue about these types' names, but let's not.

No argument from me.
Comment 5 EWS 2022-03-13 07:35:23 PDT
Committed r291217 (248372@main): <https://commits.webkit.org/248372@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 454554 [details].
Comment 6 Radar WebKit Bug Importer 2022-03-13 07:36:18 PDT
<rdar://problem/90216258>