| Summary: | REGRESSION: ASSERTION FAILED: regExpObjectNode in JSC::DFG::StrengthReductionPhase::handleNode | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Ryan Haddad <ryanhaddad> | ||||||
| Component: | JavaScriptCore | Assignee: | Mark Lam <mark.lam> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | darin, ews-watchlist, keith_miller, mark.lam, msaboff, ross.kirsling, saam, tzagallo, webkit-bot-watchers-bugzilla, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=209375 | ||||||||
| Attachments: |
|
||||||||
|
Description
Ryan Haddad
2020-03-31 11:49:03 PDT
This assert was added with https://trac.webkit.org/changeset/259246/webkit Argh, looks like this must be when we've already successfully done convertToStatic and are now reconsidering foldToConstant. Created attachment 395082 [details]
Patch
Sorry about that! Comment on attachment 395082 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=395082&action=review > Source/JavaScriptCore/dfg/DFGStrengthReductionPhase.cpp:556 > + && otherNode->child2()->isInt32Constant() > + && otherNode->child2()->asInt32() >= 0) { > + lastIndex = static_cast<unsigned>(otherNode->child2()->asInt32()); Moved code, not new. This seems a lot like isUInt32/asUInt32 and a little strange that we’re using static_cast instead. Comment on attachment 395082 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=395082&action=review r=me >> Source/JavaScriptCore/dfg/DFGStrengthReductionPhase.cpp:556 >> + lastIndex = static_cast<unsigned>(otherNode->child2()->asInt32()); > > Moved code, not new. This seems a lot like isUInt32/asUInt32 and a little strange that we’re using static_cast instead. Yes, let's just use asUint32() and remove the need for the cast. Created attachment 395086 [details]
Patch for landing
Committed r259310: <https://trac.webkit.org/changeset/259310> All reviewed patches have been landed. Closing bug and clearing flags on attachment 395086 [details]. |