Bug 194446

Summary: Fix DFG's doesGC() for CheckTierUp*, GetByVal, PutByVal*, and StringCharAt nodes.
Product: WebKit Reporter: Mark Lam <mark.lam>
Component: JavaScriptCoreAssignee: Mark Lam <mark.lam>
Status: RESOLVED FIXED    
Severity: Normal CC: fpizlo, keith_miller, msaboff, rmorisset, saam, tzagallo, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
proposed patch. saam: review+

Description Mark Lam 2019-02-08 13:02:55 PST
Patch coming.
Comment 1 Radar WebKit Bug Importer 2019-02-08 13:03:38 PST
<rdar://problem/47926792>
Comment 2 Mark Lam 2019-02-08 13:19:21 PST
Created attachment 361529 [details]
proposed patch.
Comment 3 Saam Barati 2019-02-08 13:39:03 PST
Comment on attachment 361529 [details]
proposed patch.

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

r=me

> Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:2197
>      JITCompiler::Jump bigCharacter =
> -        m_jit.branch32(MacroAssembler::AboveOrEqual, scratchReg, TrustedImm32(0x100));
> +        m_jit.branch32(MacroAssembler::Above, scratchReg, TrustedImm32(maxSingleCharacterString));

This really doesn't belong in this patch.

> Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:6615
> +            m_out.above(char16BitValue, m_out.constInt32(maxSingleCharacterString)),

ditto
Comment 4 Mark Lam 2019-02-08 13:42:20 PST
Comment on attachment 361529 [details]
proposed patch.

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

Thanks for the review.

>> Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp:2197
>> +        m_jit.branch32(MacroAssembler::Above, scratchReg, TrustedImm32(maxSingleCharacterString));
> 
> This really doesn't belong in this patch.

I'll revert and apply this in a separate patch.

>> Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:6615
>> +            m_out.above(char16BitValue, m_out.constInt32(maxSingleCharacterString)),
> 
> ditto

Same.
Comment 5 Mark Lam 2019-02-08 14:32:37 PST
Landed in r241210: <http://trac.webkit.org/r241210>.