| OLD | NEW |
| 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 part of dart2js; | 5 part of dart2js; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * If true, print a warning for each method that was resolved, but not | 8 * If true, print a warning for each method that was resolved, but not |
| 9 * compiled. | 9 * compiled. |
| 10 */ | 10 */ |
| (...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 | 626 |
| 627 Universe get resolverWorld => enqueuer.resolution.universe; | 627 Universe get resolverWorld => enqueuer.resolution.universe; |
| 628 Universe get codegenWorld => enqueuer.codegen.universe; | 628 Universe get codegenWorld => enqueuer.codegen.universe; |
| 629 | 629 |
| 630 bool get hasBuildId => buildId != UNDETERMINED_BUILD_ID; | 630 bool get hasBuildId => buildId != UNDETERMINED_BUILD_ID; |
| 631 | 631 |
| 632 bool get analyzeAll => analyzeAllFlag || compileAll; | 632 bool get analyzeAll => analyzeAllFlag || compileAll; |
| 633 | 633 |
| 634 bool get compileAll => false; | 634 bool get compileAll => false; |
| 635 | 635 |
| 636 bool get disableTypeInference { | 636 bool get disableTypeInference => disableTypeInferenceFlag; |
| 637 return disableTypeInferenceFlag || disableTypeInferenceForMirrors; | |
| 638 } | |
| 639 | 637 |
| 640 int getNextFreeClassId() => nextFreeClassId++; | 638 int getNextFreeClassId() => nextFreeClassId++; |
| 641 | 639 |
| 642 void ensure(bool condition) { | 640 void ensure(bool condition) { |
| 643 if (!condition) cancel('failed assertion in leg'); | 641 if (!condition) cancel('failed assertion in leg'); |
| 644 } | 642 } |
| 645 | 643 |
| 646 void unimplemented(String methodName, | 644 void unimplemented(String methodName, |
| 647 {Node node, Token token, HInstruction instruction, | 645 {Node node, Token token, HInstruction instruction, |
| 648 Element element}) { | 646 Element element}) { |
| (...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1528 | 1526 |
| 1529 void close() {} | 1527 void close() {} |
| 1530 | 1528 |
| 1531 toString() => name; | 1529 toString() => name; |
| 1532 | 1530 |
| 1533 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1531 /// Convenience method for getting an [api.CompilerOutputProvider]. |
| 1534 static NullSink outputProvider(String name, String extension) { | 1532 static NullSink outputProvider(String name, String extension) { |
| 1535 return new NullSink('$name.$extension'); | 1533 return new NullSink('$name.$extension'); |
| 1536 } | 1534 } |
| 1537 } | 1535 } |
| OLD | NEW |