Bug 247770 - Change the value of scriptCodeLimit to placate a strange Clang quirk.
Summary: Change the value of scriptCodeLimit to placate a strange Clang quirk.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mark Lam
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-11-10 16:24 PST by Mark Lam
Modified: 2022-11-10 18:32 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Lam 2022-11-10 16:24:25 PST
Some versions of Clang appear to think that scriptCodeLimit should fit in a signed 9-bit integer, which is crazy.  For our purposes, a value of 255 works just as well.  So, we're changing scriptCodeLimit to be 255 instead of 256 to workaround this Clang quirk.

<rdar://problem/102115540>
Comment 1 Mark Lam 2022-11-10 16:30:32 PST
Pull request: https://github.com/WebKit/WebKit/pull/6377
Comment 2 EWS 2022-11-10 18:32:06 PST
Committed 256560@main (06f9978e52a8): <https://commits.webkit.org/256560@main>

Reviewed commits have been landed. Closing PR #6377 and removing active labels.