OLD | NEW |
---|---|
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 code_generator_dependencies; | 5 library code_generator_dependencies; |
6 | 6 |
7 import '../js_backend.dart'; | 7 import '../js_backend.dart'; |
8 import '../../dart2jslib.dart'; | 8 import '../../dart2jslib.dart'; |
9 import '../../js_emitter/js_emitter.dart'; | 9 import '../../js_emitter/js_emitter.dart'; |
10 import '../../js/js.dart' as js; | 10 import '../../js/js.dart' as js; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
147 | 147 |
148 bool needsSubstitutionForTypeVariableAccess(ClassElement cls) { | 148 bool needsSubstitutionForTypeVariableAccess(ClassElement cls) { |
149 ClassWorld classWorld = _compiler.world; | 149 ClassWorld classWorld = _compiler.world; |
150 if (classWorld.isUsedAsMixin(cls)) return true; | 150 if (classWorld.isUsedAsMixin(cls)) return true; |
151 | 151 |
152 Iterable<ClassElement> subclasses = _compiler.world.strictSubclassesOf(cls); | 152 Iterable<ClassElement> subclasses = _compiler.world.strictSubclassesOf(cls); |
153 return subclasses.any((ClassElement subclass) { | 153 return subclasses.any((ClassElement subclass) { |
154 return !_backend.rti.isTrivialSubstitution(subclass, cls); | 154 return !_backend.rti.isTrivialSubstitution(subclass, cls); |
155 }); | 155 }); |
156 } | 156 } |
157 | |
158 bool requiresEqNullCheck(FunctionElement element) { | |
Kevin Millikin (Google)
2015/03/26 15:14:17
Can we avoid having two different names (requiresE
| |
159 return !_backend.operatorEqHandlesNullArgument(element); | |
160 } | |
157 } | 161 } |
OLD | NEW |