Bug 107306
| Summary: | Refactor isPowerOf2() and add getLSBSet() | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Saboff <msaboff> |
| Component: | JavaScriptCore | Assignee: | Michael Saboff <msaboff> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | Keywords: | InRadar |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
Michael Saboff
In preparation for JavaScript DFG enhancements, we need to refactor isPowerOf2() from runtime/PropertyMapHashTable.h to WTF. Also add a method to find the lowest set bit in a value to WTF.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Michael Saboff
This change is from <rdar://problem/12922052>.
Michael Saboff
Committed r140186: <http://trac.webkit.org/changeset/140186>