OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 part of vmservice_io; | 5 part of vmservice_io; |
6 | 6 |
7 _sanitizeWindowsPath(path) { | 7 _sanitizeWindowsPath(path) { |
8 // For Windows we need to massage the paths a bit according to | 8 // For Windows we need to massage the paths a bit according to |
9 // http://blogs.msdn.com/b/ie/archive/2006/12/06/file-uris-in-windows.aspx | 9 // http://blogs.msdn.com/b/ie/archive/2006/12/06/file-uris-in-windows.aspx |
10 // | 10 // |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 } | 259 } |
260 if (_traceLoading) { | 260 if (_traceLoading) { |
261 _log("Resolved '$uri' to '$resolvedUri'."); | 261 _log("Resolved '$uri' to '$resolvedUri'."); |
262 } | 262 } |
263 return resolvedUri; | 263 return resolvedUri; |
264 } | 264 } |
265 | 265 |
266 RawReceivePort _packagesPort; | 266 RawReceivePort _packagesPort; |
267 | 267 |
268 void _requestPackagesMap([Uri packageConfig]) { | 268 void _requestPackagesMap([Uri packageConfig]) { |
| 269 assert(_rootScript != null); |
269 if (_packagesPort != null) { | 270 if (_packagesPort != null) { |
270 // Already scheduled. | 271 // Already scheduled. |
271 return; | 272 return; |
272 } | 273 } |
273 // Create a port to receive the packages map on. | 274 // Create a port to receive the packages map on. |
274 _packagesPort = new RawReceivePort(_handlePackagesReply); | 275 _packagesPort = new RawReceivePort(_handlePackagesReply); |
275 var sp = _packagesPort.sendPort; | 276 var sp = _packagesPort.sendPort; |
276 | 277 |
277 if (packageConfig != null) { | 278 if (packageConfig != null) { |
278 // Explicitly specified .packages path. | 279 // Explicitly specified .packages path. |
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 msg[3] = null; | 1160 msg[3] = null; |
1160 msg[4] = e.toString(); | 1161 msg[4] = e.toString(); |
1161 sp.send(msg); | 1162 sp.send(msg); |
1162 } | 1163 } |
1163 }); | 1164 }); |
1164 break; | 1165 break; |
1165 default: | 1166 default: |
1166 _log('Unknown loader request tag=$tag from $isolateId'); | 1167 _log('Unknown loader request tag=$tag from $isolateId'); |
1167 } | 1168 } |
1168 } | 1169 } |
OLD | NEW |