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 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
882 } | 882 } |
883 // No native behavior for this call. | 883 // No native behavior for this call. |
884 return null; | 884 return null; |
885 } | 885 } |
886 | 886 |
887 bool isComplexNoSuchMethod(FunctionElement element) => | 887 bool isComplexNoSuchMethod(FunctionElement element) => |
888 noSuchMethodRegistry.isComplex(element); | 888 noSuchMethodRegistry.isComplex(element); |
889 | 889 |
890 ResolutionEnqueuer createResolutionEnqueuer( | 890 ResolutionEnqueuer createResolutionEnqueuer( |
891 CompilerTask task, Compiler compiler) { | 891 CompilerTask task, Compiler compiler) { |
892 _nativeBasicData = nativeBasicDataBuilder.close(); | 892 _nativeBasicData = |
| 893 nativeBasicDataBuilder.close(compiler.elementEnvironment); |
893 _nativeData = new NativeDataImpl(nativeBasicData); | 894 _nativeData = new NativeDataImpl(nativeBasicData); |
894 _backendClasses = new JavaScriptBackendClasses( | 895 _backendClasses = new JavaScriptBackendClasses( |
895 compiler.elementEnvironment, helpers, nativeBasicData); | 896 compiler.elementEnvironment, helpers, nativeBasicData); |
896 _customElementsResolutionAnalysis = new CustomElementsResolutionAnalysis( | 897 _customElementsResolutionAnalysis = new CustomElementsResolutionAnalysis( |
897 compiler.resolution, | 898 compiler.resolution, |
898 constantSystem, | 899 constantSystem, |
899 commonElements, | 900 commonElements, |
900 backendClasses, | 901 backendClasses, |
901 helpers, | 902 helpers, |
902 nativeBasicData, | 903 nativeBasicData, |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1614 return _backend.defaultSuperclass(element); | 1615 return _backend.defaultSuperclass(element); |
1615 } | 1616 } |
1616 | 1617 |
1617 @override | 1618 @override |
1618 bool isNativeClass(ClassEntity element) => | 1619 bool isNativeClass(ClassEntity element) => |
1619 _backend.nativeBasicData.isNativeClass(element); | 1620 _backend.nativeBasicData.isNativeClass(element); |
1620 | 1621 |
1621 @override | 1622 @override |
1622 bool isForeign(Element element) => _backend.isForeign(element); | 1623 bool isForeign(Element element) => _backend.isForeign(element); |
1623 } | 1624 } |
OLD | NEW |