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

Side by Side Diff: runtime/lib/isolate_patch.dart

Issue 1435943003: Remove some prototype code that snuck into one of my commits. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import "dart:collection" show HashMap; 5 import "dart:collection" show HashMap;
6 import "dart:_internal"; 6 import "dart:_internal";
7 7
8 patch class ReceivePort { 8 patch class ReceivePort {
9 /* patch */ factory ReceivePort() = _ReceivePortImpl; 9 /* patch */ factory ReceivePort() = _ReceivePortImpl;
10 10
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 bool operator==(var other) { 124 bool operator==(var other) {
125 return (other is _RawReceivePortImpl) && 125 return (other is _RawReceivePortImpl) &&
126 (this._get_id() == other._get_id()); 126 (this._get_id() == other._get_id());
127 } 127 }
128 128
129 int get hashCode { 129 int get hashCode {
130 return sendPort.hashCode; 130 return sendPort.hashCode;
131 } 131 }
132 132
133 Uri get remotePortUri => new Uri.https('localhost', '55');
134
135 /**** Internal implementation details ****/ 133 /**** Internal implementation details ****/
136 _get_id() native "RawReceivePortImpl_get_id"; 134 _get_id() native "RawReceivePortImpl_get_id";
137 _get_sendport() native "RawReceivePortImpl_get_sendport"; 135 _get_sendport() native "RawReceivePortImpl_get_sendport";
138 136
139 // Called from the VM to retrieve the handler for a message. 137 // Called from the VM to retrieve the handler for a message.
140 static _lookupHandler(int id) { 138 static _lookupHandler(int id) {
141 var result = _handlerMap[id]; 139 var result = _handlerMap[id];
142 return result; 140 return result;
143 } 141 }
144 142
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 static Isolate _getCurrentIsolate() { 462 static Isolate _getCurrentIsolate() {
465 List portAndCapabilities = _getPortAndCapabilitiesOfCurrentIsolate(); 463 List portAndCapabilities = _getPortAndCapabilitiesOfCurrentIsolate();
466 return new Isolate(portAndCapabilities[0], 464 return new Isolate(portAndCapabilities[0],
467 pauseCapability: portAndCapabilities[1], 465 pauseCapability: portAndCapabilities[1],
468 terminateCapability: portAndCapabilities[2]); 466 terminateCapability: portAndCapabilities[2]);
469 } 467 }
470 468
471 static List _getPortAndCapabilitiesOfCurrentIsolate() 469 static List _getPortAndCapabilitiesOfCurrentIsolate()
472 native "Isolate_getPortAndCapabilitiesOfCurrentIsolate"; 470 native "Isolate_getPortAndCapabilitiesOfCurrentIsolate";
473 } 471 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698