| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 library rasta.kernel; | 5 library rasta.kernel; |
| 6 | 6 |
| 7 import 'dart:async' show | 7 import 'dart:async' show |
| 8 Future; | 8 Future; |
| 9 | 9 |
| 10 import 'dart:collection' show | 10 import 'dart:collection' show |
| (...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 } | 636 } |
| 637 | 637 |
| 638 bool get isInternalStateConsistent { | 638 bool get isInternalStateConsistent { |
| 639 if (workQueue.isNotEmpty) { | 639 if (workQueue.isNotEmpty) { |
| 640 print("Kernel workQueue isn't empty."); | 640 print("Kernel workQueue isn't empty."); |
| 641 return false; | 641 return false; |
| 642 } | 642 } |
| 643 return compiler.isInternalStateConsistent; | 643 return compiler.isInternalStateConsistent; |
| 644 } | 644 } |
| 645 | 645 |
| 646 ir.Procedure getDynamicErrorHandler() { | 646 ir.Procedure getUnresolvedConstructorBuilder() { |
| 647 LibraryElement internal = | 647 LibraryElement internal = |
| 648 compiler.libraryLoader.lookupLibrary(Uri.parse("dart:_internal")); | 648 compiler.libraryLoader.lookupLibrary(Uri.parse("dart:core")); |
| 649 FunctionElement function = | 649 FunctionElement function = |
| 650 internal.implementation.localLookup("_dynamicError"); | 650 internal.implementation.localLookup("_unresolvedConstructorError"); |
| 651 return functionToIr(function); |
| 652 } |
| 653 |
| 654 ir.Procedure getMalformedTypeErrorBuilder() { |
| 655 LibraryElement internal = |
| 656 compiler.libraryLoader.lookupLibrary(Uri.parse("dart:core")); |
| 657 FunctionElement function = |
| 658 internal.implementation.localLookup("_malformedTypeError"); |
| 651 return functionToIr(function); | 659 return functionToIr(function); |
| 652 } | 660 } |
| 653 } | 661 } |
| 654 | 662 |
| 655 class ConstructorTarget { | 663 class ConstructorTarget { |
| 656 final ConstructorElement element; | 664 final ConstructorElement element; |
| 657 final DartType type; | 665 final DartType type; |
| 658 | 666 |
| 659 ConstructorTarget(this.element, this.type); | 667 ConstructorTarget(this.element, this.type); |
| 660 | 668 |
| 661 String toString() => "ConstructorTarget($element, $type)"; | 669 String toString() => "ConstructorTarget($element, $type)"; |
| 662 } | 670 } |
| OLD | NEW |