Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1415)

Issue 1049703002: Make compilers agree on source position of thrown errors. (Closed)

Created:
5 years, 8 months ago by Michael Starzinger
Modified:
5 years, 8 months ago
Reviewers:
titzer, Toon Verwaest
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

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 Committed: https://crrev.com/10dd9ce8beef4e57bc0ad90cb336d8dfe7aedf64 Cr-Commit-Position: refs/heads/master@{#27775}

Patch Set 1 #

Patch Set 2 : Rebased and finished. #

Patch Set 3 : Adapt one more test expectation. #

Total comments: 7

Patch Set 4 : Fix one regression. #

Patch Set 5 : Fix another regression. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -28 lines) Patch
M src/assembler.cc View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M src/full-codegen.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/prettyprinter.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 4 chunks +6 lines, -15 lines 0 comments Download
A + test/message/regress/regress-3995.js View 1 1 chunk +3 lines, -3 lines 0 comments Download
A + test/message/regress/regress-3995.out View 1 chunk +6 lines, -4 lines 0 comments Download
M test/mjsunit/debug-backtrace.js View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (4 generated)
Michael Starzinger
Arv & Toon: Please advise. Ben: PTAL. https://codereview.chromium.org/1049703002/diff/40001/test/cctest/test-api.cc File test/cctest/test-api.cc (right): https://codereview.chromium.org/1049703002/diff/40001/test/cctest/test-api.cc#newcode9798 test/cctest/test-api.cc:9798: strcmp("TypeError: object ...
5 years, 8 months ago (2015-04-10 11:49:12 UTC) #3
Toon Verwaest
If you change positions, you will have to be careful that it doesn't affect blink ...
5 years, 8 months ago (2015-04-10 13:05:58 UTC) #4
Michael Starzinger
https://codereview.chromium.org/1049703002/diff/40001/test/mjsunit/harmony/debug-step-into-constructor.js File test/mjsunit/harmony/debug-step-into-constructor.js (right): https://codereview.chromium.org/1049703002/diff/40001/test/mjsunit/harmony/debug-step-into-constructor.js#newcode27 test/mjsunit/harmony/debug-step-into-constructor.js:27: constructor() { // 1. On 2015/04/10 11:49:12, Michael Starzinger ...
5 years, 8 months ago (2015-04-10 13:56:40 UTC) #6
Michael Starzinger
Thanks for the comments. PTAL. https://codereview.chromium.org/1049703002/diff/40001/test/cctest/test-api.cc File test/cctest/test-api.cc (right): https://codereview.chromium.org/1049703002/diff/40001/test/cctest/test-api.cc#newcode9798 test/cctest/test-api.cc:9798: strcmp("TypeError: object is not ...
5 years, 8 months ago (2015-04-10 14:08:27 UTC) #7
Toon Verwaest
CallPrinter looks good. Uniformity ftw
5 years, 8 months ago (2015-04-10 15:24:28 UTC) #8
titzer
lgtm
5 years, 8 months ago (2015-04-13 08:29:04 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1049703002/80001
5 years, 8 months ago (2015-04-13 08:33:50 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 8 months ago (2015-04-13 09:02:57 UTC) #12
commit-bot: I haz the power
5 years, 8 months ago (2015-04-13 09:03:04 UTC) #13
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/10dd9ce8beef4e57bc0ad90cb336d8dfe7aedf64
Cr-Commit-Position: refs/heads/master@{#27775}

Powered by Google App Engine
This is Rietveld 408576698