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

Issue 22694004: - Change access pattern to Native Arguments (make one call instead of two). (Closed)

Created:
7 years, 4 months ago by siva
Modified:
7 years, 4 months ago
Reviewers:
vsm
CC:
reviews_dartlang.org
Visibility:
Public.

Description

- Add a new toNative which accepts Dart_NativeArguments as a parameter. Currently it is implemented as two calls to the API to get at the native wrapper (will be made one call in another CL). - Use the new API call Dart_SetWeakHandleReturnValue to return a string from the cache directly without having to call Dart_NewHandle(...) R=vsm@google.com Committed: https://code.google.com/p/dart/source/detail?r=26148

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -2 lines) Patch
M tools/dom/scripts/systemnative.py View 1 2 3 5 chunks +23 lines, -2 lines 0 comments Download
M tools/dom/templates/html/dartium/cpp_callback_header.template View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
siva
7 years, 4 months ago (2013-08-10 00:13:14 UTC) #1
vsm
https://codereview.chromium.org/22694004/diff/3001/tools/dom/scripts/systemnative.py File tools/dom/scripts/systemnative.py (right): https://codereview.chromium.org/22694004/diff/3001/tools/dom/scripts/systemnative.py#newcode380 tools/dom/scripts/systemnative.py:380: ' static $RETURN_TYPE toNativeWithNullCheck(Dart_NativeArguments args, int index, Dart_Handle& exception)$TO_NATIVE_ARG_BODY\n', ...
7 years, 4 months ago (2013-08-12 20:42:07 UTC) #2
siva
https://codereview.chromium.org/22694004/diff/3001/tools/dom/scripts/systemnative.py File tools/dom/scripts/systemnative.py (right): https://codereview.chromium.org/22694004/diff/3001/tools/dom/scripts/systemnative.py#newcode380 tools/dom/scripts/systemnative.py:380: ' static $RETURN_TYPE toNativeWithNullCheck(Dart_NativeArguments args, int index, Dart_Handle& exception)$TO_NATIVE_ARG_BODY\n', ...
7 years, 4 months ago (2013-08-13 17:52:52 UTC) #3
vsm
lgtm
7 years, 4 months ago (2013-08-13 18:46:23 UTC) #4
siva
Found a bug in the generated setDartStringReturnValue.... code while running tests. Needed to account for ...
7 years, 4 months ago (2013-08-14 16:43:00 UTC) #5
vsm
lgtm
7 years, 4 months ago (2013-08-14 20:04:44 UTC) #6
siva
7 years, 4 months ago (2013-08-14 20:45:44 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 manually as r26148 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698