Bug 110874 - [V8] Add possibility to generate separate bindings for main world, isolated worlds and workers
Summary: [V8] Add possibility to generate separate bindings for main world, isolated w...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Marja Hölttä
URL:
Keywords:
Depends on: 110875 111417 111724 112165 112430
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-26 05:25 PST by Marja Hölttä
Modified: 2014-12-16 00:48 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marja Hölttä 2013-02-26 05:25:29 PST
The current bindings use the same callback code in main world, isolated world and (potentially) workers. When called, the callback needs to figure out in which of these 3 types of context we are, and that's a performance hit. See DomDataStore::current() which contains the logic for figuring this out.

We'd like to add a possibility to selectively generate different callback functions for these three cases, so that we know, call-time, in which of the 3 cases we are in, and we don't need to execute any code for figuring it out.
Comment 1 Brian Burg 2014-12-16 00:48:19 PST
Closing some V8-related work items.