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

Issue 9104041: Added API Dart_PostCMessage for posting a Dart_CMessage structure (Closed)

Created:
8 years, 10 months ago by Søren Gjesse
Modified:
8 years, 10 months ago
Reviewers:
turnidge, siva
CC:
Mads Ager (google), reviews_dartlang.org
Visibility:
Public.

Description

Implemented encoding af a Dart_CMessage structure into a Dart message. Currently supported types are: Boolean Smi Double String Array The encoding uses the upper bits of the Dart_CObject type field for "marking" already written objects with their object id for generating backward references. After serialization these mark are removed. Added the API Dart_PostCMessage for encoding and posting a Dart_CMessage structure. Removed the API Dart_PostIntArray and used Dart_PostCMessage instead. R=asive@google.com,turnidge@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=3947

Patch Set 1 #

Total comments: 4

Patch Set 2 : Added new API Dart_PostCMessage #

Total comments: 6

Patch Set 3 : Addressed review comments from asiva@ #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+511 lines, -221 lines) Patch
M runtime/bin/dartutils.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 2 2 chunks +21 lines, -0 lines 0 comments Download
M runtime/bin/eventhandler_linux.cc View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M runtime/bin/eventhandler_macos.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M runtime/bin/eventhandler_win.cc View 1 8 chunks +8 lines, -7 lines 0 comments Download
M runtime/bin/socket_impl.dart View 1 1 chunk +1 line, -3 lines 0 comments Download
M runtime/include/dart_api.h View 1 2 2 chunks +13 lines, -26 lines 2 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 2 chunks +13 lines, -1 line 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 2 2 chunks +11 lines, -5 lines 0 comments Download
M runtime/vm/snapshot.h View 1 2 2 chunks +23 lines, -2 lines 0 comments Download
M runtime/vm/snapshot.cc View 1 2 2 chunks +132 lines, -8 lines 0 comments Download
M runtime/vm/snapshot_test.cc View 1 2 21 chunks +281 lines, -165 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Søren Gjesse
This is based on https://chromiumcodereview.appspot.com/9159066/.
8 years, 10 months ago (2012-01-31 16:35:44 UTC) #1
Søren Gjesse
Resending as I mistyped Sivas mail address.
8 years, 10 months ago (2012-01-31 20:26:16 UTC) #2
siva
https://chromiumcodereview.appspot.com/9104041/diff/1/runtime/include/dart_api.h File runtime/include/dart_api.h (right): https://chromiumcodereview.appspot.com/9104041/diff/1/runtime/include/dart_api.h#newcode1449 runtime/include/dart_api.h:1449: // TODO(sgjesse): Return the length of the encoded message. ...
8 years, 10 months ago (2012-02-01 01:01:33 UTC) #3
Søren Gjesse
Added the Dart_PostCMessage API and removed Dart_PostIntArray. PTAL http://codereview.chromium.org/9104041/diff/1/runtime/include/dart_api.h File runtime/include/dart_api.h (right): http://codereview.chromium.org/9104041/diff/1/runtime/include/dart_api.h#newcode1449 runtime/include/dart_api.h:1449: // ...
8 years, 10 months ago (2012-02-02 14:25:58 UTC) #4
Søren Gjesse
Updated the subject and description of this change to reflect it's changed content.
8 years, 10 months ago (2012-02-03 07:42:26 UTC) #5
siva
lgtm once issue regarding need for Dart_CMessage is resolved. http://codereview.chromium.org/9104041/diff/6002/runtime/bin/dartutils.cc File runtime/bin/dartutils.cc (right): http://codereview.chromium.org/9104041/diff/6002/runtime/bin/dartutils.cc#newcode241 runtime/bin/dartutils.cc:241: ...
8 years, 10 months ago (2012-02-04 02:51:17 UTC) #6
Søren Gjesse
http://codereview.chromium.org/9104041/diff/6002/runtime/bin/dartutils.cc File runtime/bin/dartutils.cc (right): http://codereview.chromium.org/9104041/diff/6002/runtime/bin/dartutils.cc#newcode241 runtime/bin/dartutils.cc:241: return Dart_PostCMessage(port_id, &message); On 2012/02/04 02:51:17, asiva wrote: > ...
8 years, 10 months ago (2012-02-06 15:35:49 UTC) #7
siva
8 years, 10 months ago (2012-02-06 18:55:12 UTC) #8
https://chromiumcodereview.appspot.com/9104041/diff/7002/runtime/include/dart...
File runtime/include/dart_api.h (right):

https://chromiumcodereview.appspot.com/9104041/diff/7002/runtime/include/dart...
runtime/include/dart_api.h:1429: * Dart_CObject structures rooted in message
should not be accessed,
rooted in 'message' or rooted in 'root', we could change the parameter name to
'message' if you want.

https://chromiumcodereview.appspot.com/9104041/diff/7002/runtime/include/dart...
runtime/include/dart_api.h:1430: * as the message generation will make temporaly
modification to the
'temporary modifications to the'

Powered by Google App Engine
This is Rietveld 408576698