Debugger: use FrameInspector in ScopeIterator to find context.
authoryangguo <yangguo@chromium.org>
Thu, 16 Jul 2015 09:28:12 +0000 (02:28 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 16 Jul 2015 09:28:20 +0000 (09:28 +0000)
commit3a0ee39cbde6a9778cfc4e2a6a0a8ff68933ff38
tree00475ed92946c664ecf5bce0a6011a18c0ad0631
parentb76acef799bd07346918a78c5eb1d8ebf085975b
Debugger: use FrameInspector in ScopeIterator to find context.

In optimized code, it's not guaranteed that the current context
is stored in its frame slot.

R=bmeurer@chromium.org
BUG=v8:4309
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#29697}
src/debug.cc
src/runtime/runtime-debug.cc
test/mjsunit/es6/debug-blockscopes.js
test/mjsunit/regress/regress-4309-1.js [new file with mode: 0644]
test/mjsunit/regress/regress-4309-2.js [new file with mode: 0644]
test/mjsunit/regress/regress-4309-3.js [new file with mode: 0644]