Adjust position recorded for call expressions.
authorvegorov@chromium.org <vegorov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 6 Jan 2012 10:26:17 +0000 (10:26 +0000)
committervegorov@chromium.org <vegorov@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 6 Jan 2012 10:26:17 +0000 (10:26 +0000)
commitc4d3a110a22975b633bb6893fb51eccb4a08d64d
tree523b2dbecd10cff253117fab036493529cd31a58
parent746ef9336237ab3c71854ef6b2ec1493cf5c3581
Adjust position recorded for call expressions.

For calls of the form ident(...) record position of the identifier as the position of the call. For other calls record positions of the opening parenthesis.

This guarantees that for expressions of the form function(){}() call position will not intersect with positions recorded for function literal which is used by the debugger for scope chain resolution.

R=kmillikin@chromium.org
BUG=http://crbug.com/109195
TEST=test/mjsunit/regress/regress-109195.js

Review URL: http://codereview.chromium.org/9125001

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10350 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/parser.cc
src/scopes.cc
test/mjsunit/regress/regress-109195.js [new file with mode: 0644]