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 js_backend; | 5 part of js_backend; |
6 | 6 |
7 const VERBOSE_OPTIMIZER_HINTS = false; | 7 const VERBOSE_OPTIMIZER_HINTS = false; |
8 | 8 |
9 class JavaScriptItemCompilationContext extends ItemCompilationContext { | 9 class JavaScriptItemCompilationContext extends ItemCompilationContext { |
10 final Set<HInstruction> boundsChecked = new Set<HInstruction>(); | 10 final Set<HInstruction> boundsChecked = new Set<HInstruction>(); |
(...skipping 2651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2662 enqueuer.registerInstantiatedType( | 2662 enqueuer.registerInstantiatedType( |
2663 clsASyncStarController.rawType, registry); | 2663 clsASyncStarController.rawType, registry); |
2664 enqueue(enqueuer, getAsyncStarHelper(), registry); | 2664 enqueue(enqueuer, getAsyncStarHelper(), registry); |
2665 enqueue(enqueuer, getStreamOfController(), registry); | 2665 enqueue(enqueuer, getStreamOfController(), registry); |
2666 enqueue(enqueuer, getYieldSingle(), registry); | 2666 enqueue(enqueuer, getYieldSingle(), registry); |
2667 enqueue(enqueuer, getYieldStar(), registry); | 2667 enqueue(enqueuer, getYieldStar(), registry); |
2668 enqueue(enqueuer, getASyncStarControllerConstructor(), registry); | 2668 enqueue(enqueuer, getASyncStarControllerConstructor(), registry); |
2669 enqueue(enqueuer, getStreamIteratorConstructor(), registry); | 2669 enqueue(enqueuer, getStreamIteratorConstructor(), registry); |
2670 } | 2670 } |
2671 } | 2671 } |
| 2672 |
| 2673 @override |
| 2674 bool registerDeferredLoading(Spannable node, Registry registry) { |
| 2675 registerCheckDeferredIsLoaded(registry); |
| 2676 return true; |
| 2677 } |
2672 } | 2678 } |
2673 | 2679 |
2674 /// Handling of special annotations for tests. | 2680 /// Handling of special annotations for tests. |
2675 class Annotations { | 2681 class Annotations { |
2676 static final Uri PACKAGE_EXPECT = | 2682 static final Uri PACKAGE_EXPECT = |
2677 new Uri(scheme: 'package', path: 'expect/expect.dart'); | 2683 new Uri(scheme: 'package', path: 'expect/expect.dart'); |
2678 | 2684 |
2679 final Compiler compiler; | 2685 final Compiler compiler; |
2680 | 2686 |
2681 ClassElement expectNoInlineClass; | 2687 ClassElement expectNoInlineClass; |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2951 } | 2957 } |
2952 } | 2958 } |
2953 | 2959 |
2954 /// Records that [constant] is used by the element behind [registry]. | 2960 /// Records that [constant] is used by the element behind [registry]. |
2955 class Dependency { | 2961 class Dependency { |
2956 final ConstantValue constant; | 2962 final ConstantValue constant; |
2957 final Element annotatedElement; | 2963 final Element annotatedElement; |
2958 | 2964 |
2959 const Dependency(this.constant, this.annotatedElement); | 2965 const Dependency(this.constant, this.annotatedElement); |
2960 } | 2966 } |
OLD | NEW |