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

Issue 8528018: Start checking inputs to dart api functions. (Closed)

Created:
9 years, 1 month ago by turnidge
Modified:
9 years, 1 month ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Start using UNWRAP_NONNULL to check inputs to dart api functions. Improve a few error messages. Lots of testing.

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 7

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 2

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+582 lines, -41 lines) Patch
M runtime/include/dart_api.h View 1 2 3 4 5 3 chunks +10 lines, -3 lines 0 comments Download
M runtime/vm/dart_api_impl.h View 1 2 3 4 5 2 chunks +8 lines, -3 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 4 5 6 9 chunks +72 lines, -33 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 2 3 4 5 3 chunks +489 lines, -2 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
turnidge
9 years, 1 month ago (2011-11-11 01:13:31 UTC) #1
turnidge
9 years, 1 month ago (2011-11-15 21:17:48 UTC) #2
siva
library already loaded check needs some changes. http://codereview.chromium.org/8528018/diff/5001/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): http://codereview.chromium.org/8528018/diff/5001/runtime/vm/dart_api_impl.cc#newcode321 runtime/vm/dart_api_impl.cc:321: UNWRAP_NONNULL(source, source_str, ...
9 years, 1 month ago (2011-11-15 22:09:49 UTC) #3
turnidge
http://codereview.chromium.org/8528018/diff/5001/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): http://codereview.chromium.org/8528018/diff/5001/runtime/vm/dart_api_impl.cc#newcode321 runtime/vm/dart_api_impl.cc:321: UNWRAP_NONNULL(source, source_str, String); On 2011/11/15 22:09:49, asiva wrote: > ...
9 years, 1 month ago (2011-11-15 23:30:41 UTC) #4
turnidge
http://codereview.chromium.org/8528018/diff/5001/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): http://codereview.chromium.org/8528018/diff/5001/runtime/vm/dart_api_impl.cc#newcode447 runtime/vm/dart_api_impl.cc:447: } else if (library.name() != library.url()) { Updated. On ...
9 years, 1 month ago (2011-11-18 00:50:15 UTC) #5
siva
I think the changelist is missing object.h which has the change for NotLoaded
9 years, 1 month ago (2011-11-18 07:04:34 UTC) #6
turnidge
On 2011/11/18 07:04:34, asiva wrote: > I think the changelist is missing object.h which has ...
9 years, 1 month ago (2011-11-21 17:01:39 UTC) #7
siva
lgtm http://codereview.chromium.org/8528018/diff/21001/runtime/vm/object.h File runtime/vm/object.h (right): http://codereview.chromium.org/8528018/diff/21001/runtime/vm/object.h#newcode1535 runtime/vm/object.h:1535: bool NotLoaded() const { The name NotLoaded() sounds ...
9 years, 1 month ago (2011-11-21 18:24:59 UTC) #8
turnidge
9 years, 1 month ago (2011-11-21 18:52:16 UTC) #9
http://codereview.chromium.org/8528018/diff/21001/runtime/vm/object.h
File runtime/vm/object.h (right):

http://codereview.chromium.org/8528018/diff/21001/runtime/vm/object.h#newcode...
runtime/vm/object.h:1535: bool NotLoaded() const {
On 2011/11/21 18:24:59, asiva wrote:
> The name NotLoaded() sounds like a negation of Loaded() but it is not quite a
> pure negation.
> How about NoLoadsIssued() or LoadNotIssued() or NoLoadsAttemptedYet()

Going with LoadNotStarted for now.

Powered by Google App Engine
This is Rietveld 408576698