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

Issue 243973002: - Add a minimal implementation of Capability. (Closed)

Created:
6 years, 8 months ago by Ivan Posva
Modified:
6 years, 8 months ago
Reviewers:
turnidge, Cutch, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Anders Johnsen, Søren Gjesse
Visibility:
Public.

Description

- Add a minimal implementation of Capability. - Make RawReceivePort and SendPort VM internal objects. - Rationalize the creation of ports and their handling within the VM. R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=35325

Patch Set 1 #

Patch Set 2 : #

Total comments: 43

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+518 lines, -388 lines) Patch
M runtime/bin/dartutils.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/bin/dartutils.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/bin/eventhandler.cc View 1 2 3 1 chunk +3 lines, -7 lines 0 comments Download
M runtime/bin/io_service.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M runtime/include/dart_api.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M runtime/lib/isolate.cc View 1 2 3 5 chunks +42 lines, -53 lines 0 comments Download
M runtime/lib/isolate_patch.dart View 1 2 3 4 chunks +40 lines, -57 lines 0 comments Download
M runtime/platform/assert.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/custom_isolate_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 2 3 2 chunks +15 lines, -25 lines 0 comments Download
M runtime/vm/dart_api_message.cc View 1 2 3 2 chunks +7 lines, -14 lines 0 comments Download
M runtime/vm/dart_entry.h View 1 2 3 1 chunk +3 lines, -15 lines 0 comments Download
M runtime/vm/dart_entry.cc View 1 2 3 6 chunks +6 lines, -67 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 2 chunks +8 lines, -8 lines 0 comments Download
M runtime/vm/json_stream.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/json_stream.cc View 1 2 3 1 chunk +2 lines, -11 lines 0 comments Download
M runtime/vm/message.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/message_handler.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/vm/message_handler_test.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 7 chunks +119 lines, -14 lines 0 comments Download
M runtime/vm/object_store.h View 1 2 3 2 chunks +5 lines, -13 lines 0 comments Download
M runtime/vm/object_store.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/port_test.cc View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M runtime/vm/random.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/raw_object.h View 1 2 3 3 chunks +36 lines, -6 lines 0 comments Download
M runtime/vm/raw_object.cc View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 1 2 3 1 chunk +66 lines, -0 lines 0 comments Download
M runtime/vm/service.cc View 1 2 3 9 chunks +19 lines, -25 lines 0 comments Download
M runtime/vm/service_test.cc View 1 2 3 17 chunks +17 lines, -34 lines 0 comments Download
M runtime/vm/snapshot.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/vm/snapshot.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/snapshot_test.cc View 1 2 3 2 chunks +14 lines, -17 lines 0 comments Download
M runtime/vm/symbols.h View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Ivan Posva
https://codereview.chromium.org/243973002/diff/20001/runtime/lib/isolate_patch.dart File runtime/lib/isolate_patch.dart (right): https://codereview.chromium.org/243973002/diff/20001/runtime/lib/isolate_patch.dart#newcode15 runtime/lib/isolate_patch.dart:15: /* patch */ factory Capability() { This will be ...
6 years, 8 months ago (2014-04-22 17:43:00 UTC) #1
turnidge
DBC -turnidge https://codereview.chromium.org/243973002/diff/20001/runtime/lib/isolate.cc File runtime/lib/isolate.cc (right): https://codereview.chromium.org/243973002/diff/20001/runtime/lib/isolate.cc#newcode33 runtime/lib/isolate.cc:33: return Capability::New(id); Do we worry about collisions? ...
6 years, 8 months ago (2014-04-22 18:40:45 UTC) #2
Cutch
https://codereview.chromium.org/243973002/diff/20001/runtime/vm/isolate.cc File runtime/vm/isolate.cc (right): https://codereview.chromium.org/243973002/diff/20001/runtime/vm/isolate.cc#newcode125 runtime/vm/isolate.cc:125: // the receive port is closed, we drop the ...
6 years, 8 months ago (2014-04-22 20:15:22 UTC) #3
Ivan Posva
https://codereview.chromium.org/243973002/diff/20001/runtime/lib/isolate.cc File runtime/lib/isolate.cc (right): https://codereview.chromium.org/243973002/diff/20001/runtime/lib/isolate.cc#newcode33 runtime/lib/isolate.cc:33: return Capability::New(id); On 2014/04/22 18:40:45, turnidge wrote: > Do ...
6 years, 8 months ago (2014-04-22 21:28:29 UTC) #4
siva
LGTM with some comments. https://codereview.chromium.org/243973002/diff/20001/runtime/lib/isolate_patch.dart File runtime/lib/isolate_patch.dart (right): https://codereview.chromium.org/243973002/diff/20001/runtime/lib/isolate_patch.dart#newcode93 runtime/lib/isolate_patch.dart:93: _handlerMap.remove(this._closeInternal()); I find _closeInternal returning ...
6 years, 8 months ago (2014-04-23 00:20:30 UTC) #5
Ivan Posva
Thanks! -Ivan https://codereview.chromium.org/243973002/diff/20001/runtime/lib/isolate_patch.dart File runtime/lib/isolate_patch.dart (right): https://codereview.chromium.org/243973002/diff/20001/runtime/lib/isolate_patch.dart#newcode93 runtime/lib/isolate_patch.dart:93: _handlerMap.remove(this._closeInternal()); On 2014/04/23 00:20:31, siva wrote: > ...
6 years, 8 months ago (2014-04-23 19:43:35 UTC) #6
Ivan Posva
6 years, 8 months ago (2014-04-23 19:44:22 UTC) #7
Message was sent while issue was closed.
Committed patchset #4 manually as r35325 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698