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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/program_builder/program_builder.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.program_builder; 5 library dart2js.js_emitter.program_builder;
6 6
7 import '../js_emitter.dart' show computeMixinClass, Emitter;
8 import '../model.dart';
9
10 import '../../common.dart';
11 import '../../closure.dart' show ClosureFieldElement;
12 import '../../js/js.dart' as js;
13
14 import '../../js_backend/js_backend.dart' show
15 Namer,
16 JavaScriptBackend,
17 JavaScriptConstantCompiler;
18
19 import '../js_emitter.dart' show 7 import '../js_emitter.dart' show
20 ClassStubGenerator, 8 ClassStubGenerator,
21 CodeEmitterTask, 9 CodeEmitterTask,
10 computeMixinClass,
11 Emitter,
22 InterceptorStubGenerator, 12 InterceptorStubGenerator,
23 MainCallStubGenerator, 13 MainCallStubGenerator,
24 ParameterStubGenerator, 14 ParameterStubGenerator,
25 RuntimeTypeGenerator, 15 RuntimeTypeGenerator,
26 TypeTestProperties; 16 TypeTestProperties;
17 import '../model.dart';
27 18
19 import '../../common.dart';
20 import '../../common/names.dart' show
21 Names;
22 import '../../compiler.dart' show
23 Compiler;
24 import '../../constants/values.dart' show
25 ConstantValue,
26 InterceptorConstantValue;
27 import '../../closure.dart' show
28 ClosureFieldElement;
29 import '../../dart_types.dart' show
30 DartType;
28 import '../../elements/elements.dart' show 31 import '../../elements/elements.dart' show
32 ClassElement,
33 Element,
34 Elements,
29 FieldElement, 35 FieldElement,
36 FunctionElement,
37 FunctionSignature,
38 LibraryElement,
30 MethodElement, 39 MethodElement,
31 ParameterElement; 40 ParameterElement,
32 41 TypedefElement,
33 import '../../universe/universe.dart' show Universe, SelectorConstraints; 42 VariableElement;
34 import '../../deferred_load.dart' show DeferredLoadTask, OutputUnit; 43 import '../../js/js.dart' as js;
44 import '../../js_backend/js_backend.dart' show
45 Namer,
46 JavaScriptBackend,
47 JavaScriptConstantCompiler;
48 import '../../universe/selector.dart' show
49 Selector;
50 import '../../universe/universe.dart' show
51 Universe,
52 SelectorConstraints;
53 import '../../deferred_load.dart' show
54 DeferredLoadTask,
55 OutputUnit;
35 56
36 part 'collector.dart'; 57 part 'collector.dart';
37 part 'registry.dart'; 58 part 'registry.dart';
38 part 'field_visitor.dart'; 59 part 'field_visitor.dart';
39 60
40 /// Builds a self-contained representation of the program that can then be 61 /// Builds a self-contained representation of the program that can then be
41 /// emitted more easily by the individual emitters. 62 /// emitted more easily by the individual emitters.
42 class ProgramBuilder { 63 class ProgramBuilder {
43 final Compiler _compiler; 64 final Compiler _compiler;
44 final Namer namer; 65 final Namer namer;
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 Constant constant = new Constant(name, holder, constantValue); 850 Constant constant = new Constant(name, holder, constantValue);
830 _constants[constantValue] = constant; 851 _constants[constantValue] = constant;
831 } 852 }
832 } 853 }
833 854
834 Holder _registerStaticStateHolder() { 855 Holder _registerStaticStateHolder() {
835 return _registry.registerHolder( 856 return _registry.registerHolder(
836 namer.staticStateHolder, isStaticStateHolder: true); 857 namer.staticStateHolder, isStaticStateHolder: true);
837 } 858 }
838 } 859 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/model.dart ('k') | pkg/compiler/lib/src/js_emitter/runtime_type_generator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698