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

Issue 2350633003: Add Dart_GetStickyError (Closed)

Created:
4 years, 3 months ago by Cutch
Modified:
4 years, 3 months ago
Reviewers:
turnidge, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add Dart_GetStickyError - [x] Add Dart_GetStickyError. - [x] Change Dart_SetStickyError to allow for null and also not set the pause on exit bit. BUG= R=turnidge@google.com Committed: https://github.com/dart-lang/sdk/commit/632c76942cffeba06a381e8f973d61e7ca3aba1a

Patch Set 1 #

Patch Set 2 : turnidge review #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -7 lines) Patch
M runtime/include/dart_api.h View 1 2 chunks +11 lines, -2 lines 1 comment Download
M runtime/vm/dart_api_impl.cc View 1 2 chunks +16 lines, -3 lines 3 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/isolate.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
Cutch
4 years, 3 months ago (2016-09-19 20:24:57 UTC) #3
turnidge
lgtm
4 years, 3 months ago (2016-09-19 20:29:46 UTC) #4
Cutch
Committed patchset #2 (id:20001) manually as 632c76942cffeba06a381e8f973d61e7ca3aba1a (presubmit successful).
4 years, 3 months ago (2016-09-19 20:31:20 UTC) #6
siva
DBC https://codereview.chromium.org/2350633003/diff/20001/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://codereview.chromium.org/2350633003/diff/20001/runtime/include/dart_api.h#newcode1202 runtime/include/dart_api.h:1202: DART_EXPORT Dart_Handle Dart_GetStickyError(); Do we need both Dart_HasStickyError ...
4 years, 3 months ago (2016-09-22 19:43:55 UTC) #8
Cutch
4 years, 3 months ago (2016-09-22 19:52:14 UTC) #9
Message was sent while issue was closed.
On 2016/09/22 19:43:55, siva wrote:
> DBC
> 
>
https://codereview.chromium.org/2350633003/diff/20001/runtime/include/dart_api.h
> File runtime/include/dart_api.h (right):
> 
>
https://codereview.chromium.org/2350633003/diff/20001/runtime/include/dart_ap...
> runtime/include/dart_api.h:1202: DART_EXPORT Dart_Handle
Dart_GetStickyError();
> Do we need both Dart_HasStickyError and Dart_GetStickyError?
> Can't we infer from a non null return on Dart_GetStickyError that the isolate
> has a sticky error?
> 
>
https://codereview.chromium.org/2350633003/diff/20001/runtime/vm/dart_api_imp...
> File runtime/vm/dart_api_impl.cc (right):
> 
>
https://codereview.chromium.org/2350633003/diff/20001/runtime/vm/dart_api_imp...
> runtime/vm/dart_api_impl.cc:1492: CHECK_ISOLATE(I);
> Other places we use the pattern
>   Thread* T = Thread::Current();
>   Isolate* I = T->isolate();
>   CHECK_ISOLATE(I);
>   .....
> Then T is available to use inside the function instead of Thread::Current();
> 
>
https://codereview.chromium.org/2350633003/diff/20001/runtime/vm/dart_api_imp...
> runtime/vm/dart_api_impl.cc:1494: if (I->sticky_error() != Object::null()) {
> if (I->sticky_error() != Error::null()) {
> 
>
https://codereview.chromium.org/2350633003/diff/20001/runtime/vm/dart_api_imp...
> runtime/vm/dart_api_impl.cc:1496: Api::NewHandle(Thread::Current(),
> I->sticky_error());
> NewHandle(T, ...);

Addressed in https://codereview.chromium.org/2359283002

Powered by Google App Engine
This is Rietveld 408576698