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 library js_backend.backend; | 5 library js_backend.backend; |
6 | 6 |
7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
8 | 8 |
9 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; | 9 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; |
10 | 10 |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 | 628 |
629 CoreTypes get coreTypes => compiler.coreTypes; | 629 CoreTypes get coreTypes => compiler.coreTypes; |
630 | 630 |
631 Resolution get resolution => compiler.resolution; | 631 Resolution get resolution => compiler.resolution; |
632 | 632 |
633 /// Returns constant environment for the JavaScript interpretation of the | 633 /// Returns constant environment for the JavaScript interpretation of the |
634 /// constants. | 634 /// constants. |
635 JavaScriptConstantCompiler get constants { | 635 JavaScriptConstantCompiler get constants { |
636 return constantCompilerTask.jsConstantCompiler; | 636 return constantCompilerTask.jsConstantCompiler; |
637 } | 637 } |
638 | 638 |
639 @override | 639 @override |
640 bool isDefaultNoSuchMethod(MethodElement element) { | 640 bool isDefaultNoSuchMethod(MethodElement element) { |
641 return noSuchMethodRegistry.isDefaultNoSuchMethodImplementation(element); | 641 return noSuchMethodRegistry.isDefaultNoSuchMethodImplementation(element); |
642 } | 642 } |
643 | 643 |
644 MethodElement resolveExternalFunction(MethodElement element) { | 644 MethodElement resolveExternalFunction(MethodElement element) { |
645 if (isForeign(element)) { | 645 if (isForeign(element)) { |
646 return element; | 646 return element; |
647 } | 647 } |
648 if (isJsInterop(element)) { | 648 if (isJsInterop(element)) { |
(...skipping 2557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3206 | 3206 |
3207 @override | 3207 @override |
3208 void onImpactUsed(ImpactUseCase impactUse) { | 3208 void onImpactUsed(ImpactUseCase impactUse) { |
3209 if (impactUse == DeferredLoadTask.IMPACT_USE && !supportSerialization) { | 3209 if (impactUse == DeferredLoadTask.IMPACT_USE && !supportSerialization) { |
3210 // TODO(johnniwinther): Allow emptying when serialization has been | 3210 // TODO(johnniwinther): Allow emptying when serialization has been |
3211 // performed. | 3211 // performed. |
3212 resolution.emptyCache(); | 3212 resolution.emptyCache(); |
3213 } | 3213 } |
3214 } | 3214 } |
3215 } | 3215 } |
OLD | NEW |