Bug 237773 - [JSC] Use addressTempRegister in loadValue(void *) on 32 bits
Summary: [JSC] Use addressTempRegister in loadValue(void *) on 32 bits
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: Angelos Oikonomopoulos
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-03-11 05:11 PST by Angelos Oikonomopoulos
Modified: 2022-03-13 07:36 PDT (History)
10 users (show)

See Also:


Attachments
Patch (9.66 KB, patch)
2022-03-11 05:25 PST, Angelos Oikonomopoulos
no flags Details | Formatted Diff | Diff
Patch (9.67 KB, patch)
2022-03-13 06:23 PDT, Angelos Oikonomopoulos
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>