Make compilers agree on source position of thrown errors.
authormstarzinger <mstarzinger@chromium.org>
Mon, 13 Apr 2015 09:02:51 +0000 (02:02 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 13 Apr 2015 09:02:48 +0000 (09:02 +0000)
commit10dd9ce8beef4e57bc0ad90cb336d8dfe7aedf64
tree2fbf8900dbef5c2ad324e66c3946a343abff08f2
parente21f9ab42b90bb125380a62f2f54071a705bdf92
Make compilers agree on source position of thrown errors.

This makes the compilers agree on the source position of a message
generated by "throw new Error()", it points to the beginning of the
throw directive.

R=titzer@chromium.org
TEST=message/regress/regress-3995
BUG=v8:3995
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#27775}
src/assembler.cc
src/full-codegen.cc
src/prettyprinter.cc
test/cctest/test-api.cc
test/message/regress/regress-3995.js [new file with mode: 0644]
test/message/regress/regress-3995.out [new file with mode: 0644]
test/mjsunit/debug-backtrace.js