Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: pkg/compiler/lib/src/native/native.dart

Issue 1348063002: Make the universe parts into small libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698