[Webkit-unassigned] [Bug 93971] [V8] Refactor away IsolatedWorld

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 15 00:58:26 PDT 2012


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





--- Comment #5 from Dan Carney <dcarney at google.com>  2012-08-15 00:58:56 PST ---
(From update of attachment 158389)
View in context: https://bugs.webkit.org/attachment.cgi?id=158389&action=review

>> Source/WebCore/bindings/v8/DOMWrapperWorld.h:45
>> +    static PassRefPtr<DOMWrapperWorld> create(int worldId = mainWorldId) { return adoptRef(new DOMWrapperWorld(worldId)); }
> 
> Can you make createMainWorld be a separate function?  It's a bit too tempting to call create() and duplicate the main world.

This is transitional.  There are 2 places in the code where DOMWrapperWorld() was being called, as opposed to IsolatedWorld().  This logic replicates that.  I think those are only called in tests, but I'm not certain.

>> Source/WebCore/bindings/v8/DOMWrapperWorld.h:49
>> +            isolatedWorldCount--;
> 
> I would just make this unconditional and have a domWrapperWorldCount.  There's always going to be a main world, so we know how to interpet the value.

Same issue as above.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list