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

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

Issue 48713013: Fix http://dartbug.com/14763 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/debugger.cc » ('j') | 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 patch class ReceivePort { 5 patch class ReceivePort {
6 /* patch */ factory ReceivePort() = _ReceivePortImpl; 6 /* patch */ factory ReceivePort() = _ReceivePortImpl;
7 7
8 /* patch */ factory ReceivePort.fromRawReceivePort(RawReceivePort rawPort) = 8 /* patch */ factory ReceivePort.fromRawReceivePort(RawReceivePort rawPort) =
9 _ReceivePortImpl.fromRawReceivePort; 9 _ReceivePortImpl.fromRawReceivePort;
10 } 10 }
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // initial startup message has been received. 167 // initial startup message has been received.
168 } 168 }
169 169
170 isolateStartHandler(message) { 170 isolateStartHandler(message) {
171 // We received the initial startup message. Ignore all further messages and 171 // We received the initial startup message. Ignore all further messages and
172 // close the port which kept this isolate alive. 172 // close the port which kept this isolate alive.
173 Isolate._self.handler = ignoreHandler; 173 Isolate._self.handler = ignoreHandler;
174 keepAlivePort.close(); 174 keepAlivePort.close();
175 175
176 SendPort replyTo = message[0]; 176 SendPort replyTo = message[0];
177 // TODO(floitsch): don't send ok-message if we can't find the entry point. 177 if (replyTo != null) {
178 replyTo.send("started"); 178 // TODO(floitsch): don't send ok-message if we can't find the entry point.
179 replyTo.send("started");
180 }
179 if (isSpawnUri) { 181 if (isSpawnUri) {
180 assert(message.length == 3); 182 assert(message.length == 3);
181 List<String> args = message[1]; 183 List<String> args = message[1];
182 var isolateMessage = message[2]; 184 var isolateMessage = message[2];
183 if (entryPoint is _MainFunctionArgsMessage) { 185 if (entryPoint is _MainFunctionArgsMessage) {
184 entryPoint(args, isolateMessage); 186 entryPoint(args, isolateMessage);
185 } else if (entryPoint is _MainFunctionArgs) { 187 } else if (entryPoint is _MainFunctionArgs) {
186 entryPoint(args); 188 entryPoint(args);
187 } else { 189 } else {
188 entryPoint(); 190 entryPoint();
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 } 241 }
240 242
241 static final RawReceivePort _self = _mainPort; 243 static final RawReceivePort _self = _mainPort;
242 static RawReceivePort get _mainPort native "Isolate_mainPort"; 244 static RawReceivePort get _mainPort native "Isolate_mainPort";
243 245
244 static SendPort _spawnFunction(Function topLevelFunction) 246 static SendPort _spawnFunction(Function topLevelFunction)
245 native "Isolate_spawnFunction"; 247 native "Isolate_spawnFunction";
246 248
247 static SendPort _spawnUri(String uri) native "Isolate_spawnUri"; 249 static SendPort _spawnUri(String uri) native "Isolate_spawnUri";
248 } 250 }
OLDNEW
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698