| 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 native; | 5 library native; |
| 6 | 6 |
| 7 import 'dart:collection' show Queue; | 7 import 'dart:collection' show Queue; |
| 8 | 8 |
| 9 import '../common/backend_api.dart' show |
| 10 ForeignResolver; |
| 9 import '../common/registry.dart' show | 11 import '../common/registry.dart' show |
| 10 Registry; | 12 Registry; |
| 11 import '../compiler.dart' show | 13 import '../compiler.dart' show |
| 12 Compiler; | 14 Compiler; |
| 13 import '../constants/values.dart'; | 15 import '../constants/values.dart'; |
| 14 import '../dart_types.dart'; | 16 import '../dart_types.dart'; |
| 15 import '../diagnostics/diagnostic_listener.dart'; | 17 import '../diagnostics/diagnostic_listener.dart'; |
| 16 import '../diagnostics/messages.dart' show | 18 import '../diagnostics/messages.dart' show |
| 17 MessageKind; | 19 MessageKind; |
| 18 import '../diagnostics/spannable.dart' show | 20 import '../diagnostics/spannable.dart' show |
| (...skipping 12 matching lines...) Expand all Loading... |
| 31 import '../js_backend/js_backend.dart'; | 33 import '../js_backend/js_backend.dart'; |
| 32 import '../js_emitter/js_emitter.dart' show | 34 import '../js_emitter/js_emitter.dart' show |
| 33 CodeEmitterTask, | 35 CodeEmitterTask, |
| 34 NativeEmitter; | 36 NativeEmitter; |
| 35 import '../parser/listener.dart' show | 37 import '../parser/listener.dart' show |
| 36 Listener; | 38 Listener; |
| 37 import '../parser/element_listener.dart' show | 39 import '../parser/element_listener.dart' show |
| 38 ElementListener; | 40 ElementListener; |
| 39 import '../parser/partial_elements.dart' show | 41 import '../parser/partial_elements.dart' show |
| 40 PartialMetadataAnnotation; | 42 PartialMetadataAnnotation; |
| 41 import '../resolution/members.dart' show | |
| 42 ResolverVisitor; | |
| 43 import '../ssa/ssa.dart'; | 43 import '../ssa/ssa.dart'; |
| 44 import '../tokens/token.dart' show | 44 import '../tokens/token.dart' show |
| 45 BeginGroupToken, | 45 BeginGroupToken, |
| 46 Token; | 46 Token; |
| 47 import '../tokens/token_constants.dart' as Tokens show | 47 import '../tokens/token_constants.dart' as Tokens show |
| 48 EOF_TOKEN, | 48 EOF_TOKEN, |
| 49 STRING_TOKEN; | 49 STRING_TOKEN; |
| 50 import '../tree/tree.dart'; | 50 import '../tree/tree.dart'; |
| 51 import '../universe/side_effects.dart' show | 51 import '../universe/side_effects.dart' show |
| 52 SideEffects; | 52 SideEffects; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 String quotedName = cls.nativeTagInfo; | 85 String quotedName = cls.nativeTagInfo; |
| 86 return quotedName.substring(1, quotedName.length - 1).split(','); | 86 return quotedName.substring(1, quotedName.length - 1).split(','); |
| 87 } | 87 } |
| 88 | 88 |
| 89 List<String> nativeTagsOfClass(ClassElement cls) { | 89 List<String> nativeTagsOfClass(ClassElement cls) { |
| 90 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); | 90 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); |
| 91 } | 91 } |
| 92 | 92 |
| 93 bool nativeTagsForcedNonLeaf(ClassElement cls) => | 93 bool nativeTagsForcedNonLeaf(ClassElement cls) => |
| 94 nativeTagsOfClassRaw(cls).contains('!nonleaf'); | 94 nativeTagsOfClassRaw(cls).contains('!nonleaf'); |
| OLD | NEW |