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

Side by Side Diff: runtime/bin/vmservice/loader.dart

Issue 2937503003: Reapply "[fuchsia] Prepare for setting the Dart target architecture appropriately in the host binar… (Closed)
Patch Set: Created 3 years, 6 months 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
OLDNEW
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
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);
270 if (_packagesPort != null) { 269 if (_packagesPort != null) {
271 // Already scheduled. 270 // Already scheduled.
272 return; 271 return;
273 } 272 }
274 // Create a port to receive the packages map on. 273 // Create a port to receive the packages map on.
275 _packagesPort = new RawReceivePort(_handlePackagesReply); 274 _packagesPort = new RawReceivePort(_handlePackagesReply);
276 var sp = _packagesPort.sendPort; 275 var sp = _packagesPort.sendPort;
277 276
278 if (packageConfig != null) { 277 if (packageConfig != null) {
279 // Explicitly specified .packages path. 278 // Explicitly specified .packages path.
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 msg[3] = null; 1159 msg[3] = null;
1161 msg[4] = e.toString(); 1160 msg[4] = e.toString();
1162 sp.send(msg); 1161 sp.send(msg);
1163 } 1162 }
1164 }); 1163 });
1165 break; 1164 break;
1166 default: 1165 default:
1167 _log('Unknown loader request tag=$tag from $isolateId'); 1166 _log('Unknown loader request tag=$tag from $isolateId');
1168 } 1167 }
1169 } 1168 }
OLDNEW
« runtime/bin/BUILD.gn ('K') | « runtime/bin/BUILD.gn ('k') | runtime/observatory/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698