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

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

Issue 1762723002: Cleanup 1: split parts into their own libraries, remove unused imports (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 part of native; 5 import 'dart:collection' show Queue;
6
7 import '../common.dart';
8 import '../common/backend_api.dart' show
9 ForeignResolver;
10 import '../common/registry.dart' show
11 Registry;
12 import '../common/resolution.dart' show
13 Parsing,
14 Resolution;
15 import '../compiler.dart' show
16 Compiler;
17 import '../constants/values.dart';
18 import '../core_types.dart' show
19 CoreTypes;
20 import '../dart_types.dart';
21 import '../enqueue.dart' show
22 Enqueuer,
23 ResolutionEnqueuer;
24 import '../elements/elements.dart';
25 import '../elements/modelx.dart' show
26 BaseClassElementX,
27 ElementX,
28 FunctionElementX,
29 LibraryElementX;
30 import '../js_backend/backend_helpers.dart' show
31 BackendHelpers;
32 import '../js_backend/js_backend.dart';
33 import '../js_emitter/js_emitter.dart' show
34 CodeEmitterTask,
35 NativeEmitter;
36 import '../tokens/token.dart' show
37 BeginGroupToken,
38 Token;
39 import '../tokens/token_constants.dart' as Tokens show
40 EOF_TOKEN,
41 STRING_TOKEN;
42 import '../tree/tree.dart';
43
44 import 'behavior.dart';
6 45
7 /** 46 /**
8 * This could be an abstract class but we use it as a stub for the dart_backend. 47 * This could be an abstract class but we use it as a stub for the dart_backend.
9 */ 48 */
10 class NativeEnqueuer { 49 class NativeEnqueuer {
11 /// Initial entry point to native enqueuer. 50 /// Initial entry point to native enqueuer.
12 void processNativeClasses(Iterable<LibraryElement> libraries) {} 51 void processNativeClasses(Iterable<LibraryElement> libraries) {}
13 52
14 /// Registers the [nativeBehavior]. Adds the liveness of its instantiated 53 /// Registers the [nativeBehavior]. Adds the liveness of its instantiated
15 /// types to the world. 54 /// types to the world.
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 superclass, 721 superclass,
683 () => <ClassElement>[]); 722 () => <ClassElement>[]);
684 directSubtypes.add(cls); 723 directSubtypes.add(cls);
685 } 724 }
686 725
687 void logSummary(log(message)) { 726 void logSummary(log(message)) {
688 log('Compiled ${registeredClasses.length} native classes, ' 727 log('Compiled ${registeredClasses.length} native classes, '
689 '${unusedClasses.length} native classes omitted.'); 728 '${unusedClasses.length} native classes omitted.');
690 } 729 }
691 } 730 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698