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

Issue 11413101: Added support for isolate unhandled exceptions. (Closed)

Created:
8 years, 1 month ago by Tom Ball
Modified:
8 years ago
Reviewers:
siva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Added support for isolate unhandled exceptions. BUG= Committed: https://code.google.com/p/dart/source/detail?r=15352

Patch Set 1 #

Total comments: 8

Patch Set 2 : Refactored isolate exception handling, updated docs for API changes. #

Patch Set 3 : Removed spawn callback support, leaving just embedder API. #

Patch Set 4 : Fixed test status #

Total comments: 9

Patch Set 5 : Incorporated code review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -45 lines) Patch
M runtime/bin/gen_snapshot.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/main.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/run_vm_tests.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/include/dart_api.h View 1 2 2 chunks +22 lines, -3 lines 0 comments Download
M runtime/lib/isolate.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M runtime/tests/vm/vm.status View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M runtime/vm/dart.h View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M runtime/vm/dart.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 1 chunk +6 lines, -4 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 2 3 4 2 chunks +33 lines, -4 lines 0 comments Download
M runtime/vm/exceptions.cc View 1 2 3 4 2 chunks +14 lines, -7 lines 0 comments Download
M runtime/vm/isolate.h View 2 chunks +9 lines, -0 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 4 2 chunks +12 lines, -2 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 2 2 chunks +12 lines, -12 lines 0 comments Download
M tests/isolate/isolate.status View 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Tom Ball
This is a new CL, but is a continuation of the one you've been reviewing. ...
8 years, 1 month ago (2012-11-20 21:48:55 UTC) #1
siva
https://codereview.chromium.org/11413101/diff/1/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/11413101/diff/1/runtime/vm/isolate.cc#newcode131 runtime/vm/isolate.cc:131: } I presume a return of success == true ...
8 years, 1 month ago (2012-11-21 00:45:04 UTC) #2
Tom Ball
https://codereview.chromium.org/11413101/diff/1/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/11413101/diff/1/runtime/vm/isolate.cc#newcode131 runtime/vm/isolate.cc:131: } On 2012/11/21 00:45:04, siva wrote: > I presume ...
8 years, 1 month ago (2012-11-21 05:22:37 UTC) #3
Tom Ball
PTAL: the isolate spawn API callbacks are removed, leaving just the embedder API for unhandled ...
8 years ago (2012-11-26 21:45:11 UTC) #4
siva
LGTM with some comments. https://codereview.chromium.org/11413101/diff/9001/runtime/vm/dart_api_impl_test.cc File runtime/vm/dart_api_impl_test.cc (right): https://codereview.chromium.org/11413101/diff/9001/runtime/vm/dart_api_impl_test.cc#newcode6288 runtime/vm/dart_api_impl_test.cc:6288: ASSERT(strcmp(last_exception, "UnhandledException") == 0); I ...
8 years ago (2012-11-26 23:03:01 UTC) #5
Tom Ball
8 years ago (2012-11-26 23:14:50 UTC) #6
https://codereview.chromium.org/11413101/diff/9001/runtime/vm/dart_api_impl_t...
File runtime/vm/dart_api_impl_test.cc (right):

https://codereview.chromium.org/11413101/diff/9001/runtime/vm/dart_api_impl_t...
runtime/vm/dart_api_impl_test.cc:6288: ASSERT(strcmp(last_exception,
"UnhandledException") == 0);
On 2012/11/26 23:03:02, siva wrote:
> I think this should be :
> EXPECT_NOTNULL(last_exception);
> EXPECT_STREQ("UnhandledException", last_exception);

Done.

https://codereview.chromium.org/11413101/diff/9001/runtime/vm/dart_api_impl_t...
runtime/vm/dart_api_impl_test.cc:6293: ASSERT(strcmp(last_exception,
"UnhandledException") == 0);
On 2012/11/26 23:03:02, siva wrote:
> Ditto comment.

Done.

https://codereview.chromium.org/11413101/diff/9001/runtime/vm/dart_api_impl_t...
runtime/vm/dart_api_impl_test.cc:6296: ASSERT(last_exception == NULL);
On 2012/11/26 23:03:02, siva wrote:
> This should be :
> EXPECT_EQ(NULL, last_exception);

Done.

https://codereview.chromium.org/11413101/diff/9001/runtime/vm/exceptions.cc
File runtime/vm/exceptions.cc (right):

https://codereview.chromium.org/11413101/diff/9001/runtime/vm/exceptions.cc#n...
runtime/vm/exceptions.cc:178: OS::PrintErr("Exiting the process\n");
On 2012/11/26 23:03:02, siva wrote:
> The comment "Exiting the process" is not valid anymore
> maybe it should be "Shutting down the isolate".

Done.

https://codereview.chromium.org/11413101/diff/9001/runtime/vm/exceptions.cc#n...
runtime/vm/exceptions.cc:178: OS::PrintErr("Exiting the process\n");
On 2012/11/26 23:03:02, siva wrote:
> The comment "Exiting the process" is not valid anymore
> maybe it should be "Shutting down the isolate".

Done.

Powered by Google App Engine
This is Rietveld 408576698