| 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 => disableTypeInferenceFlag; | 636 bool get disableTypeInference { |
| 637 return disableTypeInferenceFlag || disableTypeInferenceForMirrors; |
| 638 } |
| 637 | 639 |
| 638 int getNextFreeClassId() => nextFreeClassId++; | 640 int getNextFreeClassId() => nextFreeClassId++; |
| 639 | 641 |
| 640 void ensure(bool condition) { | 642 void ensure(bool condition) { |
| 641 if (!condition) cancel('failed assertion in leg'); | 643 if (!condition) cancel('failed assertion in leg'); |
| 642 } | 644 } |
| 643 | 645 |
| 644 void unimplemented(String methodName, | 646 void unimplemented(String methodName, |
| 645 {Node node, Token token, HInstruction instruction, | 647 {Node node, Token token, HInstruction instruction, |
| 646 Element element}) { | 648 Element element}) { |
| (...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1526 | 1528 |
| 1527 void close() {} | 1529 void close() {} |
| 1528 | 1530 |
| 1529 toString() => name; | 1531 toString() => name; |
| 1530 | 1532 |
| 1531 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1533 /// Convenience method for getting an [api.CompilerOutputProvider]. |
| 1532 static NullSink outputProvider(String name, String extension) { | 1534 static NullSink outputProvider(String name, String extension) { |
| 1533 return new NullSink('$name.$extension'); | 1535 return new NullSink('$name.$extension'); |
| 1534 } | 1536 } |
| 1535 } | 1537 } |
| OLD | NEW |