Bug 172685
Summary: | [JSC] Move WebCore jsDynamicDowncast mechanism to JSC | ||
---|---|---|---|
Product: | WebKit | Reporter: | Yusuke Suzuki <ysuzuki> |
Component: | JavaScriptCore | Assignee: | Yusuke Suzuki <ysuzuki> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Yusuke Suzuki
We have bunch of adhoc functions, like, isSymbol, asSymbol, isJSMap etc.
We may easily miss the chance to use optimized casting.
For example,
jsDynamicCast<JSMap*>(vm, iterable)
If we do not have a fast overloading function (checking type() == JSMapType), it falls back to the usual slow inherits() code.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Yusuke Suzuki
We already did it.
*** This bug has been marked as a duplicate of bug 183449 ***