The globalData getter in JSGlobalObject returns a pointer, while the one in CallFrame.h returns a reference. There was a FIXME in CallFrame.h suggesting to unify them, so the attached patch does that. I wasn't completely sure of which way to go with this, but after some googling I decided to move the getter in JSGlobalObject to return a reference, since it seems it's the preferred thing to do in the public API of classes when there's no need to, say, return NULL in special cases. There's no change in the tests or significant change in SunSpider.
Created attachment 71257 [details] globaldataref.diff
Attachment 71257 [details] did not build on qt: Build output: http://queues.webkit.org/results/4545007
Created attachment 71262 [details] globaldataref.diff Try to fix WebKit2 build.
Attachment 71257 [details] did not build on mac: Build output: http://queues.webkit.org/results/4514008
Created attachment 71265 [details] globaldataref.diff And objc bindings.
Attachment 71262 [details] did not build on mac: Build output: http://queues.webkit.org/results/4597007
Attachment 71265 [details] did not build on mac: Build output: http://queues.webkit.org/results/4576011
Created attachment 71280 [details] globaldata.diff Fix WebKit/mac
Comment on attachment 71280 [details] globaldata.diff Landed as r70406.
Closing bug.