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

Side by Side Diff: pkg/kernel/bin/dartk.dart

Issue 2669303002: Support for modular mixin resolution. (Closed)
Patch Set: Update binary format Created 3 years, 10 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 | « no previous file | pkg/kernel/binary.md » ('j') | pkg/kernel/binary.md » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env dart 1 #!/usr/bin/env dart
2 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 5
6 import 'dart:async'; 6 import 'dart:async';
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'batch_util.dart'; 9 import 'batch_util.dart';
10 10
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 declaredVariables: declaredVariables, 319 declaredVariables: declaredVariables,
320 applicationRoot: applicationRoot); 320 applicationRoot: applicationRoot);
321 String packageDiscoveryPath = batchModeState.isBatchMode ? null : file; 321 String packageDiscoveryPath = batchModeState.isBatchMode ? null : file;
322 DartLoader loader = await batchModeState.batch.getLoader( 322 DartLoader loader = await batchModeState.batch.getLoader(
323 repository, dartOptions, 323 repository, dartOptions,
324 packageDiscoveryPath: packageDiscoveryPath); 324 packageDiscoveryPath: packageDiscoveryPath);
325 if (options['link']) { 325 if (options['link']) {
326 program = loader.loadProgram(fileUri, target: target); 326 program = loader.loadProgram(fileUri, target: target);
327 } else { 327 } else {
328 var library = loader.loadLibrary(fileUri); 328 var library = loader.loadLibrary(fileUri);
329 loader.loadSdkInterface(program, target);
329 assert(library == 330 assert(library ==
330 repository.getLibraryReference(applicationRoot.relativeUri(fileUri))); 331 repository.getLibraryReference(applicationRoot.relativeUri(fileUri)));
331 program = new Program(repository.libraries); 332 program = new Program(repository.libraries);
332 } 333 }
333 errors = loader.errors; 334 errors = loader.errors;
334 if (errors.isNotEmpty) { 335 if (errors.isNotEmpty) {
335 const int errorLimit = 100; 336 const int errorLimit = 100;
336 stderr.writeln(errors.take(errorLimit).join('\n')); 337 stderr.writeln(errors.take(errorLimit).join('\n'));
337 if (errors.length > errorLimit) { 338 if (errors.length > errorLimit) {
338 stderr 339 stderr
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 int flushTime = watch.elapsedMilliseconds - time; 407 int flushTime = watch.elapsedMilliseconds - time;
407 print('writer.flush_time = $flushTime ms'); 408 print('writer.flush_time = $flushTime ms');
408 } 409 }
409 410
410 if (options['tolerant']) { 411 if (options['tolerant']) {
411 return CompilerOutcome.Ok; 412 return CompilerOutcome.Ok;
412 } 413 }
413 414
414 return errors.length > 0 ? CompilerOutcome.Fail : CompilerOutcome.Ok; 415 return errors.length > 0 ? CompilerOutcome.Fail : CompilerOutcome.Ok;
415 } 416 }
OLDNEW
« no previous file with comments | « no previous file | pkg/kernel/binary.md » ('j') | pkg/kernel/binary.md » ('J')

Powered by Google App Engine
This is Rietveld 408576698