DescriptionStore NonLocals in variables_
Now that ordered_variables_ is used to find non-dynamic variables, and NonLocals are always stored in the scope that introduces them, we can rely on variables_ to also cache non-locals. This has 2 advantages:
1) we don't need DynamicScopePart anymore, reducing all scopes by a pointer
2) upon second lookup of a non-local we don't need to walk the entire chain anymore. The cached value will immediately be found.
BUG=v8:5209
Committed: https://crrev.com/3a9c7b55af27105c482e9449911b010f46830cb4
Cr-Commit-Position: refs/heads/master@{#38855}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Separate printing of dynamics and locals #Patch Set 3 : rebase #
Messages
Total messages: 12 (4 generated)
|