DescriptionAdapt source position recording and fix ScopeIterator.
The ScopeIterator uses recorded scope position - as detailed in scopes.h - and
source code positions it gets from the program counter to recreate the scope
chain. However, the rewriter did not yet record source positions for the
assignment it includes.
This CL adds source code positions for the assignment added by the rewriter.
The ScopeIterator now uses the ScopeType from the ScopeInfo to determine if the
code being debugged is eval, function or global code instead of looking up the
result symbol.
TEST=mjsunit/debug-stepout-scope.js
BUG=v8:1824, v8:1826
Patch Set 1 : Only adapt source positions for eval/global code. #Patch Set 2 : Statement positions for return sequences. #
Total comments: 6
Messages
Total messages: 4 (0 generated)
|