Summary: | [JSC] DFG / FTL should inline switch_string | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Yusuke Suzuki <ysuzuki> | ||||
Component: | JavaScriptCore | Assignee: | Yusuke Suzuki <ysuzuki> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | ews-watchlist, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer | ||||
Priority: | P2 | Keywords: | InRadar | ||||
Version: | WebKit Nightly Build | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Yusuke Suzuki
2021-04-14 14:48:01 PDT
Created attachment 426776 [details]
Patch
Comment on attachment 426776 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=426776&action=review r=me > Source/JavaScriptCore/ChangeLog:10 > + This allows DFG / FTL to inline CodeBlock which includes op_switch_string. We were not able I suggest "were previously not able". > Source/JavaScriptCore/ChangeLog:13 > + 1. We handle StringJumpTable / UnlinkedStringJumpTable in the same way to SimpleJumpTable / UnlinkedSimpleJumpTable. /same way to/same way as/. > Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:16748 > LValue branchOffset = vmCall( Can you rename this node to `branchIndex` to match `operationSwitchStringAndGetIndex`? Comment on attachment 426776 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=426776&action=review >> Source/JavaScriptCore/ChangeLog:10 >> + This allows DFG / FTL to inline CodeBlock which includes op_switch_string. We were not able > > I suggest "were previously not able". Fixed. >> Source/JavaScriptCore/ChangeLog:13 >> + 1. We handle StringJumpTable / UnlinkedStringJumpTable in the same way to SimpleJumpTable / UnlinkedSimpleJumpTable. > > /same way to/same way as/. Fixed. >> Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:16748 >> LValue branchOffset = vmCall( > > Can you rename this node to `branchIndex` to match `operationSwitchStringAndGetIndex`? Oops, fixed. Committed r276427 (236890@main): <https://commits.webkit.org/236890@main> |