| 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 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 compiler.elementEnvironment, | 907 compiler.elementEnvironment, |
| 908 commonElements, | 908 commonElements, |
| 909 impacts, | 909 impacts, |
| 910 nativeBasicData, | 910 nativeBasicData, |
| 911 nativeResolutionEnqueuer, | 911 nativeResolutionEnqueuer, |
| 912 backendUsageBuilder, | 912 backendUsageBuilder, |
| 913 mirrorsDataBuilder, | 913 mirrorsDataBuilder, |
| 914 customElementsResolutionAnalysis, | 914 customElementsResolutionAnalysis, |
| 915 rtiNeedBuilder); | 915 rtiNeedBuilder); |
| 916 _interceptorDataBuilder = new InterceptorDataBuilderImpl( | 916 _interceptorDataBuilder = new InterceptorDataBuilderImpl( |
| 917 nativeBasicData, helpers, commonElements, compiler.resolution); | 917 nativeBasicData, |
| 918 helpers, |
| 919 compiler.elementEnvironment, |
| 920 commonElements, |
| 921 compiler.resolution); |
| 918 return new ResolutionEnqueuer( | 922 return new ResolutionEnqueuer( |
| 919 task, | 923 task, |
| 920 compiler.options, | 924 compiler.options, |
| 921 compiler.reporter, | 925 compiler.reporter, |
| 922 compiler.options.analyzeOnly && compiler.options.analyzeMain | 926 compiler.options.analyzeOnly && compiler.options.analyzeMain |
| 923 ? const DirectEnqueuerStrategy() | 927 ? const DirectEnqueuerStrategy() |
| 924 : const TreeShakingEnqueuerStrategy(), | 928 : const TreeShakingEnqueuerStrategy(), |
| 925 new ResolutionEnqueuerListener( | 929 new ResolutionEnqueuerListener( |
| 926 kernelTask, | 930 kernelTask, |
| 927 compiler.options, | 931 compiler.options, |
| (...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1610 return _backend.defaultSuperclass(element); | 1614 return _backend.defaultSuperclass(element); |
| 1611 } | 1615 } |
| 1612 | 1616 |
| 1613 @override | 1617 @override |
| 1614 bool isNativeClass(ClassEntity element) => | 1618 bool isNativeClass(ClassEntity element) => |
| 1615 _backend.nativeBasicData.isNativeClass(element); | 1619 _backend.nativeBasicData.isNativeClass(element); |
| 1616 | 1620 |
| 1617 @override | 1621 @override |
| 1618 bool isForeign(Element element) => _backend.isForeign(element); | 1622 bool isForeign(Element element) => _backend.isForeign(element); |
| 1619 } | 1623 } |
| OLD | NEW |