Do not look for the slot in the ScopeInfo's global range when it's not necessary.
authorishell <ishell@chromium.org>
Thu, 10 Sep 2015 12:54:53 +0000 (05:54 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 10 Sep 2015 12:55:03 +0000 (12:55 +0000)
commita1c1e2bd44ca4f5381c47b34be7648e94bf775d7
treeb63fbd63457e8d70a5f364abe26b5f70f464c6ef
parent6da51b4b660ea5fa594c3cb13a5ac032bbe1a1fb
Do not look for the slot in the ScopeInfo's global range when it's not necessary.

This fixes the Runtime_DeclareGlobals performance regression caused by a huge number of global var declarations mentioned in chromium:517778.

BUG=chromium:517778
LOG=N

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

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