Bug 227508

Summary: Remove unnecessary canBeInternal invocations to mitigate the cost of potential unmatched patterns in B3LowerToAir
Product: WebKit Reporter: Yijia Huang <yijia_huang>
Component: JavaScriptCoreAssignee: Yijia Huang <yijia_huang>
Status: RESOLVED FIXED    
Severity: Normal CC: ews-watchlist, fpizlo, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Yijia Huang 2021-06-29 15:10:54 PDT
...
Comment 1 Yijia Huang 2021-07-01 08:54:20 PDT
Created attachment 432701 [details]
Patch
Comment 2 Keith Miller 2021-07-01 09:02:55 PDT
Comment on attachment 432701 [details]
Patch

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

> Source/JavaScriptCore/ChangeLog:10
> +        The bit pattern doesn't cause the worst code generation in the all-internals-are-captured 
> +        case. So, they don't need canBeInternal checks which might terminate potential matched 
> +        scenarios.

Nit: doesn't cause the worst => doesn't cause worse.
Comment 3 Yijia Huang 2021-07-01 09:07:19 PDT
Created attachment 432703 [details]
Patch
Comment 4 EWS 2021-07-01 11:24:17 PDT
Committed r279473 (239327@main): <https://commits.webkit.org/239327@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 432703 [details].
Comment 5 Radar WebKit Bug Importer 2021-07-01 11:25:31 PDT
<rdar://problem/80035749>