| 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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 | 630 |
| 631 Universe get resolverWorld => enqueuer.resolution.universe; | 631 Universe get resolverWorld => enqueuer.resolution.universe; |
| 632 Universe get codegenWorld => enqueuer.codegen.universe; | 632 Universe get codegenWorld => enqueuer.codegen.universe; |
| 633 | 633 |
| 634 bool get hasBuildId => buildId != UNDETERMINED_BUILD_ID; | 634 bool get hasBuildId => buildId != UNDETERMINED_BUILD_ID; |
| 635 | 635 |
| 636 bool get analyzeAll => analyzeAllFlag || compileAll; | 636 bool get analyzeAll => analyzeAllFlag || compileAll; |
| 637 | 637 |
| 638 bool get compileAll => false; | 638 bool get compileAll => false; |
| 639 | 639 |
| 640 bool get disableTypeInference { | 640 bool get disableTypeInference => disableTypeInferenceFlag; |
| 641 return disableTypeInferenceFlag || disableTypeInferenceForMirrors; | |
| 642 } | |
| 643 | 641 |
| 644 int getNextFreeClassId() => nextFreeClassId++; | 642 int getNextFreeClassId() => nextFreeClassId++; |
| 645 | 643 |
| 646 void ensure(bool condition) { | 644 void ensure(bool condition) { |
| 647 if (!condition) cancel('failed assertion in leg'); | 645 if (!condition) cancel('failed assertion in leg'); |
| 648 } | 646 } |
| 649 | 647 |
| 650 void unimplemented(String methodName, | 648 void unimplemented(String methodName, |
| 651 {Node node, Token token, HInstruction instruction, | 649 {Node node, Token token, HInstruction instruction, |
| 652 Element element}) { | 650 Element element}) { |
| (...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1537 | 1535 |
| 1538 void close() {} | 1536 void close() {} |
| 1539 | 1537 |
| 1540 toString() => name; | 1538 toString() => name; |
| 1541 | 1539 |
| 1542 /// Convenience method for getting an [api.CompilerOutputProvider]. | 1540 /// Convenience method for getting an [api.CompilerOutputProvider]. |
| 1543 static NullSink outputProvider(String name, String extension) { | 1541 static NullSink outputProvider(String name, String extension) { |
| 1544 return new NullSink('$name.$extension'); | 1542 return new NullSink('$name.$extension'); |
| 1545 } | 1543 } |
| 1546 } | 1544 } |
| OLD | NEW |