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

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

Issue 2829463003: Format all remaining unformatted runtime files other than multitests. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « runtime/bin/stdio_patch.dart ('k') | runtime/bin/vmservice/server.dart » ('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) 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 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 case _Dart_kInitLoader: 1032 case _Dart_kInitLoader:
1033 { 1033 {
1034 String packageRoot = request[4]; 1034 String packageRoot = request[4];
1035 String packagesFile = request[5]; 1035 String packagesFile = request[5];
1036 String workingDirectory = request[6]; 1036 String workingDirectory = request[6];
1037 String rootScript = request[7]; 1037 String rootScript = request[7];
1038 if (loaderState == null) { 1038 if (loaderState == null) {
1039 loaderState = new IsolateLoaderState(isolateId); 1039 loaderState = new IsolateLoaderState(isolateId);
1040 isolateEmbedderData[isolateId] = loaderState; 1040 isolateEmbedderData[isolateId] = loaderState;
1041 loaderState.init( 1041 loaderState.init(
1042 packageRoot, packagesFile, workingDirectory, rootScript); 1042 packageRoot, packagesFile, workingDirectory, rootScript);
1043 } else { 1043 } else {
1044 loaderState.updatePackageMap(packagesFile); 1044 loaderState.updatePackageMap(packagesFile);
1045 } 1045 }
1046 loaderState.sp = sp; 1046 loaderState.sp = sp;
1047 assert(isolateEmbedderData[isolateId] == loaderState); 1047 assert(isolateEmbedderData[isolateId] == loaderState);
1048 } 1048 }
1049 break; 1049 break;
1050 case _Dart_kResourceLoad: 1050 case _Dart_kResourceLoad:
1051 { 1051 {
1052 Uri uri = Uri.parse(request[4]); 1052 Uri uri = Uri.parse(request[4]);
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 msg[3] = null; 1159 msg[3] = null;
1160 msg[4] = e.toString(); 1160 msg[4] = e.toString();
1161 sp.send(msg); 1161 sp.send(msg);
1162 } 1162 }
1163 }); 1163 });
1164 break; 1164 break;
1165 default: 1165 default:
1166 _log('Unknown loader request tag=$tag from $isolateId'); 1166 _log('Unknown loader request tag=$tag from $isolateId');
1167 } 1167 }
1168 } 1168 }
OLDNEW
« no previous file with comments | « runtime/bin/stdio_patch.dart ('k') | runtime/bin/vmservice/server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698