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

Issue 9182001: OOB messages and general message refactor. (Closed)

Created:
8 years, 11 months ago by turnidge
Modified:
8 years, 11 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

OOB messages and general message refactor. (1) No longer give embedders direct access to inter-isolate messages. Instead, keep these messages in an internal queue and rely on the embedder only to provide notifications. This simplifies the api in numerous ways: - post message callback drops parameters and becomes message notify callback. - close port callback goes away - Dart_Message type goes away - Dart_HandleMessage gets a simpler signature Updated the custom_isolate_test to show what use of the new apis looks like. (2) Begin to add support for out-of-band (OOB) messages. These messages supercede regular messages in the queue. We will attempt to deliver these messages even while code is running, by using the isolate interrupt mechanism. These messages are not user-visible. They will be used by the runtime internally to implement things like reflection. Renamed PortMessage to Message. Refactored message sending apis in PortMap and Isolate. Modified MessageQueue to be aware of multiple priorities. Modify Dart_HandleMessage to process multiple OOB messages

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 23

Patch Set 3 : '' #

Total comments: 19

Patch Set 4 : '' #

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -490 lines) Patch
M runtime/include/dart_api.h View 1 2 3 4 1 chunk +13 lines, -52 lines 0 comments Download
M runtime/lib/isolate.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M runtime/vm/code_generator.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/custom_isolate_test.cc View 1 2 3 4 5 chunks +85 lines, -151 lines 0 comments Download
M runtime/vm/dart_api_impl.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 4 6 chunks +37 lines, -28 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 2 3 4 1 chunk +3 lines, -13 lines 0 comments Download
M runtime/vm/isolate.h View 1 2 3 4 4 chunks +14 lines, -16 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 4 4 chunks +42 lines, -27 lines 0 comments Download
M runtime/vm/message_queue.h View 1 2 3 4 1 chunk +37 lines, -13 lines 0 comments Download
M runtime/vm/message_queue.cc View 1 2 3 4 1 chunk +81 lines, -47 lines 0 comments Download
M runtime/vm/message_queue_test.cc View 1 2 3 4 11 chunks +81 lines, -28 lines 0 comments Download
M runtime/vm/port.h View 1 2 3 4 2 chunks +3 lines, -5 lines 0 comments Download
M runtime/vm/port.cc View 1 2 3 4 4 chunks +10 lines, -35 lines 0 comments Download
M runtime/vm/port_test.cc View 1 2 3 4 8 chunks +34 lines, -71 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
turnidge
8 years, 11 months ago (2012-01-11 22:25:45 UTC) #1
Anton Muhin
Todd, I won't be able to prepare today a CL to migrate to new API, ...
8 years, 11 months ago (2012-01-12 12:58:16 UTC) #2
turnidge
Hi Anton, Thanks for the quick review. Take the time you need to code up ...
8 years, 11 months ago (2012-01-12 19:01:55 UTC) #3
Anton Muhin
LGTM. Please, let me know when this CL is ready to submit, and I'll adjust ...
8 years, 11 months ago (2012-01-13 14:26:53 UTC) #4
Ivan Posva
http://codereview.chromium.org/9182001/diff/13004/runtime/include/dart_api.h File runtime/include/dart_api.h (left): http://codereview.chromium.org/9182001/diff/13004/runtime/include/dart_api.h#oldcode556 runtime/include/dart_api.h:556: * \return True if the message was posted. Why ...
8 years, 11 months ago (2012-01-23 22:00:43 UTC) #5
turnidge
http://codereview.chromium.org/9182001/diff/13004/runtime/include/dart_api.h File runtime/include/dart_api.h (left): http://codereview.chromium.org/9182001/diff/13004/runtime/include/dart_api.h#oldcode556 runtime/include/dart_api.h:556: * \return True if the message was posted. On ...
8 years, 11 months ago (2012-01-23 22:32:52 UTC) #6
Ivan Posva
8 years, 11 months ago (2012-01-23 22:35:55 UTC) #7
LGTM -ip

Powered by Google App Engine
This is Rietveld 408576698