Add a new JSGlobalObject class and make Interpreter (and Context) use it So I have a partial patch. Not quite done because I ran into trouble with: JSGlobalContextRef JSGlobalContextCreate(JSClassRef globalObjectClass) which expects to be able to make a JSCallbackObject and pass that off as the global object. I might have to make JSGlobalObject an interface instead of a class. (That would also make things nicer for Window, which wants to inherit from DOMObject.)
Created attachment 16851 [details] a first stab (using templates, ick)
Created attachment 16852 [details] full patch (minus changelog), 0.5% on SunSpider
Created attachment 16853 [details] full patch, 0.5% speedup on SunSpider
Actually, turns out this is 0.8% faster.
Comment on attachment 16853 [details] full patch, 0.5% speedup on SunSpider r=me
(assuming tests pass)
Landed as r27022.