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

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

Issue 1880323002: dart2js cleanup: remove unused imports and variables (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge master Created 4 years, 8 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/behavior.dart ('k') | pkg/compiler/lib/src/native/scanner.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) 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 import 'dart:collection' show Queue; 5 import 'dart:collection' show Queue;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/backend_api.dart' show ForeignResolver; 8 import '../common/backend_api.dart' show ForeignResolver;
9 import '../common/registry.dart' show Registry; 9 import '../common/registry.dart' show Registry;
10 import '../common/resolution.dart' show Parsing, Resolution; 10 import '../common/resolution.dart' show Resolution;
11 import '../compiler.dart' show Compiler; 11 import '../compiler.dart' show Compiler;
12 import '../constants/values.dart'; 12 import '../constants/values.dart';
13 import '../core_types.dart' show CoreTypes; 13 import '../core_types.dart' show CoreTypes;
14 import '../dart_types.dart'; 14 import '../dart_types.dart';
15 import '../enqueue.dart' show Enqueuer, ResolutionEnqueuer;
16 import '../elements/elements.dart'; 15 import '../elements/elements.dart';
17 import '../elements/modelx.dart' 16 import '../elements/modelx.dart' show FunctionElementX;
18 show BaseClassElementX, ElementX, FunctionElementX, LibraryElementX; 17 import '../enqueue.dart' show Enqueuer;
19 import '../js_backend/backend_helpers.dart' show BackendHelpers; 18 import '../js_backend/backend_helpers.dart' show BackendHelpers;
20 import '../js_backend/js_backend.dart'; 19 import '../js_backend/js_backend.dart';
21 import '../js_emitter/js_emitter.dart' show CodeEmitterTask, NativeEmitter; 20 import '../js_emitter/js_emitter.dart' show CodeEmitterTask, NativeEmitter;
22 import '../tokens/token.dart' show BeginGroupToken, Token; 21 import '../tokens/token.dart' show BeginGroupToken, Token;
23 import '../tokens/token_constants.dart' as Tokens show EOF_TOKEN, STRING_TOKEN; 22 import '../tokens/token_constants.dart' as Tokens show EOF_TOKEN;
24 import '../tree/tree.dart'; 23 import '../tree/tree.dart';
25
26 import 'behavior.dart'; 24 import 'behavior.dart';
27 25
28 /** 26 /**
29 * This could be an abstract class but we use it as a stub for the dart_backend. 27 * This could be an abstract class but we use it as a stub for the dart_backend.
30 */ 28 */
31 class NativeEnqueuer { 29 class NativeEnqueuer {
32 /// Initial entry point to native enqueuer. 30 /// Initial entry point to native enqueuer.
33 void processNativeClasses(Iterable<LibraryElement> libraries) {} 31 void processNativeClasses(Iterable<LibraryElement> libraries) {}
34 32
35 /// Registers the [nativeBehavior]. Adds the liveness of its instantiated 33 /// Registers the [nativeBehavior]. Adds the liveness of its instantiated
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 List<Element> directSubtypes = 708 List<Element> directSubtypes =
711 emitter.directSubtypes.putIfAbsent(superclass, () => <ClassElement>[]); 709 emitter.directSubtypes.putIfAbsent(superclass, () => <ClassElement>[]);
712 directSubtypes.add(cls); 710 directSubtypes.add(cls);
713 } 711 }
714 712
715 void logSummary(log(message)) { 713 void logSummary(log(message)) {
716 log('Compiled ${registeredClasses.length} native classes, ' 714 log('Compiled ${registeredClasses.length} native classes, '
717 '${unusedClasses.length} native classes omitted.'); 715 '${unusedClasses.length} native classes omitted.');
718 } 716 }
719 } 717 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/native/behavior.dart ('k') | pkg/compiler/lib/src/native/scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698