| 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/registry.dart' show | 9 import '../common/registry.dart' show |
| 10 Registry; | 10 Registry; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 import '../resolution/members.dart' show | 41 import '../resolution/members.dart' show |
| 42 ResolverVisitor; | 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/universe.dart' show SideEffects; | 51 import '../universe/side_effects.dart' show |
| 52 SideEffects; |
| 52 import '../util/util.dart'; | 53 import '../util/util.dart'; |
| 53 | 54 |
| 54 part 'behavior.dart'; | 55 part 'behavior.dart'; |
| 55 part 'enqueue.dart'; | 56 part 'enqueue.dart'; |
| 56 part 'js.dart'; | 57 part 'js.dart'; |
| 57 part 'scanner.dart'; | 58 part 'scanner.dart'; |
| 58 part 'ssa.dart'; | 59 part 'ssa.dart'; |
| 59 | 60 |
| 60 void maybeEnableNative(Compiler compiler, | 61 void maybeEnableNative(Compiler compiler, |
| 61 LibraryElementX library) { | 62 LibraryElementX library) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 84 String quotedName = cls.nativeTagInfo; | 85 String quotedName = cls.nativeTagInfo; |
| 85 return quotedName.substring(1, quotedName.length - 1).split(','); | 86 return quotedName.substring(1, quotedName.length - 1).split(','); |
| 86 } | 87 } |
| 87 | 88 |
| 88 List<String> nativeTagsOfClass(ClassElement cls) { | 89 List<String> nativeTagsOfClass(ClassElement cls) { |
| 89 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); | 90 return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); |
| 90 } | 91 } |
| 91 | 92 |
| 92 bool nativeTagsForcedNonLeaf(ClassElement cls) => | 93 bool nativeTagsForcedNonLeaf(ClassElement cls) => |
| 93 nativeTagsOfClassRaw(cls).contains('!nonleaf'); | 94 nativeTagsOfClassRaw(cls).contains('!nonleaf'); |
| OLD | NEW |