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

Issue 10834096: Added Dart_FunctionEnclosingClassOrLibrary. (Closed)

Created:
8 years, 4 months ago by rmacnak
Modified:
8 years, 4 months ago
Reviewers:
turnidge, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Added Dart_FunctionEnclosingClassOrLibrary. Committed: https://code.google.com/p/dart/source/detail?r=10096

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -0 lines) Patch
M runtime/include/dart_api.h View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 chunk +26 lines, -0 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 37 chunks +113 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
rmacnak
8 years, 4 months ago (2012-07-31 21:29:00 UTC) #1
turnidge
lgtm, with one small comment. https://chromiumcodereview.appspot.com/10834096/diff/1/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://chromiumcodereview.appspot.com/10834096/diff/1/runtime/include/dart_api.h#newcode2076 runtime/include/dart_api.h:2076: * library (if it ...
8 years, 4 months ago (2012-07-31 22:22:07 UTC) #2
rmacnak
Updated comment language. On 2012/07/31 22:22:07, turnidge wrote: > lgtm, with one small comment. > ...
8 years, 4 months ago (2012-07-31 22:27:41 UTC) #3
Ivan Posva
https://chromiumcodereview.appspot.com/10834096/diff/1/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): https://chromiumcodereview.appspot.com/10834096/diff/1/runtime/vm/dart_api_impl.cc#newcode2794 runtime/vm/dart_api_impl.cc:2794: } if (func.IsError()) { return function; }
8 years, 4 months ago (2012-07-31 23:38:58 UTC) #4
rmacnak
https://chromiumcodereview.appspot.com/10834096/diff/1/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): https://chromiumcodereview.appspot.com/10834096/diff/1/runtime/vm/dart_api_impl.cc#newcode2794 runtime/vm/dart_api_impl.cc:2794: } If I add that test with an ASSERT(false), ...
8 years, 4 months ago (2012-08-01 17:21:55 UTC) #5
turnidge
https://chromiumcodereview.appspot.com/10834096/diff/1/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): https://chromiumcodereview.appspot.com/10834096/diff/1/runtime/vm/dart_api_impl.cc#newcode2794 runtime/vm/dart_api_impl.cc:2794: } Checking for an error handle isn't required here. ...
8 years, 4 months ago (2012-08-01 17:59:42 UTC) #6
Ivan Posva
8 years, 4 months ago (2012-08-01 20:43:55 UTC) #7
https://chromiumcodereview.appspot.com/10834096/diff/1/runtime/vm/dart_api_im...
File runtime/vm/dart_api_impl.cc (right):

https://chromiumcodereview.appspot.com/10834096/diff/1/runtime/vm/dart_api_im...
runtime/vm/dart_api_impl.cc:2794: }
On 2012/08/01 17:59:42, turnidge wrote:
> Checking for an error handle isn't required here.  It is already done by the
> combination of UnwrapFunctionHandle + RETURN_TYPE_ERROR.

Thanks for the clarification. The difference between UnwrapTypeHandle and
UnwrapHandle is very subtle and could lead to a lot of missed checks. But that
discussion does not belong into this CL review.

Powered by Google App Engine
This is Rietveld 408576698