WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
134077
[ftlopt] StructureSet::onlyStructure() should return nullptr if it's not a singleton (instead of asserting)
https://bugs.webkit.org/show_bug.cgi?id=134077
Summary
[ftlopt] StructureSet::onlyStructure() should return nullptr if it's not a si...
Filip Pizlo
Reported
2014-06-19 14:43:17 PDT
Patch forthcoming.
Attachments
the patch
(1.64 KB, patch)
2014-06-19 14:44 PDT
,
Filip Pizlo
sam
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Filip Pizlo
Comment 1
2014-06-19 14:44:29 PDT
Created
attachment 233385
[details]
the patch
Ahmad Saleem
Comment 2
2024-02-25 04:59:34 PST
This function is following:
https://searchfox.org/wubkat/rev/dc6a01c9fd207e1b1394a1cb8261b410a1909cf6/Source/JavaScriptCore/bytecode/StructureSet.h#52
Structure* onlyStructure() const { return onlyEntry(); } While onlyEntry is: // Returns the only entry if the array has exactly one entry. T onlyEntry() const { if (isThin()) return singleEntry(); OutOfLineList* list = this->list(); if (list->m_length != 1) return T(); return list->list()[0]; } __ Which is similar to proposed patch, so I think it is fixed. Marking this as 'RESOLVED CONFIGURATION CHANGED' and CCing - Alexey and Yusuke.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug