| 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 '../constants/values.dart'; | 9 import '../constants/values.dart'; | 
| 10 import '../dart2jslib.dart'; | 10 import '../dart2jslib.dart'; | 
| 11 import '../dart_types.dart'; | 11 import '../dart_types.dart'; | 
| 12 import '../elements/elements.dart'; | 12 import '../elements/elements.dart'; | 
| 13 import '../elements/modelx.dart' | 13 import '../elements/modelx.dart' | 
| 14     show ClassElementX, FunctionElementX, LibraryElementX; | 14     show ElementX, BaseClassElementX, FunctionElementX, LibraryElementX; | 
| 15 import '../js/js.dart' as js; | 15 import '../js/js.dart' as js; | 
| 16 import '../js_backend/js_backend.dart'; | 16 import '../js_backend/js_backend.dart'; | 
| 17 import '../js_emitter/js_emitter.dart' show CodeEmitterTask, NativeEmitter; | 17 import '../js_emitter/js_emitter.dart' show CodeEmitterTask, NativeEmitter; | 
| 18 import '../resolution/resolution.dart' show ResolverVisitor; | 18 import '../resolution/resolution.dart' show ResolverVisitor; | 
| 19 import '../scanner/scannerlib.dart'; | 19 import '../scanner/scannerlib.dart'; | 
| 20 import '../ssa/ssa.dart'; | 20 import '../ssa/ssa.dart'; | 
| 21 import '../tree/tree.dart'; | 21 import '../tree/tree.dart'; | 
| 22 import '../universe/universe.dart' show SideEffects; | 22 import '../universe/universe.dart' show SideEffects; | 
| 23 import '../util/util.dart'; | 23 import '../util/util.dart'; | 
| 24 | 24 | 
| (...skipping 30 matching lines...) Expand all  Loading... | 
| 55   String quotedName = cls.nativeTagInfo; | 55   String quotedName = cls.nativeTagInfo; | 
| 56   return quotedName.substring(1, quotedName.length - 1).split(','); | 56   return quotedName.substring(1, quotedName.length - 1).split(','); | 
| 57 } | 57 } | 
| 58 | 58 | 
| 59 List<String> nativeTagsOfClass(ClassElement cls) { | 59 List<String> nativeTagsOfClass(ClassElement cls) { | 
| 60   return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); | 60   return nativeTagsOfClassRaw(cls).where((s) => !s.startsWith('!')).toList(); | 
| 61 } | 61 } | 
| 62 | 62 | 
| 63 bool nativeTagsForcedNonLeaf(ClassElement cls) => | 63 bool nativeTagsForcedNonLeaf(ClassElement cls) => | 
| 64     nativeTagsOfClassRaw(cls).contains('!nonleaf'); | 64     nativeTagsOfClassRaw(cls).contains('!nonleaf'); | 
| OLD | NEW | 
|---|