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

Issue 8050: Changed the message reporting for try { ... } finally { ... } statements to... (Closed)

Created:
12 years, 2 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Changed the message reporting for try { ... } finally { ... } statements to report the exception when they happen in the try block and not as previously when re-thrown after execution of the finally block. There is no longer any message generated by re-throw. Added test cases for various combinations of try/catch/finally with throw in different places. Added a regression directory to the messages tests which is processed by the test runner. Added regression tests for the specific bugs fixed. Runs all the test suites. BUG=73 BUG=75 Committed: http://code.google.com/p/v8/source/detail?r=565

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+558 lines, -89 lines) Patch
M src/messages.cc View 1 chunk +18 lines, -7 lines 0 comments Download
M src/top.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/top.cc View 1 2 4 chunks +19 lines, -17 lines 0 comments Download
D test/message/bugs/try-finally-linenum.js View 1 1 chunk +0 lines, -32 lines 0 comments Download
D test/message/bugs/try-finally-linenum.out View 1 1 chunk +0 lines, -30 lines 0 comments Download
A test/message/regress/regress-73.js View 1 chunk +33 lines, -0 lines 0 comments Download
A test/message/regress/regress-73.out View 1 chunk +30 lines, -0 lines 0 comments Download
A + test/message/regress/regress-75.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + test/message/regress/regress-75.out View 1 chunk +1 line, -1 line 0 comments Download
M test/message/testcfg.py View 1 1 chunk +2 lines, -1 line 0 comments Download
A test/message/try-catch-finally-no-message.js View 1 chunk +51 lines, -0 lines 0 comments Download
A test/message/try-catch-finally-no-message.out View 1 chunk +26 lines, -0 lines 0 comments Download
A test/message/try-catch-finally-throw-in-catch.js View 1 chunk +34 lines, -0 lines 0 comments Download
A test/message/try-catch-finally-throw-in-catch.out View 1 chunk +30 lines, -0 lines 0 comments Download
A test/message/try-catch-finally-throw-in-catch-and-finally.js View 1 chunk +34 lines, -0 lines 0 comments Download
A test/message/try-catch-finally-throw-in-catch-and-finally.out View 1 chunk +30 lines, -0 lines 0 comments Download
A test/message/try-catch-finally-throw-in-finally.js View 1 chunk +34 lines, -0 lines 0 comments Download
A test/message/try-catch-finally-throw-in-finally.out View 1 chunk +30 lines, -0 lines 0 comments Download
A test/message/try-finally-throw-in-finally.js View 1 chunk +32 lines, -0 lines 0 comments Download
A test/message/try-finally-throw-in-finally.out View 1 chunk +30 lines, -0 lines 0 comments Download
A test/message/try-finally-throw-in-try.js View 1 chunk +32 lines, -0 lines 0 comments Download
A test/message/try-finally-throw-in-try.out View 1 chunk +30 lines, -0 lines 0 comments Download
A test/message/try-finally-throw-in-try-and-finally.js View 1 chunk +32 lines, -0 lines 0 comments Download
A test/message/try-finally-throw-in-try-and-finally.out View 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Søren Thygesen Gjesse
Both mozilla and escft tests run. There is one thing I don't like, and that ...
12 years, 2 months ago (2008-10-22 08:07:05 UTC) #1
Christian Plesner Hansen
As discussed, we should probably just disable the assertion that crashes when external_caught_exception_ is already ...
12 years, 2 months ago (2008-10-22 09:18:59 UTC) #2
Søren Thygesen Gjesse
New change list uploaded which no longer resets the externally caught flag to circumvent an ...
12 years, 2 months ago (2008-10-23 07:29:40 UTC) #3
Christian Plesner Hansen
Lgtm http://codereview.chromium.org/8050/diff/21/237 File src/top.cc (right): http://codereview.chromium.org/8050/diff/21/237#newcode792 Line 792: if (is_caught_externally) { Maybe this should be ...
12 years, 2 months ago (2008-10-23 07:53:43 UTC) #4
Søren Thygesen Gjesse
Refactored the flag is_rethrow out of DoThrow as very little was done on rethrow. Rethrow ...
12 years, 2 months ago (2008-10-23 08:32:45 UTC) #5
Christian Plesner Hansen
12 years, 2 months ago (2008-10-23 08:35:03 UTC) #6
Sticks the value!

Powered by Google App Engine
This is Rietveld 408576698