Group lexical context variables for faster look up.
authoryangguo <yangguo@chromium.org>
Fri, 7 Aug 2015 22:22:36 +0000 (15:22 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 7 Aug 2015 22:22:50 +0000 (22:22 +0000)
commita45ed17bb6aca02e940f13bbf456d660cccc86ae
tree135159f97bdaca181497aa90d47d0550ef981f60
parent73ae23b5dc9bd816474688e74b9b768a09b9711f
Group lexical context variables for faster look up.

Currently, looking up a lexical context variable requires looking up
the variable name and then checking its mode. This can be a bottleneck
in Runtime_DeclareGlobals, even when no lexical context variables are
declared.

R=rossberg@chromium.org
BUG=crbug:517778
LOG=N

Review URL: https://codereview.chromium.org/1281883002

Cr-Commit-Position: refs/heads/master@{#30075}
src/contexts.cc
src/contexts.h
src/objects.h
src/runtime/runtime-scopes.cc
src/scopeinfo.cc
src/scopes.cc