Closed Bug 1359093 Opened 4 years ago Closed 4 years ago
Inline the To
Window Proxy If Window is-global check
Proxy::get and Proxy::set call ToWindowProxyIfWindow. This patch adds the fast path we have for IsWindow also to ToWindowProxyIfWindow, so we can inline the non-global case. Having that call is still sad because JS code should never pass a Window directly, but at least the overhead is much smaller now.
Attachment #8861000 - Flags: review?(evilpies)
Attachment #8861000 - Flags: review?(evilpies) → review+
Pushed by email@example.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/3e76637092bf Inline the ToWindowProxyIfWindow is-global check. r=evilpie
You need to log in before you can comment on or make changes to this bug.