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

Issue 1663613002: Dart_SetReturnValue now accepts and propagates error handles. (Closed)

Created:
4 years, 10 months ago by turnidge
Modified:
4 years, 10 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Dart_SetReturnValue now accepts and propagates error handles. The error propagation is delayed until the native function returns. This should simplify error handling in embedder code and avoid failing to propagate an error, which is a common failure. BUG= R=asiva@google.com Committed: https://github.com/dart-lang/sdk/commit/6ed1a587419927135629555f9e7f654656e1cc77

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : code review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+159 lines, -21 lines) Patch
M runtime/include/dart_api.h View 1 2 4 chunks +61 lines, -13 lines 0 comments Download
M runtime/vm/dart_api_impl.h View 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 chunks +10 lines, -4 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 2 chunks +50 lines, -4 lines 0 comments Download
M runtime/vm/native_arguments.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/native_entry.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/native_entry.cc View 1 2 3 chunks +25 lines, -0 lines 0 comments Download
M runtime/vm/raw_object.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
turnidge
4 years, 10 months ago (2016-02-03 00:18:14 UTC) #2
siva
LGTM with some comments. https://codereview.chromium.org/1663613002/diff/20001/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://codereview.chromium.org/1663613002/diff/20001/runtime/include/dart_api.h#newcode226 runtime/include/dart_api.h:226: * either return the normal ...
4 years, 10 months ago (2016-02-03 16:50:00 UTC) #3
turnidge
https://codereview.chromium.org/1663613002/diff/20001/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://codereview.chromium.org/1663613002/diff/20001/runtime/include/dart_api.h#newcode226 runtime/include/dart_api.h:226: * either return the normal return value or propagate ...
4 years, 10 months ago (2016-02-03 19:13:46 UTC) #4
turnidge
4 years, 10 months ago (2016-02-03 19:20:08 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
6ed1a587419927135629555f9e7f654656e1cc77 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698