RESOLVED INVALID 85200
Change JSObject::allowsAccessFrom to take a lexical global object, not a call frame
https://bugs.webkit.org/show_bug.cgi?id=85200
Summary Change JSObject::allowsAccessFrom to take a lexical global object, not a call...
Andy Wingo
Reported 2012-04-30 08:21:12 PDT
The patch to be attached exorcises ExecState* from one small part of JSObject.h. Comments welcome.
Attachments
Patch (27.76 KB, patch)
2012-04-30 09:03 PDT, Andy Wingo
no flags
Andy Wingo
Comment 1 2012-04-30 09:03:15 PDT
Kentaro Hara
Comment 2 2012-04-30 09:10:24 PDT
Comment on attachment 139458 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=139458&action=review > Source/JavaScriptCore/ChangeLog:7 > + Would you explain in ChangeLog why you want to replace ExecState with the lexical global object? > Source/JavaScriptCore/ChangeLog:10 > + (JSC::JSGlobalObject::allowsAccessFrom): Exorcise EvalState* from Nit: EvalState* => ExecState*
Andy Wingo
Comment 3 2012-04-30 09:31:31 PDT
(In reply to comment #2) > (From update of attachment 139458 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=139458&action=review > > > Source/JavaScriptCore/ChangeLog:7 > > + > > Would you explain in ChangeLog why you want to replace ExecState with the lexical global object? Sure. For some context, https://lists.webkit.org/pipermail/squirrelfish-dev/2012-March/000208.html. > > Source/JavaScriptCore/ChangeLog:10 > > + (JSC::JSGlobalObject::allowsAccessFrom): Exorcise EvalState* from > > Nit: EvalState* => ExecState* Good catch, thanks.
Andy Wingo
Comment 4 2012-05-02 03:53:34 PDT
You know, I don't think this patch is a good one in the end, because it's too easy to confuse the arguments. Although this function has no business being given a pointer to the call frame, the current signature does have the advantage that it is hard to misuse. So, closing this one as INVALID.
Kentaro Hara
Comment 5 2012-05-02 06:53:56 PDT
Comment on attachment 139458 [details] Patch Clearing r?
Note You need to log in before you can comment on or make changes to this bug.