Summary: | [JSC] DFG / FTL should be aware of JSString's String replacement | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Yusuke Suzuki <ysuzuki> | ||||||||
Component: | New Bugs | Assignee: | Yusuke Suzuki <ysuzuki> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | ews-watchlist, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer, zolkarnainhashim73 | ||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||
Version: | WebKit Nightly Build | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Description
Yusuke Suzuki
2022-04-06 19:08:35 PDT
Created attachment 456881 [details]
Patch
Created attachment 456955 [details]
Patch
Slick Created attachment 457004 [details]
Patch
Comment on attachment 457004 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=457004&action=review Nice. r=me > Source/JavaScriptCore/dfg/DFGAbstractInterpreterInlines.h:3795 > + ASSERT(node->arrayMode().type() != Array::String); Can we put this in DFGValidate? That is the more canonical place to put such things. > Source/JavaScriptCore/dfg/DFGClobberize.h:1341 > + ASSERT(node->arrayMode().type() != Array::String); ditto. I think just putting it in Validate is the right way > Source/JavaScriptCore/dfg/DFGOperations.cpp:2524 > + string->value(globalObject); why not call JSRopeString->resolveRope here? > Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:4775 > + ASSERT(m_node->arrayMode().type() != Array::String); ditto about validation Comment on attachment 457004 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=457004&action=review Thanks! >> Source/JavaScriptCore/dfg/DFGAbstractInterpreterInlines.h:3795 >> + ASSERT(node->arrayMode().type() != Array::String); > > Can we put this in DFGValidate? That is the more canonical place to put such things. Done. Nice >> Source/JavaScriptCore/dfg/DFGClobberize.h:1341 >> + ASSERT(node->arrayMode().type() != Array::String); > > ditto. I think just putting it in Validate is the right way Ditto. >> Source/JavaScriptCore/dfg/DFGOperations.cpp:2524 >> + string->value(globalObject); > > why not call JSRopeString->resolveRope here? Sounds good. Changed. >> Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp:4775 >> + ASSERT(m_node->arrayMode().type() != Array::String); > > ditto about validation Nice, done. Committed r292697 (249489@trunk): <https://commits.webkit.org/249489@trunk> |