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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart

Issue 1394063004: Use common.dart to re-export commonly used entities. (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
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 library dart2js.js_emitter.full_emitter; 5 library dart2js.js_emitter.full_emitter;
6 6
7 import 'dart:convert'; 7 import 'dart:convert';
8 import 'dart:collection' show HashMap; 8 import 'dart:collection' show HashMap;
9 9
10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; 10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames;
11 import 'package:js_runtime/shared/embedded_names.dart' show 11 import 'package:js_runtime/shared/embedded_names.dart' show
12 JsBuiltin, 12 JsBuiltin,
13 JsGetName; 13 JsGetName;
14 14
15 import '../headers.dart'; 15 import '../headers.dart';
16
17 import '../js_emitter.dart' hide Emitter; 16 import '../js_emitter.dart' hide Emitter;
18 import '../js_emitter.dart' as js_emitter show Emitter; 17 import '../js_emitter.dart' as js_emitter show Emitter;
19
20 import '../model.dart'; 18 import '../model.dart';
21 import '../program_builder/program_builder.dart'; 19 import '../program_builder/program_builder.dart';
22 20
23 import '../../common.dart'; 21 import '../../common.dart';
24 22 import '../../common/names.dart' show
23 Names;
24 import '../../compiler.dart' show
25 Compiler;
25 import '../../constants/values.dart'; 26 import '../../constants/values.dart';
26 27 import '../../dart_types.dart' show
28 DartType;
27 import '../../deferred_load.dart' show OutputUnit; 29 import '../../deferred_load.dart' show OutputUnit;
28
29 import '../../diagnostics/diagnostic_listener.dart' show
30 DiagnosticReporter;
31
32 import '../../diagnostics/messages.dart' show
33 MessageKind;
34
35 import '../../diagnostics/spannable.dart' show
36 NO_LOCATION_SPANNABLE;
37
38 import '../../elements/elements.dart' show 30 import '../../elements/elements.dart' show
31 ClassElement,
39 ConstructorBodyElement, 32 ConstructorBodyElement,
33 Element,
34 Elements,
40 ElementKind, 35 ElementKind,
41 FieldElement, 36 FieldElement,
37 FunctionElement,
38 FunctionSignature,
39 LibraryElement,
40 MetadataAnnotation,
41 MethodElement,
42 MemberElement,
42 Name, 43 Name,
43 ParameterElement, 44 ParameterElement,
45 TypedefElement,
44 TypeVariableElement, 46 TypeVariableElement,
45 MethodElement, 47 VariableElement;
46 MemberElement;
47
48 import '../../hash/sha1.dart' show Hasher; 48 import '../../hash/sha1.dart' show Hasher;
49
50 import '../../io/code_output.dart'; 49 import '../../io/code_output.dart';
51
52 import '../../io/line_column_provider.dart' show 50 import '../../io/line_column_provider.dart' show
53 LineColumnCollector, 51 LineColumnCollector,
54 LineColumnProvider; 52 LineColumnProvider;
55
56 import '../../io/source_map_builder.dart' show 53 import '../../io/source_map_builder.dart' show
57 SourceMapBuilder; 54 SourceMapBuilder;
58
59 import '../../js/js.dart' as jsAst; 55 import '../../js/js.dart' as jsAst;
60 import '../../js/js.dart' show js; 56 import '../../js/js.dart' show js;
61
62 import '../../js_backend/js_backend.dart' show 57 import '../../js_backend/js_backend.dart' show
63 CheckedModeHelper, 58 CheckedModeHelper,
64 CompoundName, 59 CompoundName,
65 ConstantEmitter, 60 ConstantEmitter,
66 CustomElementsAnalysis, 61 CustomElementsAnalysis,
67 GetterName, 62 GetterName,
68 JavaScriptBackend, 63 JavaScriptBackend,
69 JavaScriptConstantCompiler, 64 JavaScriptConstantCompiler,
70 Namer, 65 Namer,
71 RuntimeTypes, 66 RuntimeTypes,
72 SetterName, 67 SetterName,
73 Substitution, 68 Substitution,
74 TypeCheck, 69 TypeCheck,
75 TypeChecks, 70 TypeChecks,
76 TypeVariableHandler; 71 TypeVariableHandler;
77 72 import '../../universe/call_structure.dart' show
73 CallStructure;
74 import '../../universe/selector.dart' show
75 Selector;
78 import '../../util/characters.dart' show 76 import '../../util/characters.dart' show
79 $$, 77 $$,
80 $A, 78 $A,
81 $HASH, 79 $HASH,
82 $PERIOD, 80 $PERIOD,
83 $Z, 81 $Z,
84 $a, 82 $a,
85 $z; 83 $z;
86
87 import '../../util/uri_extras.dart' show 84 import '../../util/uri_extras.dart' show
88 relativize; 85 relativize;
89
90 import '../../util/util.dart' show 86 import '../../util/util.dart' show
91 equalElements; 87 equalElements;
92 88
93 part 'class_builder.dart'; 89 part 'class_builder.dart';
94 part 'class_emitter.dart'; 90 part 'class_emitter.dart';
95 part 'code_emitter_helper.dart'; 91 part 'code_emitter_helper.dart';
96 part 'container_builder.dart'; 92 part 'container_builder.dart';
97 part 'declarations.dart'; 93 part 'declarations.dart';
98 part 'deferred_output_unit_hash.dart'; 94 part 'deferred_output_unit_hash.dart';
99 part 'interceptor_emitter.dart'; 95 part 'interceptor_emitter.dart';
(...skipping 2024 matching lines...) Expand 10 before | Expand all | Expand 10 after
2124 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) { 2120 for (Element element in compiler.enqueuer.codegen.newlyEnqueuedElements) {
2125 if (element.isInstanceMember) { 2121 if (element.isInstanceMember) {
2126 cachedClassBuilders.remove(element.enclosingClass); 2122 cachedClassBuilders.remove(element.enclosingClass);
2127 2123
2128 nativeEmitter.cachedBuilders.remove(element.enclosingClass); 2124 nativeEmitter.cachedBuilders.remove(element.enclosingClass);
2129 2125
2130 } 2126 }
2131 } 2127 }
2132 } 2128 }
2133 } 2129 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/patch_resolver.dart ('k') | pkg/compiler/lib/src/js_emitter/js_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698