RESOLVED FIXED128024
Don't need a JSNameScope for the callee name just for the debugger
https://bugs.webkit.org/show_bug.cgi?id=128024
Summary Don't need a JSNameScope for the callee name just for the debugger
Mark Lam
Reported 2014-01-31 15:02:04 PST
Currently, in the bytecode for a function, we push a JSNamedScope for the name of the function when a debugger is attached. The name scope for the function name is only needed for evals which can redefined the name to resolve to something else, and can later delete the redefined name which should revert the resolution of the name to the original function. The debugger does not add the need for this functionality. Hence, we can remove the presence of the debugger as a criteria for pushing the JSNameScope.
Attachments
the patch. (2.41 KB, patch)
2014-01-31 15:05 PST, Mark Lam
ggaren: review+
Mark Lam
Comment 1 2014-01-31 15:05:44 PST
Created attachment 222859 [details] the patch.
Geoffrey Garen
Comment 2 2014-01-31 15:08:56 PST
Comment on attachment 222859 [details] the patch. View in context: https://bugs.webkit.org/attachment.cgi?id=222859&action=review r=me > Source/JavaScriptCore/ChangeLog:10 > + the function name is only needed for evals which can redefined the name "redefine" > Source/JavaScriptCore/ChangeLog:14 > + The debugger does not add the need for this functionality. Hence, we can > + remove the presence of the debugger as a criteria for pushing the The reason the debugger doesn't need this feature is that it declares all new vars in a temporary, nested scope.
Mark Lam
Comment 3 2014-01-31 15:14:07 PST
Note You need to log in before you can comment on or make changes to this bug.