DescriptionMake 'with' mark only variables occurring in the body as used.
Before, we conservatively marked every variable in a scope as used if the
scope contained 'with'. Instead, just mark the variables occurring in the
body of the with. This avoids marking 'arguments' as used whenever 'with'
occurs, which incurs an extra performance penalty (a use of arguments is
seen as an instruction to redirect all parameter accesses to the arguments
object).
Committed: http://code.google.com/p/v8/source/detail?r=6415
Patch Set 1 #
Messages
Total messages: 2 (0 generated)
|