harmony-scoping: Implement debugger support for script scope.
authordslomov <dslomov@chromium.org>
Mon, 17 Nov 2014 17:57:56 +0000 (09:57 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 17 Nov 2014 17:58:12 +0000 (17:58 +0000)
commitd7e3697ddc74ffcaab45a3985d176767c63264ae
tree7ef5f8a8cc477a868b53e4ca5044b25abbebbc7d
parente01f34b5cc0863c130252d52c651200272320ce7
harmony-scoping: Implement debugger support for script scope.

We add a new ScopeType, ScopeType.Script. The scope with
ScopeType.Script is always present in the scope chain (ScopeIterator
fakes it if neededi - i.e. if ScriptContext for a script has not been
allocated since that script has no lexical declarations).
ScriptScope reflects ScriptContextTable.

R=yurys@chromium.org,yangguo@chromium.org
BUG=v8:3690
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#25383}
src/mirror-debugger.js
src/runtime/runtime-debug.cc
test/cctest/test-debug.cc
test/mjsunit/debug-evaluate-locals-optimized-double.js
test/mjsunit/debug-evaluate-locals-optimized.js
test/mjsunit/debug-function-scopes.js
test/mjsunit/debug-scopes.js
test/mjsunit/es6/generators-debug-scopes.js
test/mjsunit/harmony/debug-blockscopes.js
test/mjsunit/harmony/debug-function-scopes.js