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

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

Issue 1384523003: Refactor resolution of foreign calls. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « pkg/compiler/lib/src/native/enqueue.dart ('k') | pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
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');
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/native/enqueue.dart ('k') | pkg/compiler/lib/src/resolution/members.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698