[Webkit-unassigned] [Bug 172511] New: [WebIDL] Avoid unnecessary exception checks after type conversions

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 23 11:07:02 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=172511

            Bug ID: 172511
           Summary: [WebIDL] Avoid unnecessary exception checks after type
                    conversions
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Bindings
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sam at webkit.org
                CC: cdumez at apple.com

We currently assume all type conversion (via JSValueToNative) can throw exceptions. This is not strictly true however. A few types: bool, any and date (that may not be the exhaustive list, but its close) never throw, and we should consider optimizing out the calls to check for exception after their conversions. We could either do this via hardcoding them in the code generator, or adding constexprs to the Converters that indicate whether they throw, and checking that before checking for the exception, letting the compiler statically remove the check it would not otherwise be able to eliminate.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170523/5a5ffa47/attachment.html>


More information about the webkit-unassigned mailing list