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

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

Issue 2829683007: Extract DartTypeVisitor and subclasses from resolution_types. (Closed)
Patch Set: Created 3 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
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 '../../closure.dart' show ClosureTask, ClosureFieldElement; 7 import '../../closure.dart' show ClosureTask, ClosureFieldElement;
8 import '../../common.dart'; 8 import '../../common.dart';
9 import '../../common/names.dart' show Names, Selectors; 9 import '../../common/names.dart' show Names, Selectors;
10 import '../../constants/values.dart' 10 import '../../constants/values.dart'
11 show ConstantValue, InterceptorConstantValue; 11 show ConstantValue, InterceptorConstantValue;
12 import '../../common_elements.dart' show CommonElements; 12 import '../../common_elements.dart' show CommonElements;
13 import '../../elements/resolution_types.dart'
14 show ResolutionDartType, ResolutionFunctionType, ResolutionTypedefType;
15 import '../../deferred_load.dart' show DeferredLoadTask, OutputUnit; 13 import '../../deferred_load.dart' show DeferredLoadTask, OutputUnit;
16 import '../../elements/elements.dart' 14 import '../../elements/elements.dart'
17 show 15 show
18 ClassElement, 16 ClassElement,
19 Element, 17 Element,
20 Elements, 18 Elements,
21 FieldElement, 19 FieldElement,
22 FunctionElement, 20 FunctionElement,
23 FunctionSignature, 21 FunctionSignature,
24 GetterElement, 22 GetterElement,
25 LibraryElement, 23 LibraryElement,
26 MemberElement, 24 MemberElement,
27 MethodElement, 25 MethodElement,
28 ParameterElement, 26 ParameterElement,
29 TypedefElement, 27 TypedefElement,
30 VariableElement; 28 VariableElement;
31 import '../../elements/entities.dart'; 29 import '../../elements/entities.dart';
32 import '../../elements/resolution_types.dart' show Types; 30 import '../../elements/resolution_types.dart'
31 show
32 DartTypes,
33 ResolutionDartType,
34 ResolutionFunctionType,
35 ResolutionTypedefType;
33 import '../../elements/types.dart' show DartType; 36 import '../../elements/types.dart' show DartType;
34 import '../../js/js.dart' as js; 37 import '../../js/js.dart' as js;
35 import '../../js_backend/backend.dart' 38 import '../../js_backend/backend.dart'
36 show 39 show
37 RuntimeTypesChecks, 40 RuntimeTypesChecks,
38 RuntimeTypesNeed, 41 RuntimeTypesNeed,
39 RuntimeTypesEncoder, 42 RuntimeTypesEncoder,
40 RuntimeTypesSubstitutions, 43 RuntimeTypesSubstitutions,
41 SuperMemberData; 44 SuperMemberData;
42 import '../../js_backend/backend_usage.dart'; 45 import '../../js_backend/backend_usage.dart';
(...skipping 26 matching lines...) Expand all
69 72
70 part 'collector.dart'; 73 part 'collector.dart';
71 part 'field_visitor.dart'; 74 part 'field_visitor.dart';
72 part 'registry.dart'; 75 part 'registry.dart';
73 76
74 /// Builds a self-contained representation of the program that can then be 77 /// Builds a self-contained representation of the program that can then be
75 /// emitted more easily by the individual emitters. 78 /// emitted more easily by the individual emitters.
76 class ProgramBuilder { 79 class ProgramBuilder {
77 final CompilerOptions _options; 80 final CompilerOptions _options;
78 final CommonElements _commonElements; 81 final CommonElements _commonElements;
79 final Types _types; 82 final DartTypes _types;
80 final DeferredLoadTask _deferredLoadTask; 83 final DeferredLoadTask _deferredLoadTask;
81 final ClosureTask _closureToClassMapper; 84 final ClosureTask _closureToClassMapper;
82 final CodegenWorldBuilder _worldBuilder; 85 final CodegenWorldBuilder _worldBuilder;
83 final NativeCodegenEnqueuer _nativeCodegenEnqueuer; 86 final NativeCodegenEnqueuer _nativeCodegenEnqueuer;
84 final BackendUsage _backendUsage; 87 final BackendUsage _backendUsage;
85 final JavaScriptConstantCompiler _constantHandler; 88 final JavaScriptConstantCompiler _constantHandler;
86 final NativeData _nativeData; 89 final NativeData _nativeData;
87 final RuntimeTypesNeed _rtiNeed; 90 final RuntimeTypesNeed _rtiNeed;
88 final MirrorsData _mirrorsData; 91 final MirrorsData _mirrorsData;
89 final InterceptorData _interceptorData; 92 final InterceptorData _interceptorData;
(...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 Constant constant = new Constant(name, holder, constantValue); 1098 Constant constant = new Constant(name, holder, constantValue);
1096 _constants[constantValue] = constant; 1099 _constants[constantValue] = constant;
1097 } 1100 }
1098 } 1101 }
1099 1102
1100 Holder _registerStaticStateHolder() { 1103 Holder _registerStaticStateHolder() {
1101 return _registry.registerHolder(_namer.staticStateHolder, 1104 return _registry.registerHolder(_namer.staticStateHolder,
1102 isStaticStateHolder: true); 1105 isStaticStateHolder: true);
1103 } 1106 }
1104 } 1107 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/runtime_types.dart ('k') | pkg/compiler/lib/src/resolution/typedefs.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698